/* Autoescuelas · manual gratuito: oscuro, amarillo de autoescuela y tarjetas limpias */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); }

:root {
  --bg: #0A0A0B;
  --panel: #141416;
  --panel-2: #1B1B1F;
  --line: #26262B;
  --yellow: #FFD21F;
  --yellow-dark: #D9AE00;
  --red: #E3122B;
  --white: #FFFFFF;
  --text: #EDEDF0;
  --muted: #A1A1AB;
  --light: #F6F5F1;
  --ink: #111114;
  --ink-muted: #5C5C66;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Inter", system-ui, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hl { color: var(--yellow); }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 11, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; }
.brand img { filter: invert(1); width: 30px; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 0.95rem; text-decoration: none; transition: transform 0.15s, background 0.15s; }
.pill:hover { background: #FFDC4D; transform: translateY(-1px); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.6rem; padding: 0 1.9rem; border: 0; border-radius: 14px; font: inherit; font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 30px rgba(255, 210, 31, 0.25); }
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 210, 31, 0.35); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-sm { min-height: 2.6rem; padding: 0 1.1rem; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 31, 0.2); }
h1 { font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.6rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); font-weight: 900; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.lead { margin-top: 1.1rem; max-width: 40rem; color: var(--muted); font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem); text-wrap: pretty; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem); background: radial-gradient(60rem 30rem at 85% 10%, rgba(255, 210, 31, 0.14), transparent 60%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.6rem; color: var(--muted); font-size: 0.92rem; list-style: none; padding: 0; }
.facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.facts li::before { content: "✓"; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: rgba(255, 210, 31, 0.15); color: var(--yellow); font-size: 0.72rem; font-weight: 900; }
.book { position: relative; justify-self: center; width: min(100%, 360px); }
.book img { border-radius: 6px 14px 14px 6px; box-shadow: -14px 0 0 -6px #000 inset, 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06); transform: perspective(1200px) rotateY(-14deg) rotateX(3deg); transition: transform 0.4s; }
.book:hover img { transform: perspective(1200px) rotateY(-6deg) rotateX(1deg); }
.book .badge { position: absolute; top: -14px; right: -10px; padding: 0.55rem 0.9rem; border-radius: 999px; background: var(--red); color: var(--white); font-weight: 900; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; transform: rotate(6deg); box-shadow: 0 10px 24px rgba(227, 18, 43, 0.4); }

/* Secciones */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { max-width: 46rem; }
.section-head h2 { margin-top: 0.9rem; }
.light { background: var(--light); color: var(--ink); }
.light .eyebrow { color: var(--ink); }
.light .eyebrow::before { background: var(--red); box-shadow: 0 0 0 4px rgba(227, 18, 43, 0.15); }
.light .lead { color: var(--ink-muted); }

/* Problemas */
.pain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.6rem; }
.pain article { padding: 1.5rem; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.pain article:hover { border-color: rgba(255, 210, 31, 0.5); transform: translateY(-3px); }
.ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: rgba(255, 210, 31, 0.12); color: var(--yellow); }
.ico svg { width: 1.3rem; height: 1.3rem; }
.pain h3 { margin-top: 1.1rem; font-size: 1.12rem; font-weight: 800; line-height: 1.25; }
.pain p { margin-top: 0.55rem; color: var(--muted); font-size: 0.95rem; }
.punch { margin-top: 3rem; font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; max-width: 48rem; }

/* Pasos del manual */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 2.6rem; }
.steps li { padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid #E6E4DD; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02); }
.num { display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding: 0 0.5rem; border-radius: 10px; background: var(--yellow); color: var(--ink); font-weight: 900; font-size: 0.92rem; }
.steps h3 { margin-top: 1rem; font-size: 1.12rem; font-weight: 800; line-height: 1.25; }
.steps p { margin-top: 0.45rem; color: var(--ink-muted); font-size: 0.95rem; }
.steps .extra { background: var(--ink); color: var(--white); border-color: var(--ink); }
.steps .extra p { color: #B9B9C2; }
.center-cta { margin-top: 2.4rem; }

/* Caso */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: 2.6rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.case img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 14px; }
.case .tag { display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.case h3 { margin-top: 0.9rem; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }
.case p { margin-top: 0.6rem; color: var(--muted); }
.case .result { margin-top: 1.1rem; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); font-weight: 900; line-height: 1.2; color: var(--yellow); }

/* Quiénes somos */
.team { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.photos img:last-child { margin-top: 2.2rem; }
.team ul { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: 0.8rem; }
.team li { display: flex; gap: 0.8rem; align-items: flex-start; }
.team li .ico { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 10px; }
.team li .ico svg { width: 1.1rem; height: 1.1rem; }
.team li b { display: block; }
.team li span { color: var(--muted); font-size: 0.95rem; }

/* Formulario */
.download { background: var(--yellow); color: var(--ink); }
.download .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.download .eyebrow { color: var(--ink); }
.download .eyebrow::before { background: var(--ink); box-shadow: none; }
.download h2 { margin-top: 0.9rem; }
.download .lead { color: #3D3A2A; }
.download ul { list-style: none; padding: 0; margin-top: 1.4rem; display: grid; gap: 0.5rem; font-weight: 600; }
.download ul li::before { content: "→ "; font-weight: 900; }
.form { position: relative; display: grid; gap: 1rem; padding: clamp(1.25rem, 4vw, 2rem); border-radius: 22px; background: var(--white); box-shadow: 0 30px 60px rgba(90, 70, 0, 0.25); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-weight: 700; font-size: 0.92rem; }
.opt { font-weight: 500; color: var(--ink-muted); font-size: 0.84rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] { width: 100%; min-height: 3.2rem; padding: 0.7rem 0.95rem; border: 2px solid #E2E1DC; border-radius: 12px; font: inherit; color: var(--ink); background: #FAFAF8; transition: border-color 0.15s, background 0.15s; }
.field input:focus { outline: none; border-color: var(--ink); background: var(--white); }
.check label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; font-size: 0.92rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.22rem; accent-color: var(--ink); flex: none; }
.err { display: none; color: #B30D20; font-size: 0.85rem; font-weight: 600; }
.field.invalid .err { display: block; }
.field.invalid input[type="text"], .field.invalid input[type="tel"], .field.invalid input[type="email"] { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note-small { font-size: 0.82rem; color: var(--ink-muted); text-align: center; }
.status { display: none; padding: 0.9rem 1rem; border-radius: 12px; font-weight: 600; }
.status.show { display: block; }
.status.error { background: #FDE8EB; color: #B30D20; }
.done-box { display: none; text-align: center; padding: 1rem 0.5rem; }
.done-box .big { font-size: 2.6rem; }
.done-box h3 { margin-top: 0.4rem; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }
.done-box p { margin: 0.5rem auto 1.3rem; max-width: 26rem; color: var(--ink-muted); }
.form.done > :not(.done-box) { display: none; }
.form.done .done-box { display: block; }

/* Preguntas */
.faq { max-width: 52rem; margin-top: 2.2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.08rem; font-weight: 700; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--panel-2); color: var(--yellow); font-weight: 900; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; color: var(--muted); max-width: 60ch; }

/* Pie y cookies */
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.4rem; padding: 2.2rem var(--gutter) 2.6rem; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }
.foot a, .foot button { color: inherit; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.cookie { position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 60; display: none; max-width: 24rem; padding: 1.1rem; background: var(--white); color: var(--ink); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); font-size: 0.9rem; }
.cookie.show { display: block; }
.cookie .actions { display: flex; gap: 0.5rem; margin-top: 0.8rem; }

@media (max-width: 960px) {
  .pain { grid-template-columns: 1fr 1fr; }
  .hero .wrap, .team, .download .wrap, .case { grid-template-columns: 1fr; }
  .book { width: min(62%, 260px); margin-top: 0.5rem; }
  .photos { max-width: 520px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top .pill { min-height: 2.5rem; padding: 0 1rem; font-size: 0.88rem; }
  .pain, .row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cookie { right: var(--gutter); max-width: none; }
}
