/* "Síganos en redes": red brand ribbon before the footer of every page.
   Self-contained so it also works on the legacy (WordPress) templates. */
@font-face { font-family: 'Sharp Grotesk'; src: url('/assets/fonts/SharpGroteskBold15.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sharp Grotesk'; src: url('/assets/fonts/SharpGroteskBook15.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
.social-wrap { margin-top: 64px; margin-bottom: 0; }
.social-wrap.is-legacy { max-width: 1280px; margin: 64px auto 48px; padding-inline: 16px; box-sizing: border-box; }
.social { --s-red: var(--red, #D7261C); position: relative; overflow: hidden; padding: 26px 20px; border-radius: 22px; background: var(--s-red); color: #fff;
  display: grid; gap: 22px; font-family: 'Sharp Grotesk', system-ui, sans-serif; letter-spacing: normal; box-sizing: border-box; }
.social *, .social *::before { box-sizing: border-box; }
.social::before { content: ""; position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; border-radius: 999px; border: 40px solid rgba(255,255,255,.08); pointer-events: none; }
.social > * { position: relative; }
.social-kicker { margin: 0 0 6px; font: 700 12px/1.2 'Sharp Grotesk', system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #141210; }
.social .social-title { margin: 0; font: 700 clamp(28px, 3.4vw, 40px)/1 'Sharp Grotesk', system-ui, sans-serif; color: #fff; text-transform: uppercase; letter-spacing: .005em; }
.social-lead { margin: 8px 0 0; font: 400 16px/1.45 'TeXGyreHeros', 'Sharp Grotesk', system-ui, sans-serif; line-height: 1.45; color: rgba(255,255,255,.9); }
.social-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.social a.social-link { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 16px; text-align: center; color: #fff; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.social a.social-link:hover, .social a.social-link:focus-visible { background: rgba(0,0,0,.18); color: #fff; transform: translateY(-2px); }
.social-ico { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: #fff; color: var(--s-red); transition: transform .2s ease; }
.social a.social-link:hover .social-ico { transform: scale(1.06); }
.social-ico svg { width: 26px; height: 26px; }
.social-link b { font-size: 14px; line-height: 1.2; font-weight: 700; }
.social-link small { font-size: 12px; line-height: 1.2; opacity: .85; overflow-wrap: anywhere; }
.social-wa { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.25); font-size: 15px; line-height: 1.4; }
.social a.social-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: #141210; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s; }
.social a.social-btn:hover { background: #000; color: #fff; }
.social-btn svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .social { grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); align-items: center; gap: 30px; padding: 32px 36px; }
  .social-links { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 899px) { .social a.social-btn { width: 100%; } }
html[data-theme="dark"] .social { --s-red: #c4211a; }
@media (prefers-reduced-motion: reduce) { .social a.social-link, .social-ico { transition: none; } }

/* Phones: a slim strip. Title and a small WhatsApp button on one line, the
   five networks as small icons with a short name below; the long labels stay
   for screen readers. */
.social-short { display: none; }
@media (max-width: 899px) {
  .social { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 10px; padding: 14px 14px 12px; border-radius: 18px; }
  .social::before { right: -50px; top: -60px; width: 150px; height: 150px; border-width: 26px; }
  .social-kicker, .social-lead, .social-wa > span { display: none; }
  .social .social-title { font-size: 19px; line-height: 1.1; }
  .social-wa { grid-row: 1; grid-column: 2; padding: 0; border: 0; }
  .social a.social-btn, .social .social-btn { width: auto; min-height: 36px; padding: 0 14px; font-size: 13px; gap: 6px; }
  .social-btn svg { width: 16px; height: 16px; }
  .social-links { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 4px; }
  .social a.social-link, .social .social-link { flex: 1 1 0; min-width: 0; gap: 5px; padding: 4px 0; border-radius: 12px; }
  .social-ico { width: 42px; height: 42px; }
  .social-ico svg { width: 20px; height: 20px; }
  .social-link b, .social-link small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .social-short { display: block; font: 700 10.5px/1.1 "Sharp Grotesk", system-ui, sans-serif; font-style: normal; white-space: nowrap; opacity: .92; }
  .social-wrap { margin-top: 36px; }
  .social-wrap.is-legacy { margin: 36px auto 28px; }
}

/* Desktop: one slim strip — title, the five networks as small pills and the
   WhatsApp button, all on one line. */
@media (min-width: 900px) {
  .social { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 16px 22px; border-radius: 18px; }
  .social::before { right: -60px; top: -90px; width: 180px; height: 180px; border-width: 28px; }
  .social-kicker, .social-wa > span, .social-link small { display: none; }
  .social .social-title { font-size: 22px; line-height: 1; white-space: nowrap; }
  .social-lead { margin-top: 4px; font-size: 13px; white-space: nowrap; }
  .social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .social a.social-link, .social .social-link { flex-direction: row; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(0,0,0,.16); text-align: left; }
  .social a.social-link:hover, .social a.social-link:focus-visible, .social .social-link:hover { background: rgba(0,0,0,.32); transform: translateY(-1px); }
  .social-ico { width: 32px; height: 32px; }
  .social-ico svg { width: 16px; height: 16px; }
  .social-link b { font-size: 13px; white-space: nowrap; }
  .social-wa { grid-column: auto; padding: 0; border: 0; }
  .social a.social-btn, .social .social-btn { width: auto; min-height: 42px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
}
/* narrower desktops: short names keep the pills on one line */
@media (min-width: 900px) and (max-width: 1239px) {
  .social-lead { display: none; }
  .social-link b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .social-short { display: block; font: 700 13px/1 "Sharp Grotesk", system-ui, sans-serif; font-style: normal; white-space: nowrap; }
}
