/* ==========================================================================
   autopanel — sistema de diseño
   Paleta viene del logo: verde bosque #065F46, esmeralda #10B981, menta #6EE7B7
   Tipo: Sora (display) + Inter (texto) + JetBrains Mono (datos: matrículas, km, códigos)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root{
  --dark:    #065F46;
  --mid:     #10B981;
  --light:   #6EE7B7;
  --gray:    #6b7280;

  --bg:        #F7FBF9;
  --bg-alt:    #EEF6F2;
  --surface:   #FFFFFF;
  --border:    #DCE6E1;
  --text:      #0B1F19;
  --text-soft: #4B5B56;
  --shadow:    0 20px 45px -20px rgba(6,95,70,.25);

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --maxw: 1200px;
  --nav-h: 76px;
}

html[data-theme="dark"]{
  --bg:        #081714;
  --bg-alt:    #0C1F1A;
  --surface:   #0F2620;
  --border:    #17352C;
  --text:      #EAF6F0;
  --text-soft: #9CB3AC;
  --shadow:    0 20px 55px -20px rgba(0,0,0,.6);
  --light:     #86F0C4;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  transition:background .35s ease, color .35s ease;
}
h1,h2,h3,h4{
  font-family:'Sora',sans-serif;
  font-weight:800;
  letter-spacing:-0.02em;
  margin:0 0 .5em;
  color:var(--text);
}
p{ margin:0 0 1em; color:var(--text-soft); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
.mono{ font-family:'JetBrains Mono',monospace; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }
section{ padding:112px 0; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'JetBrains Mono',monospace; font-size:12.5px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase; color:var(--mid);
  margin-bottom:18px;
}
.eyebrow::before{ content:""; width:18px; height:2px; background:var(--mid); display:inline-block; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline:2px solid var(--mid); outline-offset:3px; border-radius:6px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

/* ---------------- Botones ---------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 24px; border-radius:999px; font-weight:600; font-size:15px;
  border:1px solid transparent; transition:transform .18s ease, box-shadow .18s ease, background .2s ease;
  white-space:nowrap;
}
.btn:hover{ transform:scale(1.02); }
.btn-primary{ background:var(--dark); color:#fff; }
.btn-primary:hover{ background:#054d3a; box-shadow:0 10px 25px -10px rgba(6,95,70,.55); }
.btn-ghost{ background:transparent; color:var(--text); border-color:var(--border); }
.btn-ghost:hover{ background:var(--bg-alt); }
.btn-block{ width:100%; }
.btn-sm{ padding:9px 16px; font-size:13.5px; }

/* ---------------- Header ---------------- */
.site-header{
  position:sticky; top:0; z-index:100; height:var(--nav-h);
  display:flex; align-items:center;
  background:color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--border);
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand{ display:flex; align-items:center; }
.brand .logo-img{ height:34px; width:auto; display:block; }

.main-nav{ display:flex; align-items:center; gap:22px; }
.main-nav a{
  font-size:14px; font-weight:600; color:var(--text-soft);
  padding:6px 0; border-bottom:2px solid transparent; transition:color .2s, border-color .2s; white-space:nowrap;
}
.main-nav a:hover{ color:var(--text); border-color:var(--light); }

.header-actions{ display:flex; align-items:center; gap:14px; }
.theme-toggle{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--border);
  background:var(--surface); display:flex; align-items:center; justify-content:center;
  color:var(--text); transition:border-color .2s, transform .2s;
}
.theme-toggle:hover{ border-color:var(--mid); transform:rotate(15deg); }
.theme-toggle svg{ width:19px; height:19px; }
.theme-toggle .icon-moon{ display:none; }
html[data-theme="dark"] .theme-toggle .icon-sun{ display:none; }
html[data-theme="dark"] .theme-toggle .icon-moon{ display:block; }

.burger{ display:none; width:42px; height:42px; border-radius:10px; border:1px solid var(--border); background:var(--surface); align-items:center; justify-content:center; }
.burger svg{ width:20px; height:20px; }

/* ---------------- Hero ---------------- */
.hero{ position:relative; overflow:hidden; padding:88px 0 70px; }
.hero::before{
  content:""; position:absolute; inset:-20% -10% auto -10%; height:640px;
  background:
    radial-gradient(600px 320px at 12% 0%, color-mix(in srgb, var(--light) 30%, transparent), transparent 70%),
    radial-gradient(500px 300px at 90% 10%, color-mix(in srgb, var(--mid) 22%, transparent), transparent 70%);
  pointer-events:none; z-index:0;
}
.hero .wrap{ position:relative; z-index:1; display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.hero h1{ font-size:clamp(2.4rem,4.4vw,3.6rem); line-height:1.06; margin-bottom:22px; }
.hero h1 .accent{ color:var(--mid); }
.hero p.lead{ font-size:18px; max-width:46ch; margin-bottom:34px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:38px; }
.hero-badges{ display:flex; gap:22px; flex-wrap:wrap; }
.hero-badges span{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-soft); font-weight:600; }
.hero-badges svg{ width:16px; height:16px; color:var(--mid); flex-shrink:0; }

/* dashboard mock in hero */
.mock-window{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-l);
  box-shadow:var(--shadow); overflow:hidden;
}
.mock-bar{ display:flex; align-items:center; gap:8px; padding:14px 18px; border-bottom:1px solid var(--border); }
.mock-bar span{ width:10px; height:10px; border-radius:50%; background:var(--border); }
.mock-bar span:nth-child(1){ background:#f2867f; } .mock-bar span:nth-child(2){ background:#f4c568; } .mock-bar span:nth-child(3){ background:var(--mid); }
.mock-bar b{ margin-left:10px; font-size:12px; font-weight:600; color:var(--text-soft); font-family:'JetBrains Mono',monospace; }
.mock-body{ padding:20px; display:grid; grid-template-columns:1fr 1.3fr; gap:16px; }
.mock-card{ background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-s); padding:14px; }
.mock-card h5{ font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--gray); margin:0 0 10px; font-family:'JetBrains Mono',monospace; font-weight:600;}
.gauge-mini{ width:88px; height:52px; margin:0 auto 8px; }
.mock-row{ display:flex; align-items:center; justify-content:space-between; padding:7px 0; border-bottom:1px dashed var(--border); font-size:12.5px; }
.mock-row:last-child{ border-bottom:none; }
.pill{ padding:3px 9px; border-radius:999px; font-size:10.5px; font-weight:700; font-family:'JetBrains Mono',monospace; }
.pill-b1{ background:color-mix(in srgb, var(--mid) 18%, transparent); color:var(--dark); }
html[data-theme="dark"] .pill-b1{ color:var(--light); }
.pill-b2{ background:color-mix(in srgb, var(--light) 25%, transparent); color:var(--dark); }
html[data-theme="dark"] .pill-b2{ color:var(--light); }
.mock-chat{ grid-column:1/-1; display:flex; gap:10px; align-items:center; }
.mock-chat .bubble{ background:#DCF8C6; color:#1c2b1e; padding:8px 12px; border-radius:14px 14px 14px 4px; font-size:12px; }
html[data-theme="dark"] .mock-chat .bubble{ background:#1f3d2f; color:#dff5e8; }

/* ---------------- Secciones generales ---------------- */
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(1.8rem,3vw,2.6rem); }
.bg-alt{ background:var(--bg-alt); }

/* Sobre nosotros */
.about-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:64px; align-items:center; }
.about-stats{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:34px; }
.stat b{ display:block; font-family:'Sora',sans-serif; font-size:2rem; font-weight:800; color:var(--dark); }
html[data-theme="dark"] .stat b{ color:var(--light); }
.stat span{ font-size:13px; color:var(--text-soft); }
.about-visual{ position:relative; }
.arc-frame{ width:100%; }

/* Confían en nosotros */
.logo-strip{
  display:grid; grid-template-columns:repeat(5,1fr); gap:1px; background:var(--border);
  border:1px solid var(--border); border-radius:var(--radius-m); overflow:hidden;
}
.logo-cell{
  background:var(--surface); padding:30px 16px; display:flex; align-items:center; justify-content:center;
  font-family:'Sora',sans-serif; font-weight:700; font-size:15px; color:var(--text-soft);
  text-align:center; letter-spacing:-.01em; transition:color .2s, background .2s;
}
.logo-cell:hover{ color:var(--dark); background:var(--bg-alt); }
html[data-theme="dark"] .logo-cell:hover{ color:var(--light); }
.trust-note{ text-align:center; margin-top:22px; font-size:13px; color:var(--gray); }

/* Cómo funciona — bento */
.bento{ display:grid; grid-template-columns:repeat(6,1fr); gap:20px; }
.bento .b1{ grid-column:span 4; }
.bento .b2{ grid-column:span 2; }
.bento .b3{ grid-column:span 2; }
.bento .b4{ grid-column:span 4; }
.feature-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m);
  padding:26px; display:flex; flex-direction:column; gap:14px; transition:transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.feature-card h3{ font-size:1.15rem; margin-bottom:2px; }
.feature-card p{ font-size:14px; margin-bottom:0; }
.tag-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; }
.tag{ font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:999px; font-family:'JetBrains Mono',monospace; }
.tag-teorico{ background:color-mix(in srgb, var(--mid) 16%, transparent); color:var(--dark); }
.tag-practico{ background:color-mix(in srgb, var(--dark) 12%, transparent); color:var(--dark); }
html[data-theme="dark"] .tag-teorico, html[data-theme="dark"] .tag-practico{ color:var(--light); }

.mini-screen{ background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-s); padding:14px; }
.calendar-mini{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.calendar-mini span{ aspect-ratio:1; border-radius:5px; background:var(--surface); border:1px solid var(--border); }
.calendar-mini span.on{ background:var(--mid); border-color:var(--mid); }
.calendar-mini span.on2{ background:var(--light); border-color:var(--light); }

.vehicle-row{ display:flex; justify-content:space-between; align-items:center; padding:9px 0; border-bottom:1px dashed var(--border); font-size:13px; }
.vehicle-row:last-child{ border:none; }
.plate{ font-family:'JetBrains Mono',monospace; font-weight:700; background:var(--surface); border:1px solid var(--border); padding:3px 9px; border-radius:6px; letter-spacing:.03em; }

/* Planes / seguridad ribbon */
.security-strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.security-item{ display:flex; gap:14px; align-items:flex-start; }
.security-item .ico{ width:42px; height:42px; border-radius:12px; background:color-mix(in srgb, var(--mid) 15%, transparent); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.security-item svg{ width:20px; height:20px; color:var(--dark); }
html[data-theme="dark"] .security-item svg{ color:var(--light); }
.security-item h4{ font-size:15px; margin-bottom:4px; }
.security-item p{ font-size:13px; margin:0; }

/* CTA final */
.cta-final{
  background:linear-gradient(135deg, var(--dark), #04372a);
  border-radius:var(--radius-l); padding:64px; text-align:center; color:#fff; position:relative; overflow:hidden;
}
.cta-final h2{ color:#fff; }
.cta-final p{ color:#cfe9df; max-width:52ch; margin:0 auto 28px; }
.cta-final .btn-primary{ background:#fff; color:var(--dark); }
.cta-final .btn-primary:hover{ background:#eafff4; }

/* ---------------- Precios ---------------- */
.pricing-layout{ display:grid; grid-template-columns:1.3fr .9fr; gap:40px; align-items:start; }
.pricing-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-l);
  box-shadow:var(--shadow); padding:34px 36px;
}
.pricing-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:20px; flex-wrap:wrap; margin-bottom:26px; }
.plan-badge{
  display:inline-block; font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:700;
  letter-spacing:.04em; text-transform:uppercase; color:var(--dark); background:color-mix(in srgb, var(--mid) 16%, transparent);
  padding:5px 12px; border-radius:999px; margin-bottom:12px;
}
html[data-theme="dark"] .plan-badge{ color:var(--light); }
.price-display{ display:flex; align-items:baseline; gap:6px; }
.price-num{ font-family:'Sora',sans-serif; font-weight:800; font-size:2.6rem; color:var(--text); line-height:1; }
.price-period{ font-size:14px; color:var(--gray); font-weight:600; }
.price-sub{ font-size:13px; margin:6px 0 0; color:var(--text-soft); }
.price-alumnos{ text-align:right; font-size:13px; color:var(--text-soft); display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.price-alumnos .mono{ font-size:1.6rem; font-weight:700; color:var(--dark); }
html[data-theme="dark"] .price-alumnos .mono{ color:var(--light); }

.slider-wrap{ margin-bottom:28px; }
input[type="range"]{
  -webkit-appearance:none; appearance:none; width:100%; height:8px; border-radius:999px;
  background:linear-gradient(to right, var(--mid) 0%, var(--mid) var(--fill,25%), var(--border) var(--fill,25%), var(--border) 100%);
  outline:none; margin:10px 0 8px;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:24px; height:24px; border-radius:50%;
  background:var(--surface); border:4px solid var(--dark); cursor:pointer; box-shadow:0 4px 10px rgba(0,0,0,.2);
}
input[type="range"]::-moz-range-thumb{
  width:24px; height:24px; border-radius:50%; background:var(--surface); border:4px solid var(--dark); cursor:pointer;
}
.slider-scale{ display:flex; justify-content:space-between; font-size:11px; color:var(--gray); font-family:'JetBrains Mono',monospace; }

.price-included{ list-style:none; margin:0 0 28px; padding:0; display:flex; flex-direction:column; gap:11px; }
.price-included li{ display:flex; align-items:center; gap:10px; font-size:14px; color:var(--text-soft); }
.price-included svg{ width:16px; height:16px; color:var(--mid); flex-shrink:0; }
.price-included b{ color:var(--text); }

.pricing-note{ display:flex; flex-direction:column; gap:24px; padding-top:6px; }
.pricing-note h4{ font-size:15px; margin-bottom:6px; }
.pricing-note p{ font-size:13.5px; margin:0; }

/* ---------------- Formulario de solicitud ---------------- */
.request-layout{ display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:start; }
.request-form{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-l);
  box-shadow:var(--shadow); padding:32px;
}
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-note{ font-size:12px; color:var(--gray); text-align:center; margin:14px 0 0; }

@media (max-width:980px){
  .pricing-layout{ grid-template-columns:1fr; }
  .request-layout{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .field-row{ grid-template-columns:1fr; }
  .pricing-top{ flex-direction:column; }
  .price-alumnos{ align-items:flex-start; text-align:left; }
}

/* ---------------- Footer ---------------- */
footer{ border-top:1px solid var(--border); padding:64px 0 32px; background:var(--bg-alt); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:48px; }
.footer-brand p{ font-size:13.5px; max-width:30ch; }
.footer-col h5{ font-size:12.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--gray); margin-bottom:16px; font-family:'JetBrains Mono',monospace; }
.footer-col a{ display:block; font-size:14px; color:var(--text-soft); padding:6px 0; transition:color .2s; }
.footer-col a:hover{ color:var(--dark); }
html[data-theme="dark"] .footer-col a:hover{ color:var(--light); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:26px; border-top:1px solid var(--border); font-size:12.5px; color:var(--gray); flex-wrap:wrap; gap:12px; }
.footer-legal{ display:flex; gap:20px; }

/* ---------------- Responsive ---------------- */
@media (max-width:980px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero{ padding-top:52px; }
  .about-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .security-strip{ grid-template-columns:1fr 1fr; }
  .bento{ grid-template-columns:repeat(2,1fr); }
  .bento .b1,.bento .b2,.bento .b3,.bento .b4{ grid-column:span 1; }
  .logo-strip{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:900px){
  .main-nav{ display:none; }
  .burger{ display:flex; }
  section{ padding:72px 0; }
  .cta-final{ padding:44px 24px; }
  .brand .logo-img{ height:30px; }
  .mock-body{ grid-template-columns:1fr; }
}
@media (max-width:520px){
  .footer-grid{ grid-template-columns:1fr 1fr; gap:28px; }
  .logo-strip{ grid-template-columns:repeat(2,1fr); }
  .wrap{ padding:0 20px; }
}

/* mobile nav drawer */
.mobile-nav{
  position:fixed; inset:var(--nav-h) 0 0 0; background:var(--bg); z-index:99;
  display:none; flex-direction:column; padding:28px; gap:6px; overflow-y:auto;
}
.mobile-nav.open{ display:flex; }
.mobile-nav a{ font-size:19px; font-weight:700; padding:14px 4px; border-bottom:1px solid var(--border); font-family:'Sora',sans-serif; }
.mobile-nav .btn{ margin-top:18px; }

/* ---------------- Estilos de autenticación (usados por el subdominio login.autopanel.es) ---------------- */
.auth-page{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:32px 20px; position:relative; overflow:hidden; }
.auth-page::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(700px 500px at 15% 10%, color-mix(in srgb, var(--light) 22%, transparent), transparent 60%),
             radial-gradient(700px 500px at 90% 90%, color-mix(in srgb, var(--mid) 18%, transparent), transparent 60%);
  z-index:0;
}
.auth-card{
  position:relative; z-index:1; width:100%; max-width:420px; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--radius-l); box-shadow:var(--shadow); padding:40px 36px;
}
.auth-card .brand{ justify-content:center; margin-bottom:28px; }
.auth-card .brand img{ height:38px; }
.auth-head{ text-align:center; margin-bottom:28px; }
.auth-head h1{ font-size:1.5rem; margin-bottom:6px; }
.auth-head p{ font-size:13.5px; margin:0; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; font-weight:600; margin-bottom:7px; color:var(--text-soft); }
.field input, .field textarea, .field select{
  width:100%; padding:12px 14px; border-radius:var(--radius-s); border:1px solid var(--border);
  background:var(--bg); color:var(--text); font-size:14.5px; font-family:inherit; transition:border-color .2s, box-shadow .2s;
}
.field textarea{ resize:vertical; min-height:44px; }
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--mid); box-shadow:0 0 0 3px color-mix(in srgb, var(--mid) 20%, transparent); }
.field-pass{ position:relative; }
.toggle-pass{ position:absolute; right:12px; top:38px; background:none; border:none; color:var(--gray); padding:4px; }
.row-between{ display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; font-size:13px; }
.remember{ display:flex; align-items:center; gap:8px; color:var(--text-soft); }
.remember input{ accent-color:var(--mid); width:15px; height:15px; }
.link-mid{ color:var(--dark); font-weight:600; }
html[data-theme="dark"] .link-mid{ color:var(--light); }
.divider{ text-align:center; font-size:12px; color:var(--gray); margin:22px 0; position:relative; }
.divider::before,.divider::after{ content:""; position:absolute; top:50%; width:38%; height:1px; background:var(--border); }
.divider::before{ left:0; } .divider::after{ right:0; }
.otp-row{ display:flex; gap:10px; justify-content:center; margin:26px 0; }
.otp-row input{
  width:46px; height:54px; text-align:center; font-size:20px; font-weight:700; font-family:'JetBrains Mono',monospace;
  border-radius:var(--radius-s); border:1px solid var(--border); background:var(--bg); color:var(--text);
}
.otp-row input:focus{ outline:none; border-color:var(--mid); box-shadow:0 0 0 3px color-mix(in srgb, var(--mid) 20%, transparent); }
.auth-step{ display:none; }
.auth-step.active{ display:block; }
.auth-foot{ text-align:center; font-size:13px; color:var(--text-soft); margin-top:20px; }
.trust-line{ display:flex; align-items:center; justify-content:center; gap:8px; font-size:12px; color:var(--gray); margin-top:26px; }
.trust-line svg{ width:14px; height:14px; color:var(--mid); }
.role-note{ background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-s); padding:12px 14px; font-size:12.5px; color:var(--text-soft); margin-bottom:20px; }
.back-home{ position:fixed; top:22px; left:22px; z-index:2; }
