:root {
  --deep: #001423;
  --deep-2: #062436;
  --teal: #28B2A2;
  --teal-ink: #1A7F73;
  --paper: #F8F9FC;
  --ink: #0B1B2A;
  --ink-soft: #46566A;
  --line: #DDE3EA;
  --line-dark: rgba(248, 249, 252, 0.14);
  --fog: #A9B7C6;
  --radius: 14px;
  --wrap: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: var(--deep); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--teal); color: var(--deep);
  font-weight: 700; font-size: 16px; text-decoration: none;
  border-radius: 999px; border: 1.5px solid var(--teal);
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { background: #33C4B3; }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line-dark); }
.btn-ghost:hover { background: rgba(248, 249, 252, 0.08); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 20, 35, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.brand span { font-weight: 900; letter-spacing: 0.14em; font-size: 17px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--fog); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--paper); }

/* ---------- Tipografía de secciones ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow span { width: 22px; height: 2px; background: var(--teal); display: inline-block; }
.eyebrow.dark { color: var(--teal-ink); }
h1 {
  font-weight: 900; font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02; letter-spacing: -0.03em; margin-top: 20px;
  max-width: 13ch; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--teal); }
h2 {
  font-weight: 900; font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08; letter-spacing: -0.025em; margin-top: 14px; max-width: 22ch; text-wrap: balance;
}
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; }
.sub { color: var(--ink-soft); margin-top: 12px; font-size: 18px; max-width: 56ch; }
.sub.light { color: var(--fog); }
.num { font-weight: 700; color: var(--teal-ink); font-size: 14px; letter-spacing: 0.08em; }

.section { padding: 112px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #0A3346 0%, var(--deep) 55%);
  color: var(--paper);
  padding: 120px 0 104px;
}
.hero-inner { position: relative; z-index: 1; }
.hero .lead { margin-top: 24px; font-size: clamp(18px, 2vw, 21px); color: #C9D4DF; max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.motto { display: flex; flex-wrap: wrap; gap: 0; margin-top: 72px; border-top: 1px solid var(--line-dark); max-width: 640px; }
.motto li { flex: 1 1 0; padding: 16px 16px 0 0; font-weight: 700; font-size: 17px; }
.motto b { display: block; color: var(--teal); font-size: 13px; letter-spacing: 0.1em; font-weight: 700; }

.hex-field {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: min(640px, 70vw); height: auto; opacity: 0.9; pointer-events: none;
}
.hex-field use { fill: none; stroke: rgba(40, 178, 162, 0.35); stroke-width: 1.2; }
.hex-field use.on { fill: rgba(40, 178, 162, 0.16); stroke: rgba(40, 178, 162, 0.7); }
.hex-field use.solid { fill: var(--teal); stroke: var(--teal); }

/* ---------- Dolores ---------- */
.two-col { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.pains { margin-top: 36px; display: grid; gap: 12px; }
.pains li {
  position: relative; padding: 18px 20px 18px 56px;
  background: #EEF2F6; border-radius: var(--radius);
  font-weight: 600; font-size: 17px; line-height: 1.4;
}
.pains li::before {
  content: "?"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--deep); color: var(--teal);
  display: grid; place-items: center; font-weight: 900; font-size: 14px;
}
.answer {
  margin-top: 64px; padding: 40px; border-radius: 20px;
  background: var(--deep); color: var(--paper);
}
.answer h3 { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; color: var(--teal); }
.answer p { margin-top: 16px; color: #C9D4DF; }
.answer p.strong { color: var(--paper); font-weight: 600; }
.commit { margin-top: 28px; border-top: 1px solid var(--line-dark); }
.commit li { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fog); }

/* ---------- Servicios ---------- */
#servicios { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.svc {
  display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.svc:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 20, 35, 0.35); }
.svc h3 { margin-top: 18px; }
.svc p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; flex: 1; }
.svc small { margin-top: 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink); }

/* ---------- Ejemplo / flujo ---------- */
.flow-sec { background: var(--deep); color: var(--paper); }
.flow-sec h2 { max-width: 24ch; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; counter-reset: f; }
.flow li {
  position: relative; padding: 26px 24px;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: rgba(248, 249, 252, 0.04);
}
.flow li.hl { border-color: var(--teal); background: rgba(40, 178, 162, 0.1); }
.flow li:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--teal); font-weight: 700; z-index: 1;
}
.flow .num { color: var(--teal); }
.flow b { display: block; margin-top: 12px; font-size: 18px; line-height: 1.3; }
.flow p { margin-top: 8px; color: var(--fog); font-size: 15px; }
.flow-result { margin-top: 36px; padding-left: 18px; border-left: 3px solid var(--teal); color: #C9D4DF; max-width: 64ch; }
.flow-result b { color: var(--paper); }

/* ---------- Método ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; }
.step { border-top: 2px solid var(--deep); padding-top: 22px; }
.step .num { font-size: 18px; }
.step h3 { margin-top: 6px; font-size: 26px; font-weight: 900; color: var(--teal-ink); letter-spacing: -0.01em; }
.step p { margin-top: 10px; color: var(--ink-soft); }
.gains { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.gains div { padding: 28px 24px; }
.gains div + div { border-left: 1px solid var(--line); }
.gains b { font-size: 18px; }
.gains p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Contacto ---------- */
.contact-sec { background: radial-gradient(100% 120% at 0% 100%, #0A3346 0%, var(--deep) 60%); color: var(--paper); }
.contact-sec .btn { margin-top: 32px; }
.channels { display: grid; gap: 12px; }
.channels a, .channels .static > div {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid var(--line-dark); background: rgba(248, 249, 252, 0.04);
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.channels a:hover { border-color: var(--teal); background: rgba(40, 178, 162, 0.08); }
.channels svg { width: 26px; height: 26px; fill: var(--teal); flex: none; }
.channels span { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.channels small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); }

/* ---------- Footer ---------- */
.footer { background: #000D17; color: var(--fog); padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.footer h4 { color: var(--paper); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.footer ul { margin-top: 16px; display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; }

/* ---------- Movimiento ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hex-field use { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .answer { margin-top: 40px; }
  .contact-sec .two-col { gap: 40px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow li:nth-child(2)::after { display: none; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .gains { grid-template-columns: repeat(2, 1fr); }
  .gains div:nth-child(3) { border-left: 0; }
  .gains div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hex-field { opacity: 0.35; right: -160px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 88px 0 72px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .motto { margin-top: 48px; }
  .section { padding: 72px 0; }
  .answer { padding: 28px 22px; }
  .svc-grid, .flow { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .gains { grid-template-columns: 1fr; }
  .gains div + div { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .hex-field { opacity: 0.22; width: 420px; right: -200px; }
}
