/*
Theme Name: HuellaNFC Landing
Theme URI: https://huellanfc.site
Author: HuellaNFC
Description: Tema de una sola página para la landing de HuellaNFC — identificación NFC para mascotas. Convertido 1:1 desde el sitio estático (huellanfc-sitio-web/index.html + styles.css), sin frameworks ni build step.
Version: 1.4.2
Requires at least: 6.0
Requires PHP: 7.4
License: Uso privado
Text Domain: huellanfc-landing
*/

:root {
  /* Paleta de marca (extraída del logo) — ver identidad.html del sitio estático */
  --amarillo: #F8D800;
  --azul: #0068A8;
  --azul-osc: #004A78;
  --cian: #00B0F0;
  --grafito: #404040;
  --rosa: #E0457B; /* solo Molly y género hembra */
  --acento-texto: #0068A8;
  --enlace: #0068A8;
  --bg: #F5F7FA;
  --bg-alt: #E8F1F8;
  --superficie: #FFFFFF;
  --texto: #1F2933;
  --suave: #52606D;
  --borde: #D9E2EC;
  --sombra: 0 22px 60px rgba(0, 74, 120, .14);
  --radio: 20px;
  --f-cuerpo: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-titulo: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --acento-texto: #4DB8E8;
    --enlace: #4DB8E8;
    --bg: #0E1621;
    --bg-alt: #132030;
    --superficie: #182636;
    --texto: #F3F5F7;
    --suave: #B6C0CA;
    --borde: #2A3B4F;
    --sombra: 0 22px 60px rgba(0, 0, 0, .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font: 17px/1.6 var(--f-cuerpo);
  overflow-wrap: break-word;
}
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 6.6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--enlace); }
:focus-visible { outline: 3px solid var(--enlace); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--superficie); padding: 8px 12px; z-index: 30; }
.saltar:focus { left: 8px; }

/* Franja de anuncio */
.anuncio { background: var(--azul-osc); color: #E8F1F8; text-align: center; padding: 10px 16px; font-size: 12px; letter-spacing: .03em; }
.anuncio b { color: var(--amarillo); }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--amarillo) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0, 0, 0, .1); }
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 76px; }
.logo {
  display: flex; align-items: center;
  font-family: var(--f-titulo); font-weight: 800; font-size: 1.15rem; color: #1F2933; text-decoration: none;
}
.logo-cabecera {
  width: auto; height: 64px; display: block;
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
}
.cabecera nav { display: none; }
.cabecera-acciones { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: rgba(0, 0, 0, .08); border-radius: 12px; color: #1F2933; font-size: 20px; cursor: pointer; }
@media (min-width: 860px) {
  .menu-toggle { display: none; }
  .cabecera nav { display: flex; gap: 20px; }
  .cabecera nav a { color: #1F2933; text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
  .cabecera nav a:hover { color: var(--azul-osc); }
}
@media (min-width: 1150px) {
  .cabecera nav { gap: 26px; }
  .logo-cabecera { height: 68px; }
}
@media (max-width: 859px) {
  .cabecera nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; background: var(--amarillo); padding: 10px 20px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .1); box-shadow: 0 16px 24px rgba(0, 0, 0, .12);
  }
  .cabecera nav.abierto { display: flex; }
  .cabecera nav a { color: #1F2933; text-decoration: none; font-weight: 700; padding: 12px 4px; border-top: 1px solid rgba(0, 0, 0, .08); }
  .cabecera nav a:first-child { border-top: 0; }
  .cabecera-acciones .btn-chico { display: none; }
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border-radius: 999px; border: 2px solid var(--amarillo);
  background: var(--amarillo); color: #1F2933; font-weight: 700; text-decoration: none; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(248, 216, 0, .35); }
.btn:active { transform: scale(.97); }
.btn-sec { background: transparent; color: var(--texto); border-color: var(--enlace); }
.btn-sec:hover { box-shadow: 0 12px 26px rgba(0, 104, 168, .18); }
.btn-oscuro { background: var(--azul-osc); border-color: var(--azul-osc); color: #fff; }
.btn-oscuro:hover { box-shadow: 0 12px 26px rgba(0, 74, 120, .35); }
.btn-chico { padding: 10px 18px; font-size: .92rem; }
.cabecera .btn-chico { background: var(--azul-osc); border-color: var(--azul-osc); color: #fff; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.acciones-centro { justify-content: center; }

/* Secciones */
.seccion { padding: 72px 0; }
.seccion-alt { background: var(--bg-alt); }

.problema-fondo { position: relative; isolation: isolate; }
.problema-fondo::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 320px; z-index: -2;
  background: url('assets/mascota-triste.webp') center 32% / cover no-repeat;
}
.problema-fondo::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 320px; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 20%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, var(--bg) 100%);
}
@media (min-width: 640px) {
  .problema-fondo::before, .problema-fondo::after { height: 420px; }
}

/* Fondo con parallax, reutilizable: la imagen y su posición vienen de data-fondo/data-posicion (ver script.js) */
.parallax-fondo { position: relative; isolation: isolate; overflow: hidden; }
.parallax-fondo::before {
  content: ""; position: absolute; inset: -110px 0; z-index: -2;
  background-image: var(--fondo-img); background-position: var(--fondo-pos, center); background-size: cover; background-repeat: no-repeat;
  filter: blur(2px);
  transform: translateY(var(--parallax, 0px)) scale(1.1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .parallax-fondo::before { transform: scale(1.04) !important; }
}
#como-funciona.parallax-fondo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg-alt) 60%, transparent);
}

/* Barra de dato: 90% de animales en situación de calle tuvieron hogar */
.seccion-cita { background: var(--superficie); padding: 48px 0; border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
.cita-fila { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.cita-contenido { max-width: 560px; }
.cita-texto { font-family: var(--f-titulo); font-size: 1.1rem; line-height: 1.6; font-weight: 600; color: var(--texto); text-align: left; }
.cita-texto strong { color: var(--acento-texto); }
.cita-firma { margin: 18px 0 0; text-align: right; font-style: italic; font-weight: 700; color: var(--acento-texto); font-size: .95rem; }
.cita-firma::before { content: "— "; opacity: .6; }
.cita-imagen-marco {
  position: relative; width: 100%; max-width: 440px; border-radius: 20px; overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
}
.cita-imagen { width: 100%; height: auto; display: block; }
@media (min-width: 860px) {
  .cita-fila { flex-direction: row; justify-content: space-between; gap: 44px; }
  .cita-contenido { flex: 1 1 480px; }
  .cita-imagen-marco { flex: 1 1 460px; max-width: 520px; margin: 0; }
}
.etiqueta { display: inline-flex; align-items: center; gap: 8px; color: var(--acento-texto); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-bottom: .7em; }
.etiqueta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amarillo); box-shadow: 0 0 0 4px var(--bg-alt); }
.lead { font-size: 1.1rem; color: var(--suave); }
.sub { color: var(--suave); font-size: .95rem; }
.cabecera-seccion { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.cabecera-seccion .etiqueta { justify-content: center; }
.cabecera-seccion .etiqueta::before { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 100px; color: #fff; }
.hero-foto { position: absolute; inset: 0; z-index: -2; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 36%; display: block; }
.hero-capa {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--azul-osc) 0%, var(--azul-osc) 36%, color-mix(in srgb, var(--azul-osc) 72%, transparent) 50%, color-mix(in srgb, var(--azul-osc) 20%, transparent) 66%, transparent 80%);
}
.hero-zona { position: relative; margin-left: 0; }
.hero-copy h1 { margin: 20px 0 18px; max-width: 600px; color: #fff; }
.hero-copy h1 em { font-style: normal; color: var(--amarillo); }
.hero-copy > p { max-width: 480px; color: rgba(255, 255, 255, .88); font-size: 1.02rem; }
.hero-confianza { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: rgba(255, 255, 255, .82); font-size: .85rem; }
.hero-confianza .icono-chico { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-confianza b { color: #fff; }
.hero .etiqueta { color: var(--amarillo); }
.hero .etiqueta::before { box-shadow: 0 0 0 4px rgba(255, 255, 255, .1); }
.hero .btn-sec { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .75); }
.hero :focus-visible { outline-color: #fff; }

.hero-flotantes { position: absolute; inset: 0; z-index: 1; display: none; pointer-events: none; }
.tarjeta-flotante { position: absolute; background: var(--superficie); color: var(--texto); border: 1px solid var(--borde); border-radius: 18px; padding: 14px 16px; box-shadow: var(--sombra); animation: flota-card 5s ease-in-out infinite; pointer-events: auto; }
.tarjeta-escaneo { top: 112px; right: 6%; display: flex; gap: 12px; align-items: center; }
.tarjeta-escaneo .icono-chico { width: 42px; height: 42px; flex: none; border-radius: 14px; background: var(--bg-alt); color: var(--acento-texto); padding: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tarjeta-flotante strong { font-size: 12px; display: block; }
.tarjeta-flotante small { font-size: 10px; color: var(--suave); }
.tarjeta-perfil { right: 6%; bottom: 36px; width: 195px; animation-delay: -2.2s; }
.tarjeta-perfil-top { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.tarjeta-perfil-top img { width: 42px; height: 42px; object-fit: cover; border-radius: 13px; }
.tarjeta-perfil .estado { display: inline-block; background: var(--bg-alt); color: var(--acento-texto); padding: 4px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; margin-top: 4px; }
.tarjeta-perfil-fila { border-top: 1px solid var(--borde); padding-top: 9px; font-size: 10px; color: var(--suave); display: flex; justify-content: space-between; }
.tarjeta-perfil-fila b { color: var(--texto); }
@keyframes flota-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (min-width: 860px) {
  .hero { padding: 76px 0 160px; }
  .hero-copy { max-width: 560px; margin-left: 196px; }
  .hero-flotantes { display: block; }
}
@media (max-width: 859px) {
  .hero-capa { background: linear-gradient(100deg, var(--azul-osc) 0%, var(--azul-osc) 70%, color-mix(in srgb, var(--azul-osc) 55%, transparent) 85%, color-mix(in srgb, var(--azul-osc) 15%, transparent) 100%); }
}

/* Franja de confianza (beneficios) */
.confianza { background: var(--superficie); border-block: 1px solid var(--borde); }
.confianza-lista { list-style: none; padding-block: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
.confianza-lista li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 0 10px; }
.mini { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 14px; background: var(--bg-alt); color: var(--acento-texto); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.confianza-lista strong { display: block; font-size: .85rem; }
.confianza-lista span.detalle { display: block; font-size: .72rem; color: var(--suave); margin-top: 2px; }
@media (min-width: 640px) { .confianza-lista { grid-template-columns: repeat(4, 1fr); } .confianza-lista li { border-right: 1px solid var(--borde); } .confianza-lista li:last-child { border-right: 0; } }

/* Tarjetas */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-top: 32px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.tarjeta, .plan, .paso, .privacidad-tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: 24px; padding: 26px; box-shadow: var(--sombra); transition: transform .25s ease, box-shadow .25s ease; }
.tarjeta:hover, .paso:hover, .privacidad-tarjeta:hover { transform: translateY(-6px); }
.tarjeta p:last-child { margin-bottom: 0; color: var(--suave); }
.tarjeta-molly { border-color: var(--rosa); }
.icono { display: block; width: 48px; height: 48px; padding: 11px; margin-bottom: 14px; border-radius: 14px; background: var(--bg-alt); color: var(--acento-texto); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tarjeta-molly .icono { background: color-mix(in srgb, var(--rosa) 14%, transparent); color: var(--rosa); }
.logo-huella { width: 22px; height: 22px; vertical-align: -4px; margin-right: 6px; fill: var(--acento-texto); }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--amarillo); color: #1F2933; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }

/* Cómo funciona: tarjetas con número + ilustración */
.paso { position: relative; }
.paso-numero { font: 800 13px var(--f-titulo); color: var(--acento-texto); background: var(--bg-alt); width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; }
.paso-ilustracion { height: 120px; display: grid; place-items: center; position: relative; margin: 10px 0; }
.paso-ilustracion::before { content: ""; position: absolute; width: 104px; height: 104px; border-radius: 50%; background: var(--bg-alt); }
.paso-ilustracion svg { position: relative; z-index: 1; width: 52px; height: 52px; fill: none; stroke: var(--acento-texto); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 8px 10px rgba(0, 74, 120, .18)); }
.paso p { color: var(--suave); font-size: .92rem; }
.paso-chip { display: inline-block; margin-top: 16px; color: var(--acento-texto); font-size: .72rem; font-weight: 800; background: var(--bg-alt); border-radius: 8px; padding: 7px 10px; }

/* Feature (sección oscura con foto) */
.feature { background: var(--azul-osc); color: #fff; position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; right: -180px; top: -210px; box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 120px rgba(255, 255, 255, .02); }
.feature-grid { display: grid; gap: 44px; align-items: stretch; position: relative; z-index: 1; }
.feature-foto {
  min-height: 320px; border-radius: 28px; overflow: hidden; position: relative;
  background: var(--azul); display: flex;
}
.feature-foto img { width: 100%; height: 100%; object-fit: contain; }
.feature-etiqueta { position: absolute; z-index: 1; top: 18px; left: 18px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .3); border-radius: 14px; padding: 12px 15px; font-size: .78rem; display: flex; align-items: center; gap: 8px; }
.feature .etiqueta { color: var(--amarillo); font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 2.8rem); letter-spacing: -.01em; text-transform: none; margin-bottom: .25em; font-family: var(--f-titulo); }
.feature .etiqueta::before { display: none; }
.feature h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.feature .lead { color: rgba(255, 255, 255, .88); }
.feature .checks li { color: #E3F1EA; }
.feature-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.feature-firma { display: block; width: 56px; height: auto; opacity: .92; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
@media (min-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } .feature-foto { min-height: 100%; } .feature-firma { width: 64px; } }

/* Perfil de ejemplo: fila horizontal de capturas reales de la app
   (con scroll táctil en mobile si no entran todas). */
.perfil-demo-seccion { background: var(--bg-alt); }
.app-stack {
  display: flex; gap: 14px; justify-content: flex-start; overflow-x: auto;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  padding: 10px 20px 26px; margin: 0 -20px;
}
.app-card {
  flex: none; width: 148px; aspect-ratio: 420 / 900; scroll-snap-align: center;
  border: 0; padding: 0; margin: 0; border-radius: 20px; overflow: hidden; cursor: pointer;
  background: var(--superficie); box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s ease, box-shadow .3s ease;
}
.app-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-card:hover, .app-card.al-frente {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .26);
}
@media (min-width: 640px) {
  .app-stack { justify-content: center; padding: 10px 0 26px; margin: 0; }
  .app-card { width: 190px; border-radius: 24px; }
}

/* Escaneo: así se ve en la vida real — mockup de teléfono con el perfil
   público real (capturado en vivo desde huellanfc.site/m/...). */
.escaneo-visual { display: flex; justify-content: center; }
.escaneo-telefono-marco {
  width: 240px; aspect-ratio: 420 / 900; border-radius: 26px; overflow: hidden;
  border: 7px solid #182430; background: #182430; box-shadow: var(--sombra);
}
.escaneo-telefono-marco img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (min-width: 640px) {
  .escaneo-telefono-marco { width: 280px; border-radius: 30px; border-width: 8px; }
}

/* Privacidad (tarjetas) */
.privacidad-tarjeta .bigicono { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--bg-alt); color: var(--acento-texto); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacidad-tarjeta h3 { margin: 16px 0 8px; }
.privacidad-tarjeta p { font-size: .85rem; line-height: 1.75; color: var(--suave); margin: 0; }

/* Planes */
.planes { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan ul { padding-left: 20px; margin: 0 0 24px; flex: 1; }
.plan li { margin-bottom: 6px; }
.plan .btn { align-self: stretch; }
.plan-destacado { border: 2px solid var(--enlace); }
.precio { font-size: 2.2rem; font-weight: 800; font-family: var(--f-titulo); margin-bottom: .4em; }
.precio small { font-size: 1rem; font-weight: 600; color: var(--suave); }
.nota { text-align: center; color: var(--suave); font-size: .9rem; margin-top: 20px; }

/* FAQ */
.faq-seccion { background: var(--superficie); }
.faq-lista { max-width: 780px; margin: 0 auto; }
.faq-lista details { background: var(--bg-alt); border: 1px solid var(--borde); border-radius: 18px; margin-bottom: 12px; }
.faq-lista summary { cursor: pointer; padding: 18px 22px; font-family: var(--f-titulo); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-lista summary::-webkit-details-marker { display: none; }
.faq-lista summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--acento-texto); transition: transform .2s ease; }
.faq-lista details[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq-lista details p { padding: 0 22px 20px; margin: 0; color: var(--suave); font-size: .92rem; }

/* Cierre tipo banda CTA */
.cierre-banda { padding: 0 0 90px; background: var(--superficie); }
.cierre-caja { position: relative; overflow: hidden; border-radius: 30px; background: var(--amarillo); padding: 48px 44px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cierre-mascota { position: absolute; left: -18px; bottom: -34px; width: 150px; height: auto; opacity: .18; pointer-events: none; }
.cierre-caja h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 9px; max-width: 560px; color: #1F2933; }
.cierre-caja p { font-size: .9rem; margin: 0; color: #4b4420; }
.cierre-caja .btn { position: relative; z-index: 1; white-space: nowrap; background: var(--azul-osc); border-color: var(--azul-osc); color: #fff; }

/* Pie */
.pie { background: var(--azul-osc); color: #fff; padding: 56px 0 24px; }
.pie-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.pie-marca { grid-column: 1 / -1; }
.pie-logo { width: 120px; height: auto; display: block; margin-bottom: 12px; }
.pie-marca p { margin: 0; max-width: 320px; color: #E8F1F8; }
.pie-titulo { font-family: var(--f-titulo); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--amarillo); margin: 0 0 12px; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie a { display: inline-block; padding: 6px 0; color: #E8F1F8; text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie :focus-visible { outline-color: #fff; }
.pie-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .25); color: #E8F1F8; font-size: .92rem; }

/* Aliados / para negocios */
.aliados { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; background: var(--superficie); border: 1px solid var(--borde); border-left: 8px solid var(--amarillo); border-radius: var(--radio); padding: 28px; box-shadow: var(--sombra); }
.aliados > div { flex: 1 1 340px; }
.aliados h2 { margin-bottom: .3em; }
.aliados .lead { margin-bottom: 0; }

/* Animaciones de entrada: solo si JS las activó */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tarjeta-flotante, .hero-foto { animation: none; }
  .btn { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Páginas legales */
.legal { padding: 40px 0 64px; }
.legal-caja { max-width: 760px; }
.legal section { margin-top: 32px; }
.legal h2 { font-size: 1.35rem; margin-bottom: .5em; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }

.tabla-cookies { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.tabla-cookies th, .tabla-cookies td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--borde); vertical-align: top; }
.tabla-cookies th { color: var(--suave); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.tabla-cookies code { background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
@media (max-width: 560px) { .tabla-cookies { font-size: .85rem; } .tabla-cookies th, .tabla-cookies td { padding: 8px; } }

/* Aviso de cookies: barra informativa, no bloquea la página (no hay cookies opcionales que "aceptar/rechazar"). */
.aviso-cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--azul-osc); color: #fff;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
  transform: translateY(100%); transition: transform .3s ease;
}
.aviso-cookies.visible { transform: translateY(0); }
.aviso-cookies-fila {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding: 16px 20px;
}
.aviso-cookies p { margin: 0; font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .92); flex: 1 1 420px; }
.aviso-cookies a { color: var(--amarillo); font-weight: 700; }
.aviso-cookies .btn { flex: none; }
@media (max-width: 640px) {
  .aviso-cookies-fila { padding: 14px 16px; }
  .aviso-cookies .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .aviso-cookies { transition: none; } }
