/* Pie de página compartido (generado en el HTML por scripts/build-footer.mjs). Los !important
   neutralizan estilos antiguos de .index-footer / .foot que siguen cargados. */

footer.sf {
  --s-red: #e60012;
  --s-ease: cubic-bezier(.22, .8, .24, 1);
  position: relative; isolation: isolate; overflow: hidden;
  display: block !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: linear-gradient(180deg, #11151c 0%, #0a0d12 100%) !important;
  color: #c3cad6 !important;
  font: 400 .92rem/1.6 'DM Sans', system-ui, sans-serif !important;
}
footer.sf::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--s-red) 20%, #ff5b67 50%, var(--s-red) 80%, transparent);
}
footer.sf .sf-glow {
  position: absolute; z-index: -1; right: -10%; top: -30%; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 0, 18, .16), transparent 65%); pointer-events: none;
}
footer.sf .sf-shell { position: relative; width: min(1160px, 91.4vw); margin: 0 auto; padding: 64px 0 0; }
footer.sf a { color: inherit; text-decoration: none; }
footer.sf b { color: #fff; }

/* Fila superior */
footer.sf .sf-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
footer.sf .sf-brand { max-width: 420px; }
footer.sf .sf-brand img { display: block; width: 170px; height: auto; filter: brightness(0) invert(1); }
footer.sf .sf-brand p { margin: 14px 0 0; color: #98a2b3; font-size: .9rem; line-height: 1.6; }
footer.sf .sf-reach { display: flex; flex-wrap: wrap; gap: 10px; }
footer.sf .sf-pill {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 20px 0 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font: 800 .92rem 'Manrope', sans-serif; color: #fff;
  transition: background .25s var(--s-ease), transform .25s var(--s-ease), box-shadow .25s;
}
footer.sf .sf-pill:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 90, 100, .45); }
footer.sf .sf-pill svg {
  flex: 0 0 auto; width: 38px; height: 38px; padding: 9px; border-radius: 12px;
  background: rgba(230, 0, 18, .16); color: #ff5b67;
}
footer.sf .sf-wa svg { background: rgba(31, 157, 85, .18); color: #3ddc84; }
footer.sf .sf-pill span { display: grid; line-height: 1.2; }
footer.sf .sf-pill small { font: 600 .7rem 'DM Sans', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #8a93a1; }

/* Columnas */
footer.sf .sf-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.15fr); gap: 32px;
  padding: 44px 0 40px;
}
footer.sf .sf-col { display: flex; flex-direction: column; gap: 3px; padding: 0; border: 0; }
footer.sf .sf-col > b { margin-bottom: 10px; font: 800 .74rem 'Manrope', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
footer.sf .sf-col a {
  position: relative; align-self: flex-start; padding: 4px 0; color: #aab3c1; font-size: .9rem;
  transition: color .2s, transform .25s var(--s-ease);
}
footer.sf .sf-col a::before {
  content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--s-red); opacity: 0; transform: translateY(-50%) scale(.4); transition: opacity .2s, transform .25s var(--s-ease);
}
footer.sf .sf-col a:hover { color: #fff; transform: translateX(4px); }
footer.sf .sf-col a:hover::before { opacity: 1; transform: translateY(-50%) scale(1); }
footer.sf .sf-col a:focus-visible { outline: 2px solid #ff5b67; outline-offset: 3px; border-radius: 4px; }
footer.sf .sf-visit p { display: flex; gap: 12px; margin: 0 0 14px; color: #aab3c1; font-size: .88rem; line-height: 1.55; }
footer.sf .sf-visit svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; color: #ff5b67; }

/* Banner de la CRC: parte superior del pie, 80 % del ancho en escritorio y móvil
   (el ancho va en línea en el HTML, como lo entrega la CRC). */
footer.sf .sf-crc-banner { margin: 0 0 40px; }
footer.sf .sf-crc-banner a { display: block; }
footer.sf .sf-crc-banner img { display: block; margin: 0 auto; border-radius: 12px; }
/* control-parental.css y normatividad.css traen "footer img { max-height: 55px; object-fit: contain }",
   que encoge el banner hasta volverlo ilegible. */
footer.sf .sf-crc-banner img { max-width: 100% !important; max-height: none !important; object-fit: fill !important; }

/* Datos legales del operador */
footer.sf .sf-legal {
  padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .08);
  color: #98a2b3; font-size: .8rem; line-height: 1.6;
}
footer.sf .sf-legal p { margin: 0 0 4px; }
/* normatividad.css y control-parental.css traen "footer p { max-width: 280px; font-size: 13px }",
   que angosta el bloque legal y corta la marca PROVINET. */
footer.sf .sf-legal p, footer.sf .sf-mark, footer.sf .sf-visit p { max-width: none; }
footer.sf .sf-legal p { font-size: inherit; }
footer.sf .sf-legal a { color: #d4d9e1; text-decoration: underline; text-underline-offset: 2px; }
footer.sf .sf-legal a:hover { color: #fff; }

/* Barra final */
footer.sf .sf-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 30px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08);
  color: #8a93a1; font-size: .8rem;
}
footer.sf .sf-made { margin-left: auto; }
footer.sf .sf-made i { font-style: normal; color: var(--s-red); }
footer.sf .sf-mark {
  margin: -10px 0 -0.22em; text-align: center; user-select: none; pointer-events: none;
  font: 800 clamp(64px, 15vw, 210px)/1 'Manrope', sans-serif; letter-spacing: -.06em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Responsive */
@media (max-width: 1000px) {
  footer.sf .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  footer.sf .sf-shell { padding-top: 48px; }
  footer.sf .sf-reach, footer.sf .sf-pill { width: 100%; }
  footer.sf .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 34px 0; }
  footer.sf .sf-visit { grid-column: 1 / -1; }
  footer.sf .sf-crc-banner { margin-bottom: 30px; }
  footer.sf .sf-made { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  footer.sf * { transition: none !important; }
}
