/* ============================================================
   AORS — APEX OFF-ROAD SERIES
   Shared design tokens + header/footer + base components
   (extraído de index.html para reutilizar en tienda / login / cuenta)
   ============================================================ */
:root{
  --bg:#0a0a0d;
  --bg-soft:#0e0e12;
  --panel:#16161b;
  --panel-2:#1b1b21;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.18);
  --white:#f6f6f7;
  --gray:#a3a3ad;
  --gray-dim:#6b6b76;
  --orange:#ef430d;
  --orange-2:#ff7a3d;
  --orange-dim: rgba(239,67,13,.14);
  --purple:#8b5cf6;
  --purple-2:#b8a4fa;
  --purple-dim: rgba(139,92,246,.14);
  --slate:#5b6472;
  --green:#31c48d;
  --red:#ef4444;
  --font-display: 'Orbitron', sans-serif;
  --font-tech: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(.19,1,.22,1);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--white);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; cursor:pointer; }
ul{ list-style:none; }
input,select,textarea{ font:inherit; color:inherit; }
::selection{ background:var(--orange); color:#000; }

::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:var(--bg); }
::-webkit-scrollbar-thumb{ background:#2a2a31; border-radius:0; }
::-webkit-scrollbar-thumb:hover{ background:var(--orange); }

.wrap{ max-width:1240px; margin:0 auto; padding:0 24px; }

.eyebrow{
  font-family:var(--font-tech); font-weight:700; letter-spacing:.32em; font-size:12.5px;
  text-transform:uppercase; color:var(--orange); display:inline-flex; align-items:center; gap:10px;
}
.eyebrow.purple{ color:var(--purple-2); }
.eyebrow::before{ content:''; width:18px; height:2px; background:currentColor; display:inline-block; }

h1,h2,h3{ font-family:var(--font-display); font-weight:800; letter-spacing:.01em; line-height:1.05; }
.h2{ font-size:clamp(28px,4vw,44px); text-transform:uppercase; margin-top:10px; }
.h2 em{ font-style:normal; color:var(--orange); }
.section-sub{ font-family:var(--font-tech); font-size:17px; color:var(--gray); max-width:560px; margin-top:12px; font-weight:500; line-height:1.5; }

.clip-apex{
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.clip-apex-sm{
  clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:16px 30px;
  font-family:var(--font-display); font-weight:700; font-size:13.5px; letter-spacing:.1em; text-transform:uppercase;
  border:1px solid transparent; transition:transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
  white-space:nowrap; background:none;
}
.btn-primary{ background:var(--orange); color:#0a0a0d; box-shadow:0 0 0 0 rgba(239,67,13,.5); }
.btn-primary:hover{ background:var(--orange-2); transform:translateY(-3px); box-shadow:0 14px 30px -10px rgba(239,67,13,.55); }
.btn-primary:disabled{ background:var(--panel-2); color:var(--gray-dim); box-shadow:none; transform:none; cursor:not-allowed; }
.btn-ghost{ border-color:var(--line-strong); color:var(--white); }
.btn-ghost:hover{ border-color:var(--purple); color:var(--purple-2); background:var(--purple-dim); transform:translateY(-3px); }
.btn-sm{ padding:10px 18px; font-size:11.5px; }
.btn-block{ width:100%; }
.btn svg{ width:16px; height:16px; transition:transform .3s; }
.btn:hover svg.arrow{ transform:translateX(4px); }

/* ============================================================
   NAVBAR (compartido)
   ============================================================ */
header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:22px 0; transition:padding .4s var(--ease), background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom:1px solid transparent;
  background:rgba(10,10,13,.82); backdrop-filter:blur(14px); border-color:var(--line);
}
header.scrolled{ padding:14px 0; }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:38px; width:auto; }
.brand-mark{
  width:38px; height:38px; background:linear-gradient(135deg,var(--orange),var(--purple)); flex-shrink:0;
  clip-path:polygon(0 8px,8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:900; font-size:14px; color:#0a0a0d;
}
.brand-text{ font-family:var(--font-display); font-weight:800; font-size:15px; letter-spacing:.06em; line-height:1.15; }
.brand-text span{ display:block; font-family:var(--font-tech); font-size:10px; letter-spacing:.28em; color:var(--gray-dim); font-weight:700; }

.nav-links{ display:flex; align-items:center; gap:2px; }
.nav-links a{
  font-family:var(--font-tech); font-weight:600; font-size:14px; letter-spacing:.03em; color:var(--gray);
  padding:9px 16px; position:relative; transition:color .3s;
}
.nav-links a::after{
  content:''; position:absolute; left:16px; right:16px; bottom:4px; height:2px; background:var(--orange);
  transform:scaleX(0); transform-origin:left; transition:transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color:var(--white); }
.nav-links a.active::after, .nav-links a:hover::after{ transform:scaleX(1); }

.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-cta .btn{ padding:11px 20px; font-size:12px; }
.burger{ display:none; flex-direction:column; gap:5px; width:30px; background:none; border:0; padding:6px; }
.burger span{ width:100%; height:2px; background:var(--white); transition:all .3s; }
@media (max-width:960px){
  .nav-links{ display:none; }
  .nav-cta .btn-ghost{ display:none; }
  .burger{ display:flex; }
}

/* cart + account pill in navbar */
.nav-icon-btn{
  position:relative; width:42px; height:42px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line-strong); background:var(--panel); transition:border-color .3s, color .3s;
}
.nav-icon-btn:hover{ border-color:var(--orange); color:var(--orange-2); }
.nav-icon-btn svg{ width:18px; height:18px; }
.cart-badge{
  position:absolute; top:-7px; right:-7px; background:var(--orange); color:#0a0a0d; font-family:var(--font-tech); font-weight:800;
  font-size:11px; min-width:19px; height:19px; border-radius:50%; display:flex; align-items:center; justify-content:center; padding:0 3px;
}
.account-pill{
  display:flex; align-items:center; gap:9px; border:1px solid var(--line-strong); background:var(--panel); padding:8px 16px 8px 8px;
  font-family:var(--font-tech); font-size:13px; font-weight:600; color:var(--white); transition:border-color .3s;
}
.account-pill:hover{ border-color:var(--purple); }
.account-pill .avatar{
  width:26px; height:26px; border-radius:50%; background:linear-gradient(135deg,var(--orange),var(--purple));
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:11px; font-weight:800; color:#0a0a0d;
}

.mobile-menu{
  position:fixed; inset:0; background:rgba(9,9,11,.98); backdrop-filter:blur(10px); z-index:1100;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  opacity:0; visibility:hidden; transition:opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.open{ opacity:1; visibility:visible; }
.mobile-menu a{ font-family:var(--font-display); font-size:22px; text-transform:uppercase; padding:12px; color:var(--gray); }
.mobile-menu a:hover{ color:var(--white); }
.mobile-close{ position:absolute; top:24px; right:24px; font-size:32px; background:none; border:0; color:var(--white); }

main{ padding-top:104px; min-height:70vh; }

/* ============================================================
   FOOTER (compartido)
   ============================================================ */
footer{ background:var(--bg-soft); border-top:1px solid var(--line); padding-top:64px; margin-top:110px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px; padding-bottom:50px; }
@media (max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand p{ font-family:var(--font-tech); color:var(--gray-dim); font-size:14.5px; max-width:280px; line-height:1.6; margin-top:14px; }
.footer-col h5{ font-family:var(--font-tech); font-weight:700; letter-spacing:.16em; font-size:12.5px; color:var(--gray-dim); text-transform:uppercase; margin-bottom:18px; }
.footer-col a, .footer-col p{ display:block; font-family:var(--font-tech); font-size:15px; color:var(--gray); margin-bottom:10px; transition:color .3s; }
.footer-col a:hover{ color:var(--orange-2); }
.footer-bottom{
  border-top:1px solid var(--line); padding:22px 0; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-family:var(--font-tech); font-size:13px; color:var(--gray-dim);
}

/* ============================================================
   PAGE HEADER (banda de título de sección, tipo tienda/login)
   ============================================================ */
.page-head{ border-bottom:1px solid var(--line); padding:44px 0 40px; background:var(--bg-soft); }
.breadcrumb{ font-family:var(--font-tech); font-size:13px; color:var(--gray-dim); margin-bottom:14px; display:flex; gap:8px; align-items:center; }
.breadcrumb a{ color:var(--gray); transition:color .2s; }
.breadcrumb a:hover{ color:var(--orange-2); }

/* ============================================================
   DEMO BANNER (modo prueba, sin backend real)
   ============================================================ */
.demo-banner{
  background:var(--purple-dim); border-bottom:1px solid rgba(139,92,246,.35); color:var(--purple-2);
  font-family:var(--font-tech); font-weight:600; font-size:13.5px; text-align:center; padding:10px 16px;
  position:relative; z-index:1001;
}
.demo-banner strong{ color:var(--white); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap{ position:fixed; bottom:26px; right:26px; z-index:2000; display:flex; flex-direction:column; gap:10px; }
.toast{
  background:var(--panel); border:1px solid var(--line-strong); border-left:3px solid var(--green); padding:16px 20px;
  font-family:var(--font-tech); font-size:14px; color:var(--white); min-width:260px; box-shadow:0 12px 30px -10px rgba(0,0,0,.6);
  transform:translateX(20px); opacity:0; transition:all .4s var(--ease);
}
.toast.show{ transform:translateX(0); opacity:1; }
.toast.error{ border-left-color:var(--red); }

/* ============================================================
   CONSENT / CHECKBOX ROWS (términos, privacidad, deslinde)
   ============================================================ */
.consent-row{ display:flex; align-items:flex-start; gap:10px; margin-bottom:18px; }
.consent-row input{ margin-top:4px; accent-color:var(--orange); flex-shrink:0; }
.consent-row label{ font-family:var(--font-tech); font-size:13px; color:var(--gray); line-height:1.5; }
.consent-row a{ color:var(--orange-2); text-decoration:underline; }
.consent-row.legal{ background:var(--bg-soft); border:1px solid var(--line-strong); padding:14px 16px; }

@media (max-width:768px){ main{ padding-top:96px; } }
