/* =========================================================
   CLIMAVECTOR MADRID — DEMO LANDING ADS (Conecta+)
   Hoja de estilos única — HTML5 + CSS3 + JS vanilla
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root{
  --navy: #0b1f33;
  --navy-2: #122c47;
  --blue: #0d6efd;
  --cyan: #16b8c8;
  --ice: #eef7fa;
  --surface: #f7f9fb;
  --text: #17212b;
  --muted: #5f6b76;
  --warm: #f59e0b;
  --white: #ffffff;
  --border: #e1e8ee;
  --border-strong: #c7d3dc;

  --font-display: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-s: 0 1px 2px rgba(11,31,51,0.06), 0 1px 1px rgba(11,31,51,0.04);
  --shadow-m: 0 8px 24px rgba(11,31,51,0.10);
  --shadow-l: 0 20px 48px rgba(11,31,51,0.16);

  --maxw: 1180px;
  --header-h: 72px;
  --sticky-h: 64px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,p{ margin: 0; }
section{ position: relative; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. ACCESIBILIDAD ---------- */
.skip-link{
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-s);
  font-size: 0.9rem;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus{ top: 12px; }

:focus-visible{
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. UTILIDADES DE LAYOUT ---------- */
.container{
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 640px){ .container{ padding-inline: 32px; } }

.section{ padding: 64px 0; }
.section--tight{ padding: 48px 0; }
.section--ice{ background: var(--ice); }
.section--surface{ background: var(--surface); }
.section--navy{ background: var(--navy); color: var(--white); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}
.eyebrow::before{
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cyan);
  display: inline-block;
}

.section-head{
  max-width: 720px;
  margin-bottom: 36px;
}
.section-head h2{
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-top: 10px;
}
.section--navy .section-head h2{ color: var(--white); }
.section-head p{
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.section--navy .section-head p{ color: #cfe3ee; }

/* ---------- 5. MOTIVO DE FIRMA: REGLA DE FLUJO (blueprint ruler) ---------- */
.flow-rule{
  --n: 24;
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(
    to right,
    var(--border-strong) 0,
    var(--border-strong) 1px,
    transparent 1px,
    transparent calc(100% / var(--n))
  );
  background-repeat: no-repeat;
  opacity: 0.9;
  margin: 0;
}
.flow-rule--accent{
  background-image: repeating-linear-gradient(
    to right,
    var(--cyan) 0,
    var(--cyan) 1px,
    transparent 1px,
    transparent calc(100% / var(--n))
  );
}
.section-divider{
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
}

/* ---------- 6. AVISO DEMO ---------- */
.demo-banner{
  background: var(--navy);
  color: #d7e6ee;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.01em;
}
.demo-banner strong{ color: var(--white); font-weight: 600; }

/* ---------- 7. HEADER ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .container{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark{
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 9px;
  display: block;
}
@media (max-width: 480px){
  .brand-mark{ width: 38px; height: 38px; }
}
.brand-text small{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.nav-desktop{
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-desktop a{
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav-desktop a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after{ transform: scaleX(1); }

.header-actions{ display: flex; align-items: center; gap: 10px; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-icon{ width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary{
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-s);
}
.btn-primary:hover{ background: #0b5fd9; box-shadow: var(--shadow-m); }

.btn-whatsapp{
  background: #1fae5a;
  color: var(--white);
  box-shadow: var(--shadow-s);
}
.btn-whatsapp:hover{ background: #189249; box-shadow: var(--shadow-m); }

.btn-outline{
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn-outline:hover{ border-color: var(--navy); background: var(--ice); }

.btn-block{ width: 100%; }
.btn-sm{ padding: 9px 16px; font-size: 0.86rem; }

.header-call{ display: none; }
@media (min-width: 860px){
  .header-call{ display: inline-flex; }
  .nav-desktop{ display: flex; }
}

/* Botón hamburguesa */
.menu-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--white);
}
.menu-toggle svg{ width: 20px; height: 20px; }
@media (min-width: 860px){ .menu-toggle{ display: none; } }

/* Menú móvil */
.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--navy);
  color: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.mobile-menu.is-open{ transform: translateX(0); }
.mobile-menu-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu-close{
  width: 42px; height: 42px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close svg{ width: 18px; height: 18px; }
.mobile-menu nav{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}
.mobile-menu nav a{
  font-size: 1.15rem;
  font-weight: 600;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-menu .btn{ margin-top: 6px; }
.mobile-menu-note{
  margin-top: auto;
  font-size: 0.8rem;
  color: #a9c1cf;
  font-family: var(--font-mono);
}
body.menu-open{ overflow: hidden; }

/* ---------- 8. HERO ---------- */
.hero{
  background: linear-gradient(180deg, var(--ice) 0%, var(--white) 78%);
  padding: 40px 0 56px;
  overflow: hidden;
}
@media (max-width: 640px){
  .hero{ padding-bottom: 104px; }
}
.hero .container{
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 960px){
  .hero .container{
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 28px;
  }
}

.hero-copy .eyebrow{ color: var(--blue); }
.hero-copy .eyebrow::before{ background: var(--blue); }

.hero-copy h1{
  margin-top: 14px;
  font-size: clamp(1.7rem, 1.2rem + 3.6vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 18ch;
}
.hero-copy .subtitle-lead{
  margin-top: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy-2);
  max-width: 52ch;
}
.hero-copy .subtitle{
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
}

.trust-signals{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}
.trust-signals li{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-2);
}
.trust-signals svg{ width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }

.hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-cta .btn{ padding: 15px 24px; font-size: 1rem; }

.hero-microtext{
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-microtext svg{ width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; }

.hero-visual{
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  aspect-ratio: 4 / 3.2;
  background: var(--navy);
}
.hero-visual img{
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-visual::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,31,51,0) 55%, rgba(11,31,51,0.55) 100%);
}
.hero-visual-tag{
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 2;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11,31,51,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero-visual-tag .dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ---------- 8bis. FRANJA DE CONFIANZA COMPACTA (tras el hero) ---------- */
.trust-bar{
  background: var(--ice);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.trust-bar ul{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}
.trust-bar li{
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-2);
  white-space: nowrap;
}
.trust-bar svg{ width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
@media (max-width: 480px){
  .trust-bar ul{ gap: 10px 16px; }
  .trust-bar li{ font-size: 0.8rem; white-space: normal; }
}

/* ---------- 8ter. FIGURAS CON PROPORCIÓN FIJA (sin estirar imágenes) ---------- */
.figure-fixed{
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-m);
  aspect-ratio: 3 / 2;
  max-height: 480px;
}
.figure-fixed img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 640px){
  .figure-fixed{ aspect-ratio: 16 / 10; max-height: 320px; }
}

/* ---------- 8quater. TESTIMONIOS DE EJEMPLO ---------- */
.testimonial-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px){ .testimonial-grid{ grid-template-columns: repeat(3, 1fr); } }

.testimonial-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial-tag{
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--ice);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 999px;
}
.testimonial-quote{
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text);
}
.testimonial-quote::before{ content: "\201C"; }
.testimonial-quote::after{ content: "\201D"; }
.testimonial-profile{
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- 8quinque. SECCIÓN COMPACTA IMAGEN + BENEFICIOS ---------- */
.split-benefits{
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}
@media (min-width: 900px){ .split-benefits{ grid-template-columns: 1fr 1fr; gap: 40px; } }
.split-benefits .mini-cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.split-benefits .mini-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 16px;
}
.split-benefits .mini-card h3{ font-size: 0.92rem; color: var(--navy); margin-bottom: 6px; }
.split-benefits .mini-card p{ font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 480px){
  .split-benefits .mini-cards{ grid-template-columns: 1fr; }
}

/* ---------- 9. TARJETAS ---------- */
.card-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px){ .card-grid{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px){ .card-grid{ grid-template-columns: repeat(4, 1fr); } }

.card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: var(--border-strong);
}
.card-icon{
  width: 44px; height: 44px;
  border-radius: var(--radius-s);
  background: var(--ice);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg{ width: 22px; height: 22px; }
.card h3{
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card p{ color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

.section-cta{ margin-top: 32px; display: flex; }

/* ---------- 10. LISTA CON PUNTOS TÉCNICOS ---------- */
.check-list{ display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.check-list li{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.5;
}
.check-list svg{
  width: 20px; height: 20px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.two-col{
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}
@media (min-width: 900px){ .two-col{ grid-template-columns: 1fr 1fr; gap: 48px; } }

.callout{
  margin-top: 26px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-m);
  padding: 22px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout svg{ width: 24px; height: 24px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.callout p{ font-size: 0.96rem; line-height: 1.6; color: #dfeaf1; }

/* ---------- 11. PROCESO (4 pasos) ---------- */
.steps{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 12px;
  counter-reset: step;
}
@media (min-width: 860px){ .steps{ grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.step{
  position: relative;
  padding: 26px 20px 22px;
  border-top: 2px solid var(--border-strong);
}
@media (min-width: 860px){
  .step{ border-top: none; border-left: 2px solid var(--border-strong); padding-left: 22px; }
}
.step-index{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
}
.step h3{
  margin-top: 10px;
  font-size: 1.02rem;
  color: var(--navy);
}
.step p{ margin-top: 8px; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* ---------- 12. ÁREA DE SERVICIO ---------- */
.service-zones{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.zone-chip{
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-2);
  background: var(--white);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: 999px;
}
.service-note{
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- 13. ENLACE CRUZADO ENTRE LANDINGS ---------- */
.cross-link{
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 40px clamp(20px, 4vw, 48px);
  display: grid;
  gap: 22px;
  align-items: center;
}
@media (min-width: 780px){
  .cross-link{ grid-template-columns: 1fr auto; }
}
.cross-link h2{ font-size: clamp(1.3rem, 1rem + 1.2vw, 1.7rem); color: var(--white); }
.cross-link p{ margin-top: 10px; color: #cfe3ee; max-width: 60ch; line-height: 1.6; }
.cross-link .btn-outline{
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.cross-link .btn-outline:hover{ background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ---------- 14. FAQ ---------- */
.faq-list{ margin-top: 8px; border-top: 1px solid var(--border); }
.faq-item{ border-bottom: 1px solid var(--border); }
.faq-question{
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}
.faq-question .plus{
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--blue);
  position: relative;
}
.faq-question .plus svg{ width: 100%; height: 100%; transition: transform 0.2s ease; }
.faq-question[aria-expanded="true"] .plus svg{ transform: rotate(45deg); }
.faq-answer{
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.faq-answer p{
  padding: 0 4px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 68ch;
}

/* ---------- 15. CTA FINAL ---------- */
.final-cta{
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 15% 0%, rgba(22,184,200,0.18), transparent 60%),
    radial-gradient(50% 80% at 100% 100%, rgba(13,110,253,0.15), transparent 60%);
  pointer-events: none;
}
.final-cta > *{ position: relative; z-index: 1; }
.final-cta h2{ color: var(--white); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); }
.final-cta p{ margin-top: 12px; color: #cfe3ee; max-width: 56ch; margin-inline: auto; line-height: 1.6; }
.final-cta-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.final-cta-actions .btn{ padding: 15px 26px; }

/* ---------- 16. FOOTER ---------- */
.site-footer{
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 100px;
}
@media (min-width: 860px){ .site-footer{ padding-bottom: 40px; } }

.footer-top{
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (min-width: 700px){
  .footer-top{ flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.footer-brand{ display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.footer-brand-mark{ width: 32px; height: 32px; object-fit: contain; border-radius: 7px; flex-shrink: 0; display: block; }
.footer-links{ display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a{ font-size: 0.9rem; color: var(--muted); }
.footer-links a:hover{ color: var(--navy); }

.footer-bottom{
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-bottom a{ color: var(--blue); font-weight: 600; }
.footer-demo-note{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

/* ---------- 17. BARRA MÓVIL FIJA ---------- */
.mobile-bar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 250;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(11,31,51,0.08);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-bar.is-hidden{ transform: translateY(120%); opacity: 0; pointer-events: none; }
.mobile-bar .btn{ padding: 13px 10px; font-size: 0.92rem; }
@media (min-width: 860px){ .mobile-bar{ display: none; } }

/* Espacio para que la barra móvil no tape contenido */
.mobile-bar-spacer{ height: 84px; }
@media (min-width: 860px){ .mobile-bar-spacer{ display: none; } }

/* ---------- 18. TOAST DEMO ---------- */
.toast-region{
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(20px);
  z-index: 400;
  width: min(92vw, 420px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast-region.is-visible{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
@media (min-width: 860px){ .toast-region{ bottom: 28px; } }

.toast{
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-l);
  border: 1px solid rgba(255,255,255,0.12);
}
.toast svg{ width: 22px; height: 22px; color: var(--cyan); flex-shrink: 0; margin-top: 1px; }
.toast p{ font-size: 0.88rem; line-height: 1.5; }
.toast-close{
  margin-left: auto;
  background: transparent;
  border: none;
  color: #a9c1cf;
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.toast-close svg{ width: 16px; height: 16px; color: inherit; margin: 0; }

/* ---------- 19. PÁGINAS LEGALES ---------- */
.legal-main{ padding: 48px 0 80px; }
.legal-main h1{
  color: var(--navy);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  margin-bottom: 8px;
}
.legal-updated{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 32px;
  display: block;
}
.legal-main h2{
  color: var(--navy);
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 10px;
}
.legal-main p, .legal-main li{
  color: var(--text);
  line-height: 1.7;
  font-size: 0.98rem;
}
.legal-main ul{ margin-top: 10px; }
.legal-main li{ display: flex; gap: 10px; margin-bottom: 8px; }
.legal-main li svg{ width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; margin-top: 3px; }
.legal-main a{ color: var(--blue); font-weight: 600; }
.legal-back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-weight: 600;
  color: var(--navy);
}
.legal-back svg{ width: 18px; height: 18px; }

/* ---------- 20. ANIMACIÓN DE ENTRADA (solo al ver en viewport) ---------- */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; }
}
