/* Turbo Luso — shared design tokens, resets and components used across
   every public page (homepage, cart, checkout, vehicle and product pages).
   Page-specific layout (hero sections, product cards, cart rows, etc.)
   stays in each page's own <style> block. */

:root {
  --bg: #06140e;
  --bg2: #0a1f16;
  --panel: rgba(14, 42, 29, .88);
  --panel2: #103323;
  --panel3: rgba(255,255,255,.045);
  --line: rgba(214, 255, 198, .14);
  --line2: rgba(214, 255, 198, .28);
  --text: #f4f7f5;
  --muted: #a9bab0;
  --accent: #c9ff72;
  --accent2: #8ee7aa;
  --danger: #ff9b91;
  --warning: #ffd888;
  --ok: #9ff0b9;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 4%, rgba(82, 176, 118, .21), transparent 31rem),
    radial-gradient(circle at 92% 12%, rgba(201, 255, 114, .11), transparent 30rem),
    linear-gradient(145deg, var(--bg), #071a12 50%, #040f0a);
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 28px 0 68px; }

/* Header */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 44px; }
.topbar-clean { justify-content: flex-end; margin-bottom: 12px; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.social-link { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: #dce8e0; background: rgba(255,255,255,.035); text-decoration: none; font-size: .86rem; font-weight: 900; transition: border-color .18s, transform .18s, background .18s; }
.social-link:hover { transform: translateY(-1px); border-color: var(--line2); background: rgba(255,255,255,.06); }
.social-link svg { width: 18px; height: 18px; fill: currentColor; color: var(--accent); }
.btn.btn-contact { min-height: 42px; border: 1px solid var(--line2); color: #092016; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.btn-cart { position: relative; }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; border-radius: 999px; background: var(--danger); color: #2b0907; font-size: .68rem; font-weight: 950; display: grid; place-items: center; padding: 0 4px; }

/* Hero logo block (index, vehicle, product, cart, checkout) */
.hero-clean { display: block; margin: 18px auto 38px; text-align: center; }
.hero-logo-wrap { width: min(100%, 760px); margin: 0 auto; }
.hero-logo-img { display: block; width: clamp(290px, 15vw, 720px); max-width: 100%; height: auto; margin: 0 auto 18px; }
.hero-clean h1, .hero-clean p { max-width: none; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; letter-spacing: normal; line-height: 1.4; }

/* Breadcrumb (every page except the homepage) */
.breadcrumb { color: var(--muted); font-size: .86rem; margin-bottom: 18px; }
.breadcrumb a { color: #dce8e0; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Card panel base (index tabs-panel, cart/checkout panels each add their
   own extras like backdrop-filter or padding on top of this) */
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }

/* Buttons */
.btn { min-height: 50px; padding: 0 18px; border: 0; border-radius: 14px; cursor: pointer; font-weight: 900; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: wait; opacity: .62; transform: none; }
.btn-lg { min-height: 56px; }
.btn-block { width: 100%; }
.btn-primary { color: #092016; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 12px 30px rgba(140,232,170,.15); }
.btn-soft { color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,.045); }
.btn-danger { color: #2b0907; background: var(--danger); }

/* Forms */
.form-card { padding: clamp(18px,3vw,26px); border: 1px solid var(--line); border-radius: 22px; background: rgba(4,18,12,.46); }
.form-card h3 { margin: 0 0 7px; font-size: clamp(1.25rem,2vw,1.7rem); letter-spacing: -.04em; }
.form-card > p { margin: 0 0 20px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
label { display: block; margin-bottom: 7px; color: #dce7df; font-size: .82rem; font-weight: 760; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; outline: none; color: var(--text); background: rgba(4,18,12,.64); }
input, select { min-height: 48px; padding: 0 13px; }
textarea { min-height: 110px; padding: 11px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201,255,114,.08); }
input::placeholder, textarea::placeholder { color: #7e9185; }
.fineprint { margin: 13px 0 0; color: #87988e; font-size: .76rem; }
.optional { color: #7e9185; font-weight: 700; }

/* Status messages / spinner (form submission feedback) */
.status { margin-top: 16px; padding: 13px 15px; border-radius: 14px; display: none; gap: 10px; align-items: flex-start; font-size: .9rem; }
.status.show { display: flex; }
.status.loading { border: 1px solid rgba(201,255,114,.25); background: rgba(201,255,114,.07); color: #eaffc7; }
.status.error { border: 1px solid rgba(255,155,145,.35); background: rgba(255,155,145,.08); color: #ffd0cb; }
.status.ok { border: 1px solid rgba(159,240,185,.3); background: rgba(159,240,185,.07); color: #d9ffe5; }
.spinner { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--accent); animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact modal (shared by every page that has a Contacto button) */
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: none; place-items: center; padding: 18px; background: rgba(0,0,0,.62); backdrop-filter: blur(10px); }
.modal-backdrop.show { display: grid; }
.modal-card { width: min(100%, 680px); max-height: min(92vh, 780px); overflow: auto; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(14,42,29,.98), rgba(4,18,12,.98)); box-shadow: 0 24px 90px rgba(0,0,0,.55); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.modal-head h2 { margin: 0 0 6px; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.05em; }
.modal-head p { margin: 0; color: var(--muted); }
.modal-close { flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--text); background: rgba(255,255,255,.04); font-size: 1.35rem; line-height: 1; }
.modal-close:hover { border-color: var(--line2); background: rgba(255,255,255,.08); }
.modal-card .form-card { margin: 20px 24px 24px; }

/* Footer (identical on every page) */
footer { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #7f9287; font-size: .82rem; }
.company-details { width: 100%; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); color: #9caf9f; font-size: .78rem; line-height: 1.65; }
.company-details strong { color: #dce8e0; font-weight: 900; }
.company-details a { color: #b8e6c7; text-decoration: none; }
.company-details a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a, .link-btn { color: #9caf9f; text-decoration: none; font-size: .82rem; }
.footer-links a:hover, .link-btn:hover { color: #dce8e0; text-decoration: underline; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }

/* Cookie consent banner (assets/js/consent.js) */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 560px; margin: 0 auto; padding: 18px 20px; border: 1px solid var(--line2); border-radius: var(--radius-sm); background: linear-gradient(145deg, rgba(14,42,29,.98), rgba(4,18,12,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.cookie-banner p { margin: 0 0 14px; color: #dce8e0; font-size: .86rem; line-height: 1.55; }
.cookie-banner a { color: var(--accent); text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 42px; padding: 0 16px; }

/* Simple content page (legal pages, 404) */
.content-page h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.05em; }
.content-page .updated { color: var(--muted); font-size: .84rem; margin: 0 0 24px; }
.content-page section { margin-bottom: 26px; }
.content-page h2 { font-size: 1.2rem; margin: 0 0 10px; letter-spacing: -.03em; }
.content-page h3 { font-size: 1rem; margin: 18px 0 8px; letter-spacing: -.02em; color: var(--muted); }
.content-page p, .content-page li { color: #dce8e0; line-height: 1.7; }
.content-page ul { padding-left: 20px; margin: 10px 0; }
.content-page li { margin: 6px 0; }

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 20px), var(--max)); padding-top: 18px; }
  .topbar { align-items: flex-start; margin-bottom: 30px; }
  .topbar-clean { justify-content: center; margin-bottom: 12px; }
  .top-actions { gap: 8px; flex-wrap: wrap; }
  .social-link span { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}
