:root {
  --indigo: #1b1f4b;
  --indigo-2: #272c66;
  --ink: #161a3a;
  --muted: #5d6280;
  --line: #e7e6f0;
  --bg: #fffdf9;
  --bg-alt: #f6f3ee;
  --accent: #ff7a59;
  --accent-2: #ffc94a;
  --teal: #2bb3a3;
  --ok: #22a06b;
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(27, 31, 75, .35);
  --font-h: "Outfit", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 16px/1.6 var(--font-b); color: var(--ink); background: var(--bg); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 32px); }
.eyebrow { font: 600 .8rem/1 var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hl { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: #cfd1ea; max-width: 36em; }
.sub { color: var(--muted); }
.pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--bg-alt); color: var(--ink); }
.pill--ok { background: #dff5ea; color: #137a4b; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 12px 30px -10px rgba(255, 122, 89, .8); }
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(27, 31, 75, .75); backdrop-filter: blur(12px); color: #fff; transition: box-shadow .2s; }
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-h); font-weight: 700; font-size: 1.25rem; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.2rem; }
.brand__name em { font-style: normal; color: var(--accent-2); margin-left: 3px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: .95rem; color: #cfd1ea; }
.nav__links a:hover { color: #fff; }
.nav__burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; height: 2px; background: #fff; margin: 6px 0; }

/* Hero */
.hero { position: relative; background: var(--indigo); color: #fff; padding: 140px 0 100px; overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; }
.hero__blob--a { width: 520px; height: 520px; background: var(--accent); right: -120px; top: -160px; }
.hero__blob--b { width: 420px; height: 420px; background: var(--teal); left: -160px; bottom: -200px; opacity: .3; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--accent-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero__checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #cfd1ea; font-size: .92rem; }
.hero__checks li::before { content: "✓"; color: var(--accent-2); font-weight: 700; margin-right: 6px; }

/* Mock teléfono */
.mock { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone { position: relative; width: 300px; background: #fff; color: var(--ink); border-radius: 36px; padding: 38px 16px 20px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 8px #0f1236; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 18px; border-radius: 99px; background: #0f1236; }
.phone__head small { display: block; color: var(--muted); font-size: .72rem; }
.phone__head b { font-family: var(--font-h); font-size: 1.15rem; }
.saldo { margin: 12px 0; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); color: #fff; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.saldo small { grid-column: 1 / -1; color: #cfd1ea; font-size: .72rem; }
.saldo b { font: 700 1.5rem var(--font-h); }
.kid { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.kid__av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #ffe3da; color: #c0462a; font-weight: 700; font-size: .8rem; }
.kid__av--b { background: #d8f3ef; color: #1c7c71; }
.kid b { display: block; font-size: .88rem; }
.kid small { color: var(--muted); font-size: .72rem; }
.kid__nota { margin-left: auto; font: 700 1.05rem var(--font-h); color: var(--ok); }
.phone__sec { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 12px 0 6px; }
.ev { display: flex; align-items: center; gap: 10px; font-size: .82rem; padding: 6px 0; }
.ev span { flex: none; font-size: .64rem; font-weight: 700; background: #fff1e0; color: #b35a00; padding: 4px 6px; border-radius: 8px; width: 48px; text-align: center; }
.card-float { position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.card-float span { font-size: 1.3rem; }
.card-float b { display: block; font-size: .82rem; }
.card-float small { color: var(--muted); font-size: .72rem; }
.card-float--a { left: 0; top: 70px; }
.card-float--b { right: -6px; bottom: -14px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Franja */
.strip { background: var(--accent); color: #fff; }
.strip__in { display: grid; grid-template-columns: repeat(4, 1fr); padding: 28px 0; gap: 20px; }
.strip b { display: block; font: 800 1.8rem var(--font-h); color: var(--indigo); }
.strip span { font-size: .92rem; }

/* Integración Saint */
.saint { padding: 96px 0; background: linear-gradient(180deg, #fff6ef 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.saint__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.saint__copy > p { color: var(--muted); font-size: 1.08rem; }
.saint__copy > p b { color: var(--ink); }
.sync { display: grid; justify-items: center; }
.sync__node { width: 100%; max-width: 360px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.sync__ico { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff1ec; font-size: 1.4rem; }
.sync__node b { font-family: var(--font-h); font-size: 1.1rem; }
.sync__node small { color: var(--muted); }
.sync__node--saint { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.sync__node--saint small { color: #cfd1ea; }
.sync__node--saint .sync__ico { background: rgba(255,255,255,.12); }
.sync__node--fe .sync__ico { background: #dff5ea; }
.sync__link { display: grid; gap: 5px; padding: 8px 0; }
.sync__link i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: flow 1.2s infinite; }
.sync__link i:nth-child(2) { animation-delay: .2s; }
.sync__link i:nth-child(3) { animation-delay: .4s; }
@keyframes flow { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Secciones */
.sec { padding: 96px 0; }
.sec--alt { background: var(--bg-alt); }
.sec--dark { background: var(--indigo); color: #fff; }
.sec--dark .eyebrow { color: var(--accent-2); }
.sec__head { max-width: 760px; margin-bottom: 48px; }

.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pain { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pain__ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff1ec; font-size: 1.3rem; margin-bottom: 12px; }
.pain p { color: var(--muted); margin: 0; }

/* Tabs */
.tabs { background: #fff; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 260px 1fr; }
.tabs__list { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--indigo); }
.tabs__list button { font: 600 .98rem var(--font-b); text-align: left; padding: 14px 16px; border-radius: 12px; border: 0; background: transparent; color: #cfd1ea; cursor: pointer; transition: background .15s, color .15s; }
.tabs__list button:hover { background: rgba(255,255,255,.06); color: #fff; }
.tabs__list button[aria-selected="true"] { background: var(--accent); color: #fff; }
.tabs__list button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.tabs__panel { padding: 36px 40px; }
.tabs__panel h3 { font-size: 1.5rem; }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.sec--dark .ticks li { color: #cfd1ea; }
.ticks li b { color: var(--ink); }
.sec--dark .ticks li b { color: #fff; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }

/* Features */
.feature__in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.recibo { position: relative; background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 440px; justify-self: center; width: 100%; overflow: hidden; }
.recibo::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.recibo__head { display: flex; justify-content: space-between; margin-bottom: 14px; font-family: var(--font-h); }
.recibo__head span { color: var(--muted); }
.recibo__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.recibo__row span { color: var(--muted); }
.recibo__row--beca b { color: var(--ok); }
.recibo__tot { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 10px; }
.recibo__tot b { font: 800 1.6rem var(--font-h); }
.recibo__pays { display: flex; flex-wrap: wrap; gap: 6px; }
.recibo__stamp { position: absolute; right: 26px; bottom: 22px; transform: rotate(-14deg); border: 3px solid var(--ok); color: var(--ok); font: 800 1.1rem var(--font-h); letter-spacing: .12em; padding: 4px 12px; border-radius: 8px; opacity: .8; }

.horario { background: #fff; color: var(--ink); border-radius: 20px; padding: 20px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.horario__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-h); }
.grid { display: grid; grid-template-columns: 44px repeat(5, 1fr); gap: 5px; font-size: .7rem; }
.grid > span { color: var(--muted); font-weight: 600; text-align: center; align-self: center; }
.grid i { font-style: normal; font-weight: 600; text-align: center; padding: 10px 2px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c1 { background: #ffe3da; color: #a83a20; }
.c2 { background: #e2e4ff; color: #3a3f9a; }
.c3 { background: #d8f3ef; color: #1c7c71; }
.c4 { background: #fff1c9; color: #8a6200; }
.c5 { background: #f1e1f7; color: #7a3593; }
.c6 { background: #def0ff; color: #1f5f99; }
.grid .rec { background: repeating-linear-gradient(45deg, #f3f2f7 0 6px, #ebe9f2 6px 12px); color: var(--muted); }
.horario__warn { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #fff1ec; color: #a83a20; font-size: .8rem; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento__card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.bento__card p { color: var(--muted); margin: 0; }
.bento__card--big { grid-row: span 2; background: linear-gradient(160deg, var(--indigo), var(--indigo-2)); color: #fff; border: 0; }
.bento__card--big p { color: #cfd1ea; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { font-size: .82rem; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }

.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.who__item { background: #fff; border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--teal); }
.who__item:nth-child(2n) { border-top-color: var(--accent); }
.who__item b { display: block; font-family: var(--font-h); font-size: 1.1rem; margin-bottom: 6px; }
.who__item span { color: var(--muted); font-size: .95rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-2); color: var(--indigo); font: 800 1.2rem var(--font-h); margin-bottom: 12px; }
.steps b { display: block; font-family: var(--font-h); margin-bottom: 4px; font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: .95rem; }

.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 22px 18px; color: var(--muted); margin: 0; }

/* CTA */
.cta { position: relative; background: var(--indigo); color: #fff; padding: 96px 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--accent); filter: blur(100px); opacity: .3; left: -200px; bottom: -260px; }
.cta__in { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.cta__copy p { color: #cfd1ea; font-size: 1.1rem; }
.cta__contact { list-style: none; padding: 0; color: #cfd1ea; display: grid; gap: 6px; }
.cta__contact a { color: var(--accent-2); }
.form { background: #fff; color: var(--ink); border-radius: 22px; padding: 28px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); width: 100%; }
.form input:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.form__note { margin: 0; font-size: .8rem; color: var(--muted); text-align: center; }

.foot { background: #12153a; color: #9a9dc0; padding: 40px 0; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.foot__main { display: grid; gap: 6px; justify-items: start; flex: 1 1 260px; max-width: 330px; }
.foot__contact { font-size: .9rem; }
.foot__legal { flex-basis: 100%; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.foot .brand { color: #fff; }
.foot p { margin: 0; }
.foot__small { font-size: .8rem; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7); transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-float, .sync__link i { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero__in, .feature__in, .cta__in, .saint__in { grid-template-columns: 1fr; }
  .pains, .who, .steps, .strip__in { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--big { grid-row: auto; grid-column: span 2; }
  .tabs { grid-template-columns: 1fr; }
  .tabs__list { flex-direction: row; overflow-x: auto; }
  .tabs__list button { white-space: nowrap; }
}
@media (max-width: 760px) {
  .nav__links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--indigo); padding: 8px 16px 16px; display: none; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__burger { display: block; margin-left: auto; }
  .nav .btn--sm { display: none; }
  .hero { padding: 110px 0 70px; }
  .sec, .cta, .saint { padding: 72px 0; }
  .pains, .who, .steps, .bento { grid-template-columns: 1fr; }
  .bento__card--big { grid-column: auto; }
  .tabs__panel { padding: 24px 20px; }
  .card-float--a { left: -4px; top: 10px; }
  .card-float--b { right: -4px; bottom: -14px; }
  .phone { width: 270px; }
  .grid { grid-template-columns: 34px repeat(5, 1fr); font-size: .6rem; }
}

.foot__contact a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot__contact a:hover { color: #fff; }
