/* ==========================================================================
   Educanorte · Hoja de estilos
   Colores de marca: #041c54 (oscuro) · #0d65c1 (medio) · #118bd8 (claro)
   ========================================================================== */

@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #041c54;
  --navy-2: #0a2a72;
  --blue: #0d65c1;
  --sky: #118bd8;
  --sky-50: #eaf5fc;
  --sky-100: #d4ebf9;
  --ink: #0b1633;
  --text: #3a4560;
  --muted: #66718a;
  --line: #e1e7f0;
  --soft: #f4f7fb;
  --white: #ffffff;
  --amber: #f2b632;
  --amber-50: #fff6df;
  --green: #0f8a5f;
  --red: #c0352b;

  --ff-head: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(4, 28, 84, .06), 0 1px 1px rgba(4, 28, 84, .04);
  --shadow: 0 10px 30px -12px rgba(4, 28, 84, .22), 0 2px 6px rgba(4, 28, 84, .05);
  --shadow-lg: 0 30px 60px -24px rgba(4, 28, 84, .35);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--ff-body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--ink); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 700; letter-spacing: -.028em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.022em; }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { color: var(--ink); font-weight: 650; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--ff-head); font-weight: 600; font-size: 1.02rem; line-height: 1; padding: 1em 1.4em; border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; white-space: nowrap; }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(13, 101, 193, .8); }
.btn-primary:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: #c9d5e6; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky-50); color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #167a42; color: #fff; }
.btn-sm { padding: .72em 1.1em; font-size: .95rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--ff-head); font-weight: 600; text-decoration: none; color: var(--blue); }
.link-arrow .ico { width: 1em; height: 1em; transition: transform .18s; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(4,28,84,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand img { width: 176px; height: auto; }
.nav-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a { display: block; white-space: nowrap; padding: 10px 12px; color: var(--ink); text-decoration: none; font-family: var(--ff-head); font-weight: 500; font-size: 1rem; border-radius: 8px; }
.nav-list a:hover, .nav-list a[aria-current] { color: var(--blue); }
.nav-list a[aria-current]::after { content: ""; display: block; height: 2px; margin-top: 3px; background: var(--sky); border-radius: 2px; }
.sub-toggle { display: none; }
.has-sub .sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s; }
.has-sub .sub::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 10px 12px; font-size: .97rem; }
.sub a:hover { background: var(--soft); }
.sub a[aria-current]::after { display: none; }
.nav-extra { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; list-style: none; margin: 0; padding: 3px; background: var(--soft); border-radius: 999px; }
.lang-switch a { display: block; padding: 5px 10px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-decoration: none; border-radius: 999px; }
.lang-switch a[aria-current] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.lang-switch a:hover { color: var(--navy); }

@media (max-width: 1180px) {
  .header-inner { height: 66px; }
  .brand img { width: 150px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; color: var(--navy); cursor: pointer; }
  .nav-toggle .ico { width: 22px; height: 22px; }
  .nav-toggle-close, .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .site-nav { position: fixed; top: 66px; left: 0; right: 0; bottom: 0; display: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 12px var(--gutter) 32px; background: #fff; overflow-y: auto; }
  .site-nav.open { display: flex; animation: navIn .2s ease; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; padding: 16px 4px; font-size: 1.15rem; }
  .nav-list a[aria-current]::after { display: none; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; color: var(--navy); cursor: pointer; }
  .sub-toggle .ico { transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] .ico { transform: rotate(90deg); }
  .has-sub .sub { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px 8px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .nav-extra { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 24px; }
  .lang-switch { align-self: flex-start; }
  .nav-extra .btn { padding: 1em; font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sm { padding: clamp(44px, 6vw, 72px) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-family: var(--ff-head); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--navy) 0 33%, var(--blue) 33% 66%, var(--sky) 66%); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* ---------- Hero portada ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.hero::before { /* banda diagonal inspirada en la "N" del logotipo */
  content: ""; position: absolute; z-index: -1; right: -12%; top: -30%; width: 62%; height: 170%;
  background: linear-gradient(180deg, var(--sky-50), #f7fbff 70%); transform: skewX(-24deg); border-left: 1px solid var(--sky-100); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-size: .95rem; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: .45em; }
.hero-facts .ico { color: var(--green); width: 1.1em; height: 1.1em; }
.hero-visual { position: relative; padding-bottom: 12%; }
.hero-visual .frame-back { width: 88%; margin-left: auto; transform: rotate(1.5deg); }
.hero-visual .frame-front { position: absolute; width: 72%; left: 0; bottom: 0; transform: rotate(-2deg); }
.hero-note { position: absolute; right: 2%; bottom: 4%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .85rem; line-height: 1.35; color: var(--ink); max-width: 210px; }
.hero-note strong { display: block; font-family: var(--ff-head); color: var(--blue); font-size: 1.05rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { right: -40%; width: 90%; }
  .hero-visual { max-width: 560px; }
}

/* ---------- Marco de navegador para capturas ---------- */
.frame { background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(4,28,84,.08); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef2f8; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd8e6; }
.frame-bar span { margin-left: 8px; flex: 1; height: 18px; border-radius: 6px; background: #fff; font-size: 11px; line-height: 18px; padding: 0 8px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-style: normal; }
.frame img { width: 100%; }

/* ---------- Barra de ventajas ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { display: flex; gap: 14px; align-items: flex-start; padding: 28px 22px; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item .ico { width: 28px; height: 28px; color: var(--blue); margin-top: 2px; }
.proof-item h3 { font-size: 1.02rem; margin: 0 0 4px; }
.proof-item p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .proof-item:nth-child(-n+2) { border-top: 0; }
  .proof-item:first-child { padding-left: 16px; }
}
@media (max-width: 520px) { .proof-grid { grid-template-columns: 1fr; } .proof-item:nth-child(2) { border-top: 1px solid var(--line); } }

/* ---------- Tarjetas de etapas ---------- */
.stage-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.stage-card { grid-column: span 2; position: relative; display: flex; flex-direction: column; padding: 28px 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.stage-card:nth-child(4), .stage-card:nth-child(5) { grid-column: span 3; }
.stage-card:hover { border-color: #b8d6f0; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.stage-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 14px; background: var(--sky-50); color: var(--blue); margin-bottom: 18px; }
.stage-icon .ico { width: 26px; height: 26px; }
.stage-card h3 { margin-bottom: 8px; }
.stage-card p { font-size: .98rem; color: var(--muted); flex: 1; }
.stage-card .link-arrow { margin-top: 6px; }
.stage-tag { position: absolute; top: 24px; right: 22px; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--amber-50); color: #8a5a00; }
@media (max-width: 900px) { .stage-grid { grid-template-columns: 1fr 1fr; } .stage-card, .stage-card:nth-child(4), .stage-card:nth-child(5) { grid-column: span 1; } .stage-card:last-child { grid-column: span 2; } }
@media (max-width: 600px) { .stage-grid { grid-template-columns: 1fr; } .stage-card:last-child { grid-column: span 1; } }

/* ---------- Bloques demo (alternos) ---------- */
.showcase { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.showcase + .showcase { margin-top: clamp(64px, 8vw, 104px); }
.showcase.reverse .showcase-media { order: 2; }
.showcase-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: .4em; font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--sky-50); color: var(--blue); }
.chip-amber { background: var(--amber-50); color: #8a5a00; }
.chip-navy { background: var(--navy); color: #fff; }
.chip-green { background: #e5f5ee; color: var(--green); }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 19px; height: 19px; border-radius: 50%; background: var(--sky-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d65c1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } .showcase.reverse .showcase-media { order: 0; } }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 30px 26px 26px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--ff-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--sky); margin-bottom: 18px; }
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Precios ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.price-card .ribbon { position: absolute; top: -13px; left: 28px; background: var(--blue); color: #fff; font-family: var(--ff-head); font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }
.price-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.price-card .for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 2px; font-family: var(--ff-head); color: var(--ink); }
.price .amount { font-size: 3rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.price .per { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-vat { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.price-card .ticks { font-size: .97rem; flex: 1; }
.price-card .btn { margin-top: auto; }
.price-sub { font-size: .9rem; color: var(--muted); margin: -8px 0 18px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* Tabla de tramos */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-family: var(--ff-head); font-weight: 600; color: var(--ink); background: var(--soft); font-size: .92rem; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.best td { background: #f2f9ff; }

/* Calculadora */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.calc-in { padding: clamp(24px, 4vw, 40px); }
.calc-out { padding: clamp(24px, 4vw, 40px); background: var(--navy); color: #cfe0f7; }
.calc-out h3 { color: #fff; }
.field { margin-bottom: 22px; }
.field label, .field .label { display: block; font-family: var(--ff-head); font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field .hint { display: block; font-size: .88rem; color: var(--muted); margin-top: 6px; }
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid #c9d5e6; border-radius: 12px; overflow: hidden; }
.stepper button { width: 48px; border: 0; background: var(--soft); color: var(--navy); font-size: 1.35rem; font-weight: 600; cursor: pointer; }
.stepper button:hover { background: var(--sky-50); }
.stepper input { width: 84px; border: 0; text-align: center; font: 600 1.25rem var(--ff-head); color: var(--ink); padding: 10px 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-lines { list-style: none; padding: 0; margin: 0 0 20px; }
.calc-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .98rem; }
.calc-lines li span:last-child { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0 4px; }
.calc-total strong { font-family: var(--ff-head); font-size: 2.3rem; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-note { font-size: .88rem; color: #9fb6d8; }
.calc-save { display: inline-block; margin: 6px 0 18px; padding: 5px 12px; border-radius: 999px; background: rgba(242,182,50,.18); color: #ffd978; font-size: .88rem; font-weight: 600; }
.calc-save[hidden] { display: none; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Banda oscura ---------- */
.band { position: relative; overflow: hidden; background: var(--navy); color: #c9d8f0; }
.band::after { content: ""; position: absolute; right: -8%; top: -40%; width: 40%; height: 180%; background: linear-gradient(180deg, rgba(17,139,216,.22), rgba(13,101,193,.05)); transform: skewX(-24deg); pointer-events: none; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #7cc4f2; }
.band-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.band-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.band-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.band-list .ico { width: 24px; height: 24px; color: #7cc4f2; margin-top: 2px; }
.band-list strong { color: #fff; display: block; font-family: var(--ff-head); }
.band a:not(.btn) { color: #9fd5f7; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } }

/* ---------- Autor ---------- */
.author { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; max-width: 920px; margin: 0 auto; }
.author-mark { width: 150px; height: 150px; border-radius: 32px; background: var(--sky-50); display: flex; align-items: center; justify-content: center; }
.author-mark img { width: 92px; }
.author blockquote { margin: 0 0 14px; font-family: var(--ff-head); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.4; color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .author { grid-template-columns: 1fr; text-align: left; } .author-mark { width: 96px; height: 96px; border-radius: 22px; } .author-mark img { width: 58px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; cursor: pointer; font-family: var(--ff-head); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d65c1' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--text); max-width: 760px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 8px; }

/* ---------- CTA final ---------- */
.cta { text-align: center; }
.cta-box { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px); border-radius: 28px; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #d7e6fa; }
.cta-box::before { content: ""; position: absolute; left: -10%; top: -50%; width: 35%; height: 200%; background: rgba(255,255,255,.06); transform: skewX(-24deg); }
.cta-box h2 { color: #fff; position: relative; }
.cta-box p { position: relative; max-width: 620px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Cabecera de página interior ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 5vw, 60px); background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; right: -6%; top: -40%; width: 34%; height: 190%; background: linear-gradient(180deg, var(--sky-50), rgba(234,245,252,0)); transform: skewX(-24deg); border-left: 1px solid var(--sky-100); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 860px; }
.page-hero .lead { max-width: 720px; margin-bottom: 0; }
.page-hero .hero-cta { margin: 26px 0 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b3bfd1; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* ---------- Rejillas y tarjetas genéricas ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .stage-icon { margin-bottom: 16px; }
.card-soft { background: var(--soft); border-color: transparent; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.idea { display: flex; flex-direction: column; }
.idea .chip { align-self: flex-start; margin-bottom: 14px; }
.idea p { color: var(--muted); font-size: .98rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Demos */
.demo-card { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; }
.demo-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.demo-card .thumb { background: var(--soft); padding: 22px 22px 0; }
.demo-card .thumb .frame { box-shadow: var(--shadow); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.demo-card .body { padding: 24px 26px 26px; display: flex; flex-direction: column; }
.demo-card .body p { color: var(--muted); font-size: .98rem; flex: 1; }
.demo-card.soon { border-style: dashed; background: var(--soft); display: flex; flex-direction: column; justify-content: center; padding: 32px 28px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin: 0; }
.facts div { padding: 18px 20px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 4px 0 0; font-family: var(--ff-head); font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--amber-50); color: #5c4200; font-size: .97rem; }
.note .ico { color: #b07d00; margin-top: 3px; }
.note p:last-child { margin: 0; }
.note-blue { background: var(--sky-50); color: var(--navy); }
.note-blue .ico { color: var(--blue); }

/* ---------- Formulario ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 13px 14px; border: 1.5px solid #cdd7e5; border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.form textarea { min-height: 150px; resize: vertical; }
.form select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23041c54' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; padding-right: 40px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(17,139,216,.18); }
.form .req { color: var(--red); }
.form .field.has-error input, .form .field.has-error select, .form .field.has-error textarea { border-color: var(--red); }
.field-error { display: block; color: var(--red); font-size: .88rem; margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.legal-first { font-size: .82rem; color: var(--muted); line-height: 1.5; background: var(--soft); padding: 14px 16px; border-radius: 10px; margin: 18px 0 22px; }
.legal-first p { margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-size: .97rem; }
.alert-error { background: #fdecea; color: #8a1f17; }
.contact-side .card + .card { margin-top: 16px; }
.contact-line { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; font-family: var(--ff-head); font-size: 1.08rem; }
.contact-line .stage-icon { margin: 0; width: 46px; height: 46px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Texto legal ---------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: .2em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose table { margin: 1em 0 1.6em; }
.prose .table-wrap { margin: 1em 0 1.6em; }
.prose .table-wrap table { margin: 0; }
.legal-meta { font-size: .9rem; color: var(--muted); }
.toc { padding: 20px 24px; background: var(--soft); border-radius: var(--r); margin-bottom: 40px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; font-size: .95rem; }
.toc li { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Pie ---------- */
.site-footer { background: #031540; color: #a9bbd8; padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 170px; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-size: .84rem; color: #d7e4f7; }
.footer-badge .ico { color: #6fd3a5; width: 18px; height: 18px; }
.footer-title { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #a9bbd8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .ico { color: #7cc4f2; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal li { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 12px 14px; border-radius: 999px; background: #1f9d55; color: #fff; text-decoration: none; font-family: var(--ff-head); font-weight: 600; font-size: .95rem; box-shadow: 0 10px 24px -8px rgba(15,80,40,.55); transition: transform .18s, background .18s; }
.wa-float:hover { background: #167a42; color: #fff; transform: translateY(-2px); }
.wa-float .ico { width: 22px; height: 22px; }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.big404 { font-family: var(--ff-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--sky-100); -webkit-text-stroke: 2px var(--sky); margin-bottom: 12px; }
.h2-like { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.h3 { font-size: 1.28rem; }
.page-hero .showcase-meta { margin: 22px 0 0; }
.center .stage-icon { margin: 0 auto 18px; }
.center .hero-cta { justify-content: center; }
.center .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps.steps-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps.steps-4 { grid-template-columns: 1fr; } }

@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.section-head p.eyebrow { color: var(--blue); font-size: .82rem; }
.band .lead { color: #c9d8f0; }
.price .amount.amount-text { font-size: 2.2rem; }
.split > *, .grid-2 > *, .grid-3 > *, .contact-grid > *, .band-grid > *, .hero-grid > *, .showcase > *, .calc > * { min-width: 0; }
@media (max-width: 560px) { th, td { padding: 12px 12px; } table { font-size: .92rem; } }
.note[hidden] { display: none; }
