/* ===========================================================================
   autoescuela.io — landing page
   Direction: Stripe / Basecamp sobriety. White + professional dark blue,
   WhatsApp green used only as a functional accent (chat + "free" plan).
   The AI is the engine, never the headline.
   =========================================================================== */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy:    #0b2e5c;
  --navy-2:  #14396f;
  --navy-3:  #1c4480;
  --amber:     #f59e0b;
  --amber-text:#d97706;
  --amber-dk:  #c2760a;
  --wa:      #25d366;
  --wa-dk:   #0c8a6a;
  --wa-head: #075e54;

  --bg:      #ffffff;
  --bg-alt:  #f4f8fc;
  --bg-tint: #eef4fb;
  --line:    #e2eaf2;
  --line-2:  #d4dfeb;

  --ink:     #0b2e5c;
  --text:    #44566b;
  --muted:   #76889b;

  --radius:  14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10,37,64,0.06), 0 1px 3px rgba(10,37,64,0.05);
  --shadow:    0 4px 14px rgba(10,37,64,0.07), 0 1px 3px rgba(10,37,64,0.05);
  --shadow-lg: 0 24px 60px rgba(10,37,64,0.16), 0 6px 18px rgba(10,37,64,0.08);
  --shadow-phone: 0 40px 90px rgba(10,37,64,0.28), 0 12px 30px rgba(10,37,64,0.12);

  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.show-mobile { display: none; }
body {
  margin: 0;
  font-family: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  line-height: 1.6;
  font-size: 17px;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 104px 0; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--amber-text); margin-bottom: 18px;
}
.lead { font-size: 21px; line-height: 1.5; color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  border-radius: 10px; padding: 13px 24px; border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: #422006; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--amber-dk); color: #2e1503; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--muted); }
.btn-wa { background: #1faa52; color: #fff; box-shadow: var(--shadow-sm); }
.btn-wa:hover { background: #178a43; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eaf0f7; transform: translateY(-1px); }

/* ── Header ───────────────────────────────────────────────────────────── */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,46,92,0.82); backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08); transition: border-color .2s ease, box-shadow .2s ease;
}
.hdr.scrolled { border-color: rgba(255,255,255,0.12); box-shadow: 0 1px 14px rgba(7,30,58,0.28); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.logo .glyph { width: 30px; height: 30px; flex-shrink: 0; }
.logo b { font-weight: 700; } .logo .tld { color: var(--amber-text); }
.hdr .logo { color: #fff; }
.hdr .logo .tld { color: #fbbf24; }
.hdr-right { display: flex; align-items: center; gap: 18px; }
.hdr-right .entrar { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.82); }
.hdr-right .entrar:hover { color: #fff; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 150px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 78% 8%, #eaf1fb 0%, rgba(234,241,251,0) 60%),
    linear-gradient(#fff, #fbfdff);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 62px); letter-spacing: -0.035em; line-height: 1.03; }
.hero h1 .accent { color: var(--amber-text); }
.hero .lead { margin-top: 22px; max-width: 520px; }
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-sec-link { font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: color .15s, border-color .15s; }
.hero-sec-link:hover { color: var(--ink); border-color: var(--muted); }
.hero-rea { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.hero-rea .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* ── Phone mockup ─────────────────────────────────────────────────────── */
.phone {
  width: 320px; margin: 0 auto; background: #0b0b0d; border-radius: 44px; padding: 11px;
  box-shadow: var(--shadow-phone); position: relative;
}
.phone-screen { border-radius: 34px; overflow: hidden; background: var(--bg-alt); position: relative; }
.phone-island { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; background: #0b0b0d; border-radius: 16px; z-index: 6; }
.wa-top {
  background: var(--wa-head); padding: 36px 14px 11px; display: flex; align-items: center; gap: 9px; color: #fff;
}
.wa-top .av { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.wa-top .av .dots { display: flex; flex-direction: column; gap: 2px; }
.wa-top .av .dots span { width: 6px; height: 6px; border-radius: 50%; display: block; }
.wa-top .nm { font-size: 14.5px; font-weight: 600; line-height: 1.15; }
.wa-top .st { font-size: 11.5px; color: rgba(255,255,255,0.8); }
.wa-body {
  background: #efeae2;
  background-image: radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px); background-size: 20px 20px;
  padding: 14px 11px; display: flex; flex-direction: column; gap: 7px; min-height: 360px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wb { max-width: 83%; font-size: 13.4px; line-height: 1.36; color: #111b21; padding: 6px 9px 7px; border-radius: 8px; box-shadow: 0 1px 0.5px rgba(11,20,26,0.13); position: relative; }
.wb .t { float: right; font-size: 10px; color: #667781; margin: 5px -2px -3px 10px; }
.wb .tick { color: #53bdeb; }
.wb b { font-weight: 600; } .wb i { color: #5b6b73; font-style: italic; }
.wb.in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.wb.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 2px; }
.wa-input { display: flex; align-items: center; gap: 8px; padding: 8px 11px 14px; background: #efeae2; }
.wa-input .field { flex: 1; background: #fff; border-radius: 20px; padding: 8px 14px; font-size: 13px; color: #8696a0; box-shadow: 0 1px 1px rgba(0,0,0,0.05); font-family: system-ui, sans-serif; }
.wa-input .sendb { width: 38px; height: 38px; border-radius: 50%; background: var(--wa-head); display: grid; place-items: center; flex-shrink: 0; }

/* ── How it works ─────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); position: relative;
}
.step .num { font-size: 13px; font-weight: 700; color: var(--amber-text); letter-spacing: 0.04em; }
.step .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-tint); display: grid; place-items: center; margin: 16px 0 18px; color: var(--navy); }
.step h3 { font-size: 20px; margin-bottom: 9px; }
.step p { font-size: 15.5px; }
.step-connect { position: absolute; top: 52px; right: -16px; color: var(--line-2); z-index: 2; }

/* ── Benefits (chat captures) ─────────────────────────────────────────── */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; align-items: start; }
.benefit h3 { font-size: 19px; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.benefit h3 .bi { color: var(--wa-dk); display: inline-flex; }
.benefit > p { font-size: 15px; margin-bottom: 18px; }
.chatcard {
  background: #efeae2; border-radius: 16px; padding: 13px 11px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; border: 1px solid rgba(10,37,64,0.04);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ── Dashboard section ────────────────────────────────────────────────── */
.dash-sec { background: var(--navy); color: #cfe0f5; }
.dash-sec h2 { color: #fff; }
.dash-sec .lead { color: #aac4e4; }
.dash-head { max-width: 720px; }
.dash-mock {
  background: #fff; border-radius: var(--radius-lg); margin-top: 48px; overflow: hidden;
  box-shadow: var(--shadow-lg); color: var(--text);
}
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.dash-bar .tl { display: flex; gap: 6px; }
.dash-bar .tl span { width: 11px; height: 11px; border-radius: 50%; }
.dash-bar .title { margin-left: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dash-bar .live { margin-left: auto; font-size: 12px; color: var(--wa-dk); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dash-bar .live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 7px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; }
.dash-chart { padding: 30px 32px; border-right: 1px solid var(--line); }
.dash-chart .ct { font-size: 15px; font-weight: 600; color: var(--ink); }
.dash-chart .cs { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.bench { display: flex; flex-direction: column; gap: 20px; }
.bench-row { }
.bench-row .bl { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; }
.bench-row .bl .nm { color: var(--text); font-weight: 500; }
.bench-row .bl .vl { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.track { height: 12px; background: var(--bg-tint); border-radius: 7px; overflow: hidden; }
.fill { height: 100%; border-radius: 7px; width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.fill.you { background: linear-gradient(90deg, var(--amber), #fbbf24); }
.fill.prov { background: #9fb3c8; }
.fill.nac { background: #c4d2e0; }
.dash-side { padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.kpi { }
.kpi .kl { font-size: 13px; color: var(--muted); }
.kpi .kv { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }
.kpi .kd { font-size: 12.5px; font-weight: 600; }
.kpi .kd.up { color: var(--wa-dk); }
.semaforo { display: flex; gap: 14px; padding-top: 4px; }
.semaforo .s { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); font-weight: 500; }
.semaforo .s .d { width: 10px; height: 10px; border-radius: 50%; }
.dash-note { margin-top: 20px; font-size: 13.5px; color: #8fb0d6; display: flex; align-items: center; gap: 8px; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 34px; box-shadow: var(--shadow-sm); }
.plan.featured { border-color: var(--amber); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured .tagp { position: absolute; top: -13px; left: 34px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 20px; letter-spacing: 0.02em; }
.plan .pn { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.plan .pn.free { color: var(--wa-dk); }
.plan .pp { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; }
.plan .pp .amt { font-size: 46px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.plan .pp .per { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan .psub { font-size: 14px; color: var(--muted); min-height: 20px; }
.plan .pbtn { margin: 26px 0; }
.plan .pbtn .btn { width: 100%; }
.feats { display: flex; flex-direction: column; gap: 13px; }
.feat { display: flex; gap: 11px; font-size: 15px; color: var(--text); align-items: flex-start; }
.feat .ck { color: var(--wa-dk); flex-shrink: 0; margin-top: 2px; }
.feat .ck.navy { color: var(--amber-text); }
.feat b { color: var(--ink); font-weight: 600; }
.price-foot { text-align: center; margin-top: 38px; font-size: 16px; color: var(--text); }
.price-foot b { color: var(--ink); }

/* ── Enterprise band ─────────────────────────────────────────────────── */
.enterprise-band { background: var(--navy); border-radius: var(--radius-lg); padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.enterprise-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--amber); margin-bottom: 6px; }
.enterprise-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.enterprise-feats { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.enterprise-feats span { font-size: 14px; color: #c8d8f0; }
.enterprise-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex-shrink: 0; }
.enterprise-price { font-size: 18px; font-weight: 700; color: #fff; white-space: nowrap; }
@media (max-width: 760px) {
  .enterprise-band { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .enterprise-right { align-items: flex-start; width: 100%; }
  .enterprise-right .btn { width: 100%; text-align: center; }
}

/* ── Footer CTA ───────────────────────────────────────────────────────── */
.cta-sec { background: linear-gradient(160deg, #0b2e5c, #14396f); color: #fff; padding: 100px 0; text-align: center; }
.cta-sec h2 { color: #fff; font-size: clamp(30px, 4.2vw, 46px); max-width: 760px; margin: 0 auto; letter-spacing: -0.03em; line-height: 1.08; }
.cta-form { display: flex; gap: 12px; max-width: 580px; margin: 38px auto 16px; flex-wrap: wrap; justify-content: center; }
.cta-form input {
  flex: 1; min-width: 200px; font-family: inherit; font-size: 15.5px; padding: 14px 18px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.07); color: #fff;
}
.cta-form input::placeholder { color: #93acca; }
.cta-form input:focus { outline: none; border-color: var(--wa); background: rgba(255,255,255,0.12); }
.cta-rea { font-size: 14px; color: #93acca; }

/* footer */
.foot { background: #08203a; color: #7e96b4; padding: 40px 0; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .logo { color: #fff; }
.foot .links { display: flex; gap: 24px; font-size: 14px; }
.foot .links a:hover { color: #fff; }
.foot .social { display: flex; gap: 14px; }
.foot .social a { color: #7e96b4; display: inline-flex; transition: color .15s ease; }
.foot .social a:hover { color: #fff; }
.foot .cr { font-size: 13px; color: #5e789a; }

/* ── Por qué funciona (inteligencia) ──────────────────────────────────── */
.iq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 48px; }
.iq-ico { width: 46px; height: 46px; border-radius: 12px; background: #fdf0d9; color: var(--amber-dk); display: grid; place-items: center; margin-bottom: 16px; }
.iq h3 { font-size: 19px; margin-bottom: 8px; }
.iq p { font-size: 15px; }
.iq-foot { margin-top: 42px; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.iq-foot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
.iq-banner { margin-top: 40px; display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  background: linear-gradient(100deg, #fff7e6, #fffdf7); border: 1px solid #fbe3b3; border-radius: 14px;
  font-size: 16px; line-height: 1.5; color: #5c4a2a; }
.iq-banner svg { color: var(--amber); flex-shrink: 0; }
.iq-banner b { color: #92400e; font-weight: 700; }

/* ── Reveal animation ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 116px; padding-bottom: 64px; }
  .hero .lead { max-width: none; }
  .steps, .benefits { grid-template-columns: 1fr; }
  .iq-grid { grid-template-columns: 1fr; gap: 24px; }
  .step-connect { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-chart { border-right: none; border-bottom: 1px solid var(--line); }
  .price-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
  .section { padding: 72px 0; }
}
@media (max-width: 680px) {
  .price-grid { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hdr-in { gap: 12px; }
  .hdr .logo { font-size: 17px; }
  .hdr-right { gap: 12px; }
  .hdr-right .entrar { font-size: 14px; }
  .hdr-right .btn { padding: 10px 16px; font-size: 15px; }
  .hdr-right .cta-gratis { display: none; }
  .page-practica .hdr-right .entrar { display: none; }
  section[id], .section[id] { scroll-margin-top: 80px; }
  .hide-mobile { display: none; }
  .show-mobile { display: inline; }
  .hero-rea { flex-wrap: wrap; row-gap: 6px; }
  .hero-rea .dot:last-of-type { display: none; }
  .bridge-inner { padding: 24px 22px !important; gap: 16px !important; }
  body { font-size: 16px; }
  .hero { padding-top: 104px; }
  .hero h1 { font-size: clamp(33px, 9vw, 44px); }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .phone { width: 100%; max-width: 320px; }
  .dash-bar { flex-wrap: wrap; row-gap: 6px; }
  .dash-bar .live { margin-left: 0; }
  .dash-chart, .dash-side { padding: 22px 20px; }
  .plan { padding: 28px 24px; }
  .cta-form { flex-direction: column; }
  .cta-form input, .cta-form .btn { width: 100%; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot .links { flex-wrap: wrap; gap: 14px 20px; }
  .cta-sec { padding: 72px 0; }
}
