/* ============================================================
   LOS CABOS MOTORS — Sistema de diseño compartido
   Identidad: rojo señal sobre negro carbón, acento arena de Baja.
   ============================================================ */

:root {
  /* Color */
  --ink:        #0a0908;   /* negro carbón, fondo base */
  --ink-2:      #121110;   /* paneles */
  --ink-3:      #1b1917;   /* tarjetas */
  --line:       rgba(255,255,255,.08);
  --line-soft:  rgba(255,255,255,.05);
  --red:        #e11d2a;   /* rojo del logo */
  --red-deep:   #b3141f;
  --sand:       #d8b878;   /* arena / dorado Baja */
  --sand-soft:  #e8d3a8;
  --cream:      #f3ede1;   /* "MOTORS" del logo */
  --fog:        #b6b0a8;   /* texto secundario */
  --fog-dim:    #7d776f;
  --wa:         #25d366;   /* WhatsApp */
  --wa-deep:    #1ba851;

  /* Tipografía */
  --display: 'Archivo', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;

  /* Radios / sombras */
  --r:   14px;
  --r-s: 9px;
  --shadow: 0 18px 40px -20px rgba(0,0,0,.8);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--ink);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

/* subtle grain + arena glow on the body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(800px 500px at 85% -10%, rgba(225,29,42,.10), transparent 60%),
    radial-gradient(700px 600px at -10% 110%, rgba(216,184,120,.06), transparent 55%);
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--red); color: #fff; }

/* ----------------------------------------------------------
   TIPOGRAFÍA
---------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: .95;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sand);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
  display: inline-block;
}

/* ----------------------------------------------------------
   NAV (compartido, fijo, con menú móvil)
---------------------------------------------------------- */
.lcm-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(10,9,8,.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.lcm-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 1.05rem;
}
.lcm-brand img { width: 34px; height: 34px; border-radius: 7px; }
.lcm-brand b { color: var(--red); }
.lcm-brand span { color: var(--cream); }

.lcm-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lcm-links a {
  position: relative;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--fog);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.lcm-links a:hover { color: var(--cream); background: rgba(255,255,255,.05); }
.lcm-links a.active { color: var(--cream); }
.lcm-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--red); border-radius: 2px;
}
.lcm-links a.wa {
  color: #061b0f;
  background: var(--wa);
  font-weight: 700;
}
.lcm-links a.wa:hover { background: var(--wa-deep); color: #fff; }

.lcm-burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  width: 42px; height: 42px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .lcm-burger { display: inline-flex; align-items: center; justify-content: center; }
  .lcm-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10,9,8,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
  }
  .lcm-links.open { transform: scaleY(1); opacity: 1; }
  .lcm-links a { padding: 14px; font-size: 1rem; }
  .lcm-links a.active::after { display: none; }
  .lcm-links a.wa { margin-top: 6px; text-align: center; }
}

/* ----------------------------------------------------------
   CONTENEDOR / SECCIONES
---------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); position: relative; z-index: 1; }
.section { padding: clamp(48px, 8vw, 90px) 0; position: relative; z-index: 1; }

.section-head { margin-bottom: 34px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  margin: 8px 0 0;
  letter-spacing: -.02em;
}
.section-head p { color: var(--fog); margin: 10px 0 0; max-width: 56ch; }

/* ----------------------------------------------------------
   BOTONES
---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 26px -12px var(--red); }
.btn-red:hover { background: var(--red-deep); }
.btn-wa { background: var(--wa); color: #061b0f; }
.btn-wa:hover { background: var(--wa-deep); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--sand); color: var(--sand); }

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */
.lcm-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 44px 0 32px;
}
.lcm-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.lcm-footer .brand-line {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
}
.lcm-footer .brand-line img { width: 40px; height: 40px; border-radius: 8px; }
.lcm-footer .brand-line b { color: var(--red); }
.lcm-footer .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.lcm-footer .foot-links a { color: var(--fog); font-size: .9rem; transition: color .2s; }
.lcm-footer .foot-links a:hover { color: var(--cream); }
.lcm-footer .copy { width: 100%; color: var(--fog-dim); font-size: .82rem; border-top: 1px solid var(--line-soft); padding-top: 18px; margin-top: 6px; }

/* ----------------------------------------------------------
   Floating WhatsApp
---------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 1200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.7rem;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::after {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa);
  animation: wa-pulse 2.2s infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ----------------------------------------------------------
   Reveal on scroll
---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
