/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy:       #0F2A4A;
  --navy-2:     #163A61;
  --navy-deep:  #0A1E36;
  --sky:        #5FA8E0;
  --sky-soft:   #E4F1FC;
  --bg:         #FFFFFF;
  --bg-soft:    #F5F9FC;
  --ink:        #14243A;
  --ink-mute:   #55677D;
  --ink-faint:  #8496A9;
  --line:       rgba(15,42,74,0.12);
  --glass:      rgba(255,255,255,0.6);
  --glass-line: rgba(15,42,74,0.09);
  --white:      #FFFFFF;

  --display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --container: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--navy);
}
ul { list-style: none; padding: 0; }
::selection { background: var(--sky); color: var(--navy-deep); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 40px; height: 40px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--navy); color: var(--white);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

.accent { color: var(--sky); }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(15,42,74,0.08), 0 1px 3px rgba(15,42,74,0.06);
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), background .3s var(--ease-out);
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15,42,74,0.24), 0 8px 18px rgba(95,168,224,0.22);
  background: var(--navy-2);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--navy);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.02rem; }
.btn-sm { padding: .55rem 1.15rem; font-size: .85rem; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; justify-content: center; gap: inherit; will-change: transform; transition: transform .7s var(--ease-soft); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 1px 0 rgba(15,42,74,0.04); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .85rem;
  gap: 1rem;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.nav-logo { width: 30px; height: 30px; border-radius: 7px; }
.footer .nav-logo { width: 26px; height: 26px; }
.nav-links {
  display: none;
  gap: 1.75rem;
}
.nav-links a {
  position: relative; padding: .3rem 0;
  font-size: .92rem; font-weight: 500; color: var(--ink-mute);
  transition: color .25s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--sky);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-soft);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; padding: 0; align-items: center;
}
.nav-burger span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; top: 0; z-index: 90;
  background: var(--navy);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--white); }
.nav-mobile .btn-primary { background: var(--sky); color: var(--navy-deep); margin-top: .5rem; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero { position: relative; padding-block: 3rem 3.5rem; overflow: clip; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(45% 45% at 75% 20%, rgba(95,168,224,0.22), transparent 65%),
    radial-gradient(35% 35% at 15% 55%, rgba(15,42,74,0.08), transparent 65%);
  z-index: -1; pointer-events: none;
}
.hero-grid { display: grid; gap: 2.5rem; }
.eyebrow {
  display: inline-block;
  color: var(--sky);
  background: var(--sky-soft);
  padding: .35rem .85rem;
  border-radius: 999px;
  font-weight: 600; font-size: .78rem;
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.2rem, 6.5vw, 3.4rem);
  max-width: 16ch;
}
.hero-sub {
  margin-top: 1.1rem;
  max-width: 46ch;
  color: var(--ink-mute);
  font-size: clamp(1rem, 2vw, 1.12rem);
}
.hero-actions {
  display: flex; gap: .85rem; flex-wrap: wrap;
  margin-top: 1.75rem;
}
.hero-trust {
  display: flex; align-items: center; gap: .45rem;
  margin-top: 1.25rem;
  color: var(--ink-faint);
  font-size: .85rem; font-weight: 500;
}
.hero-trust .ic { color: var(--sky); }

.hero-visual { position: relative; max-width: 420px; margin-inline: auto; }
.hero-img-main {
  width: 100%; border-radius: 24px;
  box-shadow: 0 40px 80px -20px rgba(15,42,74,0.35), 0 0 0 1px rgba(15,42,74,0.06);
}
.hero-img-float {
  position: absolute; width: 42%;
  right: -6%; bottom: -8%;
  border-radius: 18px;
  border: 4px solid var(--bg);
  box-shadow: 0 24px 50px -14px rgba(15,42,74,0.4);
}

/* =============================================================
   7. Sections
   ============================================================= */
.section { padding-block: 4.5rem; }
.section-alt { background: var(--bg-soft); }
.section-kicker {
  color: var(--sky);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 2.25rem;
  max-width: 24ch;
}
.section-text {
  color: var(--ink-mute);
  max-width: 52ch;
  margin-bottom: 2rem;
  font-size: 1.02rem;
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15,42,74,0.04);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass-card { background: rgba(255,255,255,0.92); }
}

/* Pain grid */
.pain-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.pain-card {
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .85rem;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.pain-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(15,42,74,0.25); }
.pain-card .ic { color: var(--sky); }
.pain-card p { color: var(--ink-mute); font-size: .96rem; }
.pain-close {
  margin-top: 2.5rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  color: var(--navy);
  font-weight: 600;
  text-align: center;
  max-width: 32ch;
  margin-inline: auto;
}

/* Solución */
.solucion-grid { display: grid; gap: 2.5rem; align-items: center; }
.benefit-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.benefit-item { display: flex; gap: 1rem; align-items: flex-start; }
.benefit-item .ic {
  color: var(--navy); background: var(--sky-soft); padding: 10px; border-radius: 12px;
  width: 42px; height: 42px; flex-shrink: 0;
}
.benefit-item h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.benefit-item p { color: var(--ink-mute); font-size: .95rem; }
.solucion-visual img {
  border-radius: 22px; width: 100%; max-width: 380px; margin-inline: auto;
  box-shadow: 0 30px 60px -18px rgba(15,42,74,0.28);
}

/* Modules grid */
.modules-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.module-card {
  padding: 1.5rem;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), border-color .4s;
}
.module-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -18px rgba(15,42,74,0.24); border-color: rgba(95,168,224,0.35); }
.module-card .ic {
  color: var(--navy); background: var(--sky-soft); padding: 9px; border-radius: 11px;
  width: 38px; height: 38px; margin-bottom: 1rem;
}
.module-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.module-card p { color: var(--ink-mute); font-size: .9rem; }

/* Fit grid */
.fit-grid { display: grid; gap: 1.25rem; }
.fit-card { padding: 2rem; }
.fit-card h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; margin-bottom: 1.25rem; }
.fit-yes h3 .ic { color: #2f9e64; }
.fit-no h3 .ic { color: #c14a3d; }
.fit-card ul { display: flex; flex-direction: column; gap: .85rem; }
.fit-card li { color: var(--ink-mute); font-size: .96rem; padding-left: 1.3rem; position: relative; }
.fit-card li::before { content: "—"; position: absolute; left: 0; color: var(--ink-faint); }

/* Guarantee */
.guarantee-section { padding-block: 3rem; }
.guarantee-block {
  max-width: 640px; margin-inline: auto; text-align: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 28px;
  padding: 3rem 2rem;
  box-shadow: 0 40px 80px -24px rgba(15,42,74,0.4);
}
.guarantee-block .ic { color: var(--sky); margin-inline: auto; margin-bottom: 1rem; }
.guarantee-block h2 { color: var(--white); font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: .75rem; }
.guarantee-block p { color: rgba(255,255,255,0.75); max-width: 40ch; margin-inline: auto; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; max-width: 760px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.35rem;
  background: var(--white);
}
.faq-item summary {
  cursor: pointer; font-weight: 600; color: var(--navy);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.3rem; color: var(--sky); font-weight: 400; flex-shrink: 0;
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: .85rem; color: var(--ink-mute); font-size: .95rem; }

/* CTA final */
.cta-final { position: relative; overflow: clip; padding-block: 5rem; }
.cta-final-glow {
  position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 50% 30%, rgba(95,168,224,0.18), transparent 70%);
  z-index: -1;
}
.cta-final-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.cta-final-inner h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); max-width: 22ch; }
.cta-final-note {
  display: flex; align-items: center; gap: .45rem;
  color: var(--ink-faint); font-size: .85rem; font-weight: 500;
}
.cta-final-note .ic { color: var(--sky); }

/* =============================================================
   8. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding-block: 2.5rem; background: var(--bg-soft); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .85rem; text-align: center; }
.footer-disclaimer { color: var(--ink-faint); font-size: .8rem; max-width: 46ch; }
.footer-copy { color: var(--ink-faint); font-size: .8rem; }

/* =============================================================
   9. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .fit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero-visual { max-width: 100%; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .pain-grid { grid-template-columns: repeat(5, 1fr); }
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
  .solucion-grid { grid-template-columns: 1.15fr .85fr; }
  .section { padding-block: 6rem; }
}
@media (min-width: 1280px) {
  .hero { padding-block: 5rem 6rem; }
}
