/* ============================================================
   LEGAL RESET — v2.1.0 "Mobile-first refactor"
   ------------------------------------------------------------
   Arquitectura MOBILE-FIRST. Base = 320-430 px (móvil).
   Escalado progresivo con `@media (min-width: ...)`:
     640px  → móvil grande / tablet portrait
     900px  → tablet landscape / laptop pequeño
     1200px → desktop
     1440px → desktop wide

   Cambios clave vs v2.0.2:
   - Tipografía y padding fluidos con `clamp()`, legibles desde 320 px
   - Carrusel no desborda en 320 px (flex basis min con 85vw)
   - Inputs y targets táctiles ≥ 44 px
   - Focus visible universal en elementos interactivos
   - @supports (backdrop-filter) con fallback opaco
   - prefers-reduced-motion global
   - Sticky CTA respeta safe-area-inset-bottom
   - Hamburger menu móvil para anclas de nav
   - Hero image usa aspect-ratio para evitar CLS
   ============================================================ */

:root {
  /* Paleta */
  --bg: #F7F3EE;
  --surface: #FFFDFC;
  --ink: #0F172A;
  --ink-soft: #334155;
  --ink-mute: #64748B;
  --line: #E7DED2;
  --line-soft: #EFE7DB;

  --brand: #1E3A8A;
  --cta: #1E4ED8;
  --cta-hover: #1947C9;
  --calm: #2F6D5C;
  --warn: #B45309;

  --deep: #0B1530;

  --radius-btn: 14px;
  --radius: 14px;
  --radius-lg: 20px;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Fluid spacing */
  --pad-x: clamp(18px, 5vw, 40px);
  --maxw: 1200px;
  --sec-y: clamp(56px, 9vw, 112px);

  --focus-ring: 3px solid rgba(30, 78, 216, 0.45);
  --focus-offset: 3px;
}

@media (min-width: 1440px) {
  :root { --maxw: 1280px; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 16px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
@media (min-width: 760px) {
  body { padding-bottom: 0; }
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============ FOCUS UNIVERSAL ============ */
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); border-radius: 6px; }
.btn:focus-visible,
.btn-primary:focus-visible { outline-offset: 4px; }

/* ============ TYPOGRAPHY ============ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(10.5px, 2.6vw, 11.5px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.lead {
  font-size: clamp(16px, 4.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============ NAV (mobile-first) ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
@supports (backdrop-filter: blur(12px)) {
  .nav {
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px var(--pad-x);
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }

/* Hamburger toggle (visible mobile only) */
.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.nav-toggle:hover { background: var(--surface); border-color: var(--ink-soft); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .bar-close { display: none; }
.nav-toggle[aria-expanded="true"] .bar-open { display: none; }
.nav-toggle[aria-expanded="true"] .bar-close { display: block; }

/* Nav links drawer on mobile */
.nav-links {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--pad-x) 18px;
  box-shadow: 0 24px 40px -20px rgba(15, 23, 42, 0.15);
}
.nav-links.open { display: flex; }
.nav-links a {
  padding: 12px 4px;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.nav-links a:last-child { border-bottom: none; }
.nav-links a:hover { color: var(--cta); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--cta); color: #fff;
  border-radius: var(--radius-btn);
  font-weight: 600; font-size: 13px;
  line-height: 1;
  border: none; cursor: pointer;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
  min-height: 44px;
}
.nav-cta svg { width: 14px; height: 14px; }
.nav-cta:hover { background: var(--cta-hover); transform: translateY(-1px); }
.nav-cta .nav-cta-short-label { display: inline; }
.nav-cta .nav-cta-long-label { display: none; }

@media (min-width: 520px) {
  .nav-cta { padding: 10px 16px; font-size: 13.5px; }
  .nav-cta .nav-cta-long-label { display: inline; }
  .nav-cta .nav-cta-short-label { display: none; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    gap: 28px;
    font-size: 14px;
    background: transparent;
    border: none;
    box-shadow: none;
    flex: 1;
    justify-content: center;
    color: var(--ink-soft);
  }
  .nav-links a {
    padding: 0;
    border: none;
    font-size: 14px;
    color: var(--ink-soft);
  }
  .nav-links a:hover { color: var(--ink); }
}

/* ============ BOTÓN PRIMARIO ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  font-size: 15.5px; font-weight: 600;
  border-radius: var(--radius-btn);
  border: none; cursor: pointer;
  font-family: var(--font-ui);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
  text-align: center;
  line-height: 1.15;
}
@media (min-width: 640px) {
  .btn { min-height: 56px; padding: 0 28px; font-size: 16px; }
}
.btn-primary {
  background: var(--cta); color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 6px 16px -6px rgba(30, 78, 216, 0.35);
}
.btn-primary:hover { background: var(--cta-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.cta-micro {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center;
}
.cta-micro span.sep { color: var(--line); }
.cta-block { display: inline-flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.cta-block.center { align-items: center; text-align: center; }

/* ============ HERO (mobile-first) ============ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(32px, 7vw, 88px) 0 clamp(40px, 7vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero h1 {
  font-size: clamp(34px, 8vw, 58px);
  margin-bottom: 20px;
  line-height: 1.07;
  letter-spacing: -0.015em;
}
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead {
  max-width: min(560px, 100%);
  margin-bottom: 24px;
}
.hero-bullets {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  max-width: min(560px, 100%);
  display: flex; flex-direction: column; gap: 10px;
}
.hero-bullets li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; line-height: 1.5; color: var(--ink);
}
.hero-bullets li svg {
  flex-shrink: 0; width: 20px; height: 20px;
  color: var(--brand);
  margin-top: 2px;
}

/* Hero visual */
.hero-visual-editorial {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #FCD9A8 0%, #F5B27C 40%, #DE8C5A 100%);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(222,140,90,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.hero-visual-editorial .hero-illustration {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
}
.hero-visual-editorial .hero-visual-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 10px;
  padding: clamp(20px, 4vw, 36px);
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(28,18,8,0.25) 70%, rgba(28,18,8,0.85) 100%);
  z-index: 2;
}
.hero-visual-editorial .quote-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FDE8CC;
  margin-bottom: 4px;
}
.hero-visual-editorial .quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1.2;
  color: #FFFBF5;
  letter-spacing: -0.01em;
  max-width: 95%;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-visual-editorial .quote-author {
  font-size: 13px;
  color: #F8E3C4;
  font-weight: 500;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.18);
  letter-spacing: 0.01em;
}
.hero-visual-editorial .stamp {
  position: absolute;
  top: clamp(14px, 3vw, 24px);
  right: clamp(14px, 3vw, 24px);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,251,245,0.85);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: #7C4A1E;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
@supports (backdrop-filter: blur(10px)) {
  .hero-visual-editorial .stamp {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}
.hero-visual-editorial .stamp .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 0 #16A34A;
  animation: heroPulse 2s infinite;
}
@keyframes heroPulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
}

/* Hero pill CTA */
.hero .btn-xl {
  min-height: auto;
  padding: 18px 30px;
  font-size: 15.5px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(30,78,216,0.2), 0 10px 28px -8px rgba(30,78,216,0.45);
  width: 100%;
}
@media (min-width: 520px) {
  .hero .btn-xl { width: auto; padding: 20px 36px; font-size: 16px; }
}
.hero .btn-xl:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(30,78,216,0.2), 0 20px 36px -10px rgba(30,78,216,0.5);
}

/* Hero proofs (bullets alternativos) */
.hero-proofs {
  display: flex; flex-direction: column; gap: 12px;
  margin: 24px 0 28px;
  max-width: min(560px, 100%);
}
.hero-proofs .proof {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; line-height: 1.5; color: var(--ink-soft);
}
.hero-proofs .proof strong { color: var(--ink); font-weight: 600; }
.hero-proofs .proof-check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(30, 78, 216, 0.12);
  color: var(--cta);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.hero-proofs .proof-check svg { width: 12px; height: 12px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

.hero-meta {
  display: flex; flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 12.5px; color: var(--ink-mute);
  align-items: center;
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--calm);
  display: inline-block;
}
.hero-meta .item { display: flex; align-items: center; gap: 8px; }

/* ============ BANDA DE CONFIANZA ============ */
.trust-band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 18px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 24px;
}
@media (min-width: 540px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}
.trust-item svg {
  width: 18px; height: 18px; color: var(--brand);
  flex-shrink: 0;
}

/* ============ SECCIONES BÁSICAS ============ */
section.sec { padding: var(--sec-y) 0; }
.sec-header {
  max-width: 760px;
  margin: 0 0 clamp(28px, 5vw, 56px);
}
.sec-header .eyebrow { margin-bottom: 12px; display: inline-block; }
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 52px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.sec-title em { font-style: italic; color: var(--brand); }
.sec-sub {
  font-size: clamp(15.5px, 3.8vw, 17px);
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ============ VÍDEOS ============ */
.video-section {
  background: var(--deep);
  color: #F3F4F6;
}
.video-section .sec-title { color: #fff; }
.video-section .sec-title em { color: #93B4FF; }
.video-section .sec-sub { color: #CBD5E1; }
.video-section .eyebrow { color: #94A3B8; }

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) { .video-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 960px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-grid .video-card.portrait { max-width: 360px; margin: 0 auto; width: 100%; }
.video-card { position: relative; }
.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(160deg, #1E3A8A 0%, #0B1530 100%);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(18px, 4vw, 24px);
  transition: transform .2s ease, border-color .2s ease;
}
@media (min-width: 960px) { .video-thumb { aspect-ratio: 3 / 4; } }
.video-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,0.03) 22px 23px);
  pointer-events: none;
}
.video-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.video-thumb:hover { transform: translateY(-3px); }
.video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(56px, 14vw, 72px); height: clamp(56px, 14vw, 72px);
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  color: var(--cta);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.5);
  transition: transform .2s ease;
  z-index: 2;
}
.video-thumb:hover .video-play { transform: translate(-50%, -50%) scale(1.06); }
.video-play svg { width: 28px; height: 28px; margin-left: 3px; }
.video-duration {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  padding: 4px 8px;
  background: rgba(0,0,0,0.55);
  border-radius: 4px;
  color: #fff;
  z-index: 2;
}
.video-meta { position: relative; z-index: 2; color: #fff; }
.video-tagline {
  font-family: var(--font-display);
  font-size: clamp(18px, 4.4vw, 26px);
  font-style: italic;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  max-width: 92%;
}
.video-identity {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: #CBD5E1;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.video-identity .chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  color: #E7EEFF;
}
.video-footnote {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: #94A3B8;
  font-style: italic;
}

/* Video modal */
.video-modal {
  position: fixed; inset: 0;
  background: rgba(5, 10, 25, 0.92);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(14px, 4vw, 40px) clamp(12px, 3vw, 20px);
}
.video-modal.open { display: flex; }
.video-modal-frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
}
.video-modal-frame.short {
  max-width: min(380px, 100%);
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
}
.video-modal-frame iframe {
  width: 100%; height: 100%;
  border: 0;
}
.video-modal-close {
  position: absolute;
  top: clamp(12px, 3vw, 20px);
  right: clamp(12px, 3vw, 20px);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background .15s;
}
.video-modal-close:hover { background: rgba(255,255,255,0.22); }
.video-modal-close svg { width: 20px; height: 20px; }

/* ============ 4 CAUSAS ============ */
.causes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .causes-grid { grid-template-columns: 1fr 1fr; gap: 1px; } }
@media (min-width: 1100px) { .causes-grid { grid-template-columns: repeat(4, 1fr); gap: 1px; } }
.cause {
  background: var(--surface);
  padding: clamp(22px, 5vw, 32px) clamp(20px, 4vw, 26px);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 180px;
}
.cause-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.cause-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cause-desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* ============ BENEFICIOS ============ */
.benefits-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 820px;
}
@media (min-width: 700px) { .benefits-list { grid-template-columns: 1fr 1fr; gap: 16px; } }
.benefit-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: clamp(18px, 4vw, 22px) clamp(18px, 4vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.benefit-item svg {
  flex-shrink: 0; width: 22px; height: 22px;
  color: var(--brand);
  margin-top: 2px;
}
.benefit-item-text {
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.5;
}
.benefit-item-text strong { font-weight: 600; display: block; margin-bottom: 2px; }
.benefit-item-text span { color: var(--ink-soft); font-size: 14.5px; }

/* ============ PASOS ============ */
.steps-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: step;
}
@media (min-width: 900px) { .steps-wrap { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step {
  position: relative;
  padding: clamp(22px, 4vw, 28px) clamp(20px, 4vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--brand);
  font-weight: 600;
}
.step h4 {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 24px);
  letter-spacing: -0.01em;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.15;
}
.step p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

/* ============ EQUIPO ============ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 28px);
}
@media (min-width: 800px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.person {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.person-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #EFE7DB 0%, #E2D5BE 100%);
  display: flex; align-items: flex-end; justify-content: center;
  position: relative;
}
.person-img {
  width: 86%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 6px 20px rgba(15,23,42,0.12));
  transform: translateY(4%);
}
.person-body { padding: clamp(20px, 4vw, 28px); }
.person-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 6px;
}
.person-role {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.person-colegiado {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--brand);
  background: rgba(30, 58, 138, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.person-bio { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

.team-claim {
  font-family: var(--font-display);
  font-size: clamp(22px, 5.5vw, 32px);
  text-align: center;
  margin: clamp(32px, 6vw, 48px) auto 0;
  max-width: 680px;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.team-claim em { color: var(--brand); font-style: italic; }
.team-verify {
  display: flex; justify-content: center;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-mute);
}
.team-verify a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* ============ CIFRA + CASOS ============ */
.cases-section {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cases-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (min-width: 900px) { .cases-layout { grid-template-columns: 1fr 1fr; } }
.cases-figure {
  font-family: var(--font-display);
  font-size: clamp(52px, 15vw, 96px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--brand);
}
.cases-figure .euro { font-size: 0.55em; color: var(--ink-mute); vertical-align: top; margin-right: 8px; }
.cases-figure .plus { font-size: 0.5em; color: var(--brand); }
.cases-figure-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.cases-desc {
  font-size: 15.5px; color: var(--ink-soft); line-height: 1.65;
  max-width: 460px;
  margin-top: 18px;
}

.cases-examples { display: flex; flex-direction: column; gap: 12px; }
.case-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.case-amount {
  font-family: var(--font-display);
  font-size: clamp(22px, 5.5vw, 26px);
  color: var(--brand);
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.case-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.case-desc strong { color: var(--ink); font-weight: 600; }

/* ============ PRECIO ============ */
.price-section { background: var(--bg); }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 44px);
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.12);
}
.price-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 20px 0 22px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
@media (min-width: 600px) {
  .price-list { grid-template-columns: 1fr 1fr; gap: 12px; padding: 22px; }
}
.price-feat {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--ink); line-height: 1.45;
}
.price-feat::before {
  content: "";
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px;
  background: var(--brand);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}
.price-objection {
  background: #FDF6E7;
  border: 1px solid #F3E3BC;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 22px;
  display: flex; gap: 14px;
  align-items: flex-start;
}
.price-objection svg {
  width: 20px; height: 20px;
  color: var(--warn);
  flex-shrink: 0;
  margin-top: 2px;
}
.price-objection-text { font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.price-objection-text strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }
.price-cta { display: flex; justify-content: center; }
.price-cta .btn { width: 100%; }
@media (min-width: 520px) { .price-cta .btn { width: auto; } }

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(18px, 4.6vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  min-height: 44px;
  padding-right: 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  transition: transform .2s;
  margin-top: 2px;
}
.faq .plus svg { width: 12px; height: 12px; }
.faq-answer {
  padding-top: 12px;
  color: var(--ink-soft);
  font-size: 15px; line-height: 1.65;
  max-width: 680px;
}

/* ============ FINAL CTA ============ */
.final {
  background: var(--deep);
  color: #fff;
  padding: clamp(56px, 10vw, 120px) 0;
  text-align: center;
}
.final .sec-title { color: #fff; font-size: clamp(30px, 8vw, 60px); }
.final .sec-title em { color: #93B4FF; font-style: italic; }
.final .lead { color: #CBD5E1; max-width: 620px; margin: 0 auto 28px; }
.final .btn-primary {
  background: #fff; color: var(--deep);
  box-shadow: 0 20px 50px -20px rgba(255,255,255,0.15);
  width: 100%;
  max-width: 340px;
}
@media (min-width: 520px) { .final .btn-primary { width: auto; max-width: none; } }
.final .btn-primary:hover { background: #E7EEFF; color: var(--deep); }
.final .cta-micro { color: #94A3B8; justify-content: center; margin-top: 12px; }

/* ============ FOOTER ============ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  color: var(--ink-mute);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
footer a { color: var(--ink-soft); display: inline-block; padding: 4px 0; }
footer a:hover { color: var(--ink); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-legal {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  font-size: 12px;
}
@media (min-width: 700px) { .footer-legal { flex-direction: row; justify-content: space-between; } }

/* ============ STICKY CTA MÓVIL ============ */
.sticky-cta {
  display: block;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
  z-index: 40;
  box-shadow: 0 -8px 24px -10px rgba(15, 23, 42, 0.15);
}
@supports (backdrop-filter: blur(16px)) {
  .sticky-cta {
    background: color-mix(in oklab, var(--bg) 96%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}
.sticky-cta .btn { width: 100%; min-height: 52px; font-size: 15px; }
@media (min-width: 760px) { .sticky-cta { display: none; } }

/* ============ REVEAL ON SCROLL ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ CARRUSEL RESOLUCIONES ============ */
.resolutions-section {
  background: var(--bg);
  overflow: hidden;
}
.resolutions-head {
  display: flex; flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
@media (min-width: 700px) {
  .resolutions-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
  }
}
.resolutions-head .sec-header { margin-bottom: 0; max-width: 620px; }
.res-controls { display: flex; gap: 10px; }
.res-ctrl {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
@media (min-width: 640px) { .res-ctrl { width: 48px; height: 48px; } }
.res-ctrl:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.res-ctrl:active { transform: translateY(1px); }
.res-ctrl:disabled { opacity: 0.4; cursor: not-allowed; }
.res-ctrl svg { width: 18px; height: 18px; }

.res-viewport {
  position: relative;
  margin: 0 calc(-1 * var(--pad-x));
  padding: 8px var(--pad-x) 16px;
  overflow: hidden;
}
.res-track {
  display: flex;
  gap: 16px;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
@media (min-width: 700px) { .res-track { gap: 24px; } }
.res-card {
  flex: 0 0 min(280px, 85vw);
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.18);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: zoom-in;
}
@media (min-width: 700px) { .res-card { flex: 0 0 320px; } }
@media (min-width: 960px) { .res-card { flex: 0 0 340px; } }
.res-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 20px 40px -20px rgba(30, 58, 138, 0.25);
}

.res-doc {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #F1F5F9;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.res-doc img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.res-card:hover .res-doc img { transform: scale(1.03); }
.res-doc::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.35) 100%);
  pointer-events: none;
}
.res-doc-seal {
  position: absolute; top: 12px; right: 12px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(30, 58, 138, 0.15);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--calm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
@supports (backdrop-filter: blur(8px)) {
  .res-doc-seal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.85);
  }
}
.res-doc-seal::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}
.res-doc-zoom {
  position: absolute; bottom: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  transition: transform .2s, background .2s;
  pointer-events: none;
}
@supports (backdrop-filter: blur(8px)) {
  .res-doc-zoom {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.85);
  }
}
.res-doc-zoom svg { width: 14px; height: 14px; }
.res-card:hover .res-doc-zoom { background: var(--brand); color: #fff; transform: scale(1.1); }

.res-card-meta {
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.res-card-amount {
  font-family: var(--font-display);
  font-size: clamp(24px, 5.5vw, 28px);
  letter-spacing: -0.01em;
  color: var(--brand);
  line-height: 1;
}
.res-card-sub {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
  margin-top: 2px;
}
.res-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.res-card-foot-item { display: flex; align-items: center; gap: 6px; }
.res-card-foot-item svg { width: 11px; height: 11px; color: var(--calm); flex-shrink: 0; }

/* Lightbox */
.res-lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 14, 22, 0.92);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(14px, 4vw, 40px) clamp(12px, 3vw, 20px);
  opacity: 0;
  transition: opacity .25s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .res-lightbox {
    background: rgba(10, 14, 22, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}
.res-lightbox.open { display: flex; opacity: 1; }
.res-lightbox-inner {
  position: relative;
  max-width: 900px; width: 100%;
  max-height: 100%;
  display: flex; flex-direction: column;
  gap: 14px;
}
.res-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 200px);
  max-height: calc(100dvh - 200px);
  width: auto; height: auto;
  border-radius: 12px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
  background: #fff;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.res-lightbox-caption {
  color: rgba(255,255,255,0.92);
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  align-items: center; justify-content: center;
  font-size: 13.5px;
  text-align: center;
}
.res-lightbox-caption strong {
  font-family: var(--font-display);
  font-size: clamp(18px, 4.6vw, 22px);
  color: #fff;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.res-lightbox-caption span { opacity: 0.7; }
.res-lightbox-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 3;
}
@media (min-width: 960px) {
  .res-lightbox-close { top: -44px; right: 0; background: rgba(255, 255, 255, 0.1); }
}
.res-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.res-lightbox-close svg { width: 18px; height: 18px; }
.res-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 2;
}
@media (min-width: 640px) { .res-lightbox-nav { width: 48px; height: 48px; } }
.res-lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.res-lightbox-nav.prev { left: 8px; }
.res-lightbox-nav.next { right: 8px; }
@media (min-width: 960px) {
  .res-lightbox-nav.prev { left: -64px; }
  .res-lightbox-nav.next { right: -64px; }
}
.res-lightbox-nav svg { width: 20px; height: 20px; }

.res-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.res-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .15s, width .15s;
  min-width: 10px;
}
.res-dot.active { background: var(--brand); width: 24px; border-radius: 4px; }

.res-disclaimer {
  text-align: center;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--ink-mute);
  font-style: italic;
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 100;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%; width: 0%;
  background: var(--cta);
  transition: width 0.1s linear;
}

/* ============ PREFERS-REDUCED-MOTION GLOBAL ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-visual-editorial .stamp .pulse { animation: none; box-shadow: 0 0 0 3px rgba(22,163,74,0.2); }
  .scroll-progress-bar { transition: none; }
}

/* ============ ACCESSIBILITY UTILITIES ============ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Prevent body scroll when modal is open */
body.no-scroll { overflow: hidden; position: relative; }
