/* ==========================================================================
   PACÍFICO MOTORS — styles.css
   Sistema de diseño: variables, reset, utilidades, componentes, responsive
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --navy: #0b1c2c;
  --navy-2: #132a3d;
  --orange: #e8722b;
  --orange-h: #d45f1a;
  --silver: #9aa5b1;
  --text: #3a4654;
  --bg: #f6f8fa;
  --white: #ffffff;
  --line: rgba(11, 28, 44, 0.08);
  --radius: 14px;
  --shadow: 0 8px 30px rgba(11, 28, 44, 0.08);
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

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

/* ---------- Layout utilities ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.35rem;
}

section { padding: 5rem 0; }

.section-alt { background: var(--bg); }

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: 0.6rem; }
.section-head p { color: var(--silver); font-size: 1.02rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: all .3s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(232, 114, 43, 0.35);
}
.btn-primary:hover { background: var(--orange-h); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-2); }

.btn-line {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-line:hover { border-color: var(--orange); color: var(--orange); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

.btn-block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease);
}
.topbar.is-scrolled {
  background: rgba(11, 28, 44, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.35rem;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.logo span { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  transition: color .25s var(--ease);
  position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--orange);
}

.nav-cta { display: flex; align-items: center; gap: 1rem; }

/* ---------- Side tab (disparador del menú) ---------- */
/* Reemplaza el hamburger tradicional: una pestaña flotante,
   transparente/glass, fija a la izquierda y centrada verticalmente.
   Se abre con click/tap o "jalando" hacia la derecha (mouse o touch). */
.side-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 140;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 0.65rem 1.1rem 0.55rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-left: none;
  border-radius: 0 16px 16px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
  cursor: grab;
  touch-action: pan-y;
  transition: background .25s var(--ease), padding .25s var(--ease), transform .25s var(--ease);
}
.side-tab:hover, .side-tab:focus-visible { background: rgba(255,255,255,0.14); padding-right: 0.95rem; }
.side-tab:active { cursor: grabbing; }
.side-tab.dragging { transition: none; }
.side-tab__bar {
  width: 3px;
  height: 22px;
  border-radius: 3px;
  background: var(--orange);
}
.side-tab i {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  transition: transform .3s var(--ease);
}
.side-tab[aria-expanded="true"] i { transform: rotate(180deg); }
.side-tab-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(255,255,255,0.7);
}

/* ---------- Drawer (glass, se abre desde la izquierda) ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 15, 24, 0.35);
  backdrop-filter: blur(2px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; left: 0;
  bottom: 0;
  width: min(82vw, 340px);
  background: rgba(11, 28, 44, 0.62);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-right: 1px solid rgba(255,255,255,0.12);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform .4s var(--ease);
  padding: 6.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.drawer.dragging { transition: none; }
.drawer.open { transform: translateX(0); }

.drawer a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  opacity: 0.85;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.drawer a:hover { opacity: 1; transform: translateX(4px); }

.drawer-close {
  position: absolute;
  top: 1.8rem; right: 1.8rem;
  color: var(--white);
  font-size: 1.4rem;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #1a3b52 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img, .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.92;
  transform: scale(1.06);
  will-change: transform;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(11,28,44,0.95) 0%,
    rgba(11,28,44,0.86) 32%,
    rgba(11,28,44,0.45) 62%,
    rgba(11,28,44,0.08) 92%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 76px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 114, 43, 0.15);
  border: 1px solid rgba(232, 114, 43, 0.4);
  color: var(--orange);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-metrics {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.metric strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  color: var(--white);
}
.metric span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Hero interior (subpáginas) ---------- */
.hero-inner-page {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, #1a3b52 100%);
}
.hero-inner-page .hero-media img { opacity: 0.4; }
.hero-inner-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,28,44,0.35) 0%, rgba(11,28,44,0.92) 100%);
  z-index: 1;
}
.hero-inner-page .container {
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
  padding-top: 130px;
}
.hero-inner-page h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}
.hero-inner-page p {
  color: rgba(255,255,255,0.72);
  margin-top: 0.5rem;
  font-size: 1.02rem;
}

/* ---------- Placeholder de imagen (sin archivo real) ---------- */
.img-ph {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 50%, var(--orange) 150%);
}
.img-ph.light {
  background: linear-gradient(135deg, #e2e8ee 0%, #cfd8e0 100%);
  color: var(--text);
}

/* ---------- Beneficios ---------- */
.benefit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: all .3s var(--ease);
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.benefit-card .icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(232, 114, 43, 0.1);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}
.benefit-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.benefit-card p { font-size: 0.92rem; color: var(--silver); }

/* ---------- Cards de vehículos ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-tag {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  background: var(--orange);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  z-index: 2;
}

.card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }

.card-meta {
  display: flex;
  gap: 0.9rem;
  font-size: 0.8rem;
  color: var(--silver);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.card-body h3 { font-size: 1.1rem; }

.card-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--orange);
  font-size: 1.2rem;
}

.card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.6rem;
}
.card-actions .btn { flex: 1; }

.section-foot {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- CTA final ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255,255,255,0.72); margin-bottom: 2rem; max-width: 500px; margin-inline: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--white); margin-bottom: 0.9rem; }
.footer-logo span { color: var(--orange); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a, .footer-col li { font-size: 0.9rem; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--orange); }
.footer-col li { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-col li i { color: var(--orange); margin-top: 0.2rem; }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
}
.footer-social { display: flex; gap: 0.9rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease);
}
.footer-social a:hover { background: var(--orange); color: var(--white); }

/* ---------- Toolbar (inventario) ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}
.search-box i {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--silver);
}
.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color .25s var(--ease);
}
.search-box input:focus { border-color: var(--orange); outline: none; }

.sort-select {
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--white);
}

.results-count { font-size: 0.9rem; color: var(--silver); white-space: nowrap; }
.results-count strong { color: var(--navy); }

.chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.chip {
  padding: 0.55rem 1.15rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.active { background: var(--orange); border-color: var(--orange); color: var(--white); }

.empty-state {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--silver);
}
.empty-state.show { display: block; }
.empty-state i { font-size: 2.4rem; color: var(--line); margin-bottom: 1rem; display: block; }
.empty-state h3 { color: var(--navy); margin-bottom: 0.4rem; }

/* ---------- Nosotros ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.split-text p { margin-bottom: 1.1rem; color: var(--text); }
.split-text .eyebrow { margin-bottom: 0.8rem; }
.split-text h2 { margin-bottom: 1.2rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.stat-strip {
  background: var(--bg);
  padding: 3rem 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-grid .stat strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  color: var(--orange);
}
.stat-grid .stat span { color: var(--silver); font-size: 0.92rem; }

.work-card { text-align: center; padding: 1.5rem; }
.work-card .icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.work-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.work-card p { font-size: 0.88rem; color: var(--silver); }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color .25s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--orange); outline: none; }
.field-error {
  font-size: 0.78rem;
  color: #d64545;
  margin-top: 0.35rem;
  display: none;
}
.field.invalid input, .field.invalid textarea { border-color: #d64545; }
.field.invalid .field-error { display: block; }

.form-msg {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: rgba(34, 160, 90, 0.1);
  color: #1c8a4d;
  border: 1px solid rgba(34, 160, 90, 0.3);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  margin-bottom: 1.3rem;
  font-weight: 600;
}
.form-msg.show { display: flex; }

.info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  height: 100%;
}
.info-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 1.6rem; }
.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.info-item .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(232, 114, 43, 0.15);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-item strong { display: block; color: var(--white); font-size: 0.92rem; margin-bottom: 0.2rem; }
.info-item span, .info-item a { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.info-item a:hover { color: var(--orange); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .split { gap: 2.2rem; }
}

.nav-links { display: none; }

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .nav-cta .btn-sm { padding: 0.6rem 1rem; font-size: 0.82rem; }
  .side-tab-label { display: none; }
  .side-tab { padding: 0.9rem 0.5rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
  .stat-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-metrics { gap: 1.4rem; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .results-count { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.1rem; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .card-actions { flex-direction: column; }
  .hero { min-height: 100vh; }
}
/* ==========================================================================
   MEJORAS — bloque nuevo
   ========================================================================== */

/* ---------- 2. Título del hero con imagen dentro del texto ---------- */
/* ---------- 2. Título del hero: letras que se "despliegan" con la
   imagen del carro visible por dentro (fold + máscara de imagen) ---------- */
.fold-text {
  display: inline-block;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: pre-wrap;
}
.fold-text-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.fold-text-visual {
  position: relative;
  display: inline-block;
}
.fold-text-line { display: block; }
.fold-text-segment {
  display: inline-block;
  line-height: inherit;
  perspective: 700px;
  transform-style: preserve-3d;
  vertical-align: baseline;
}
.fold-text-piece {
  position: relative;
  display: inline-block;
  line-height: inherit;
  color: var(--white);
  background-repeat: no-repeat;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  opacity: 0;
  transform: rotateX(-92deg);
  transition: transform .6s var(--ease), opacity .5s var(--ease);
  transition-delay: var(--fold-delay, 0s);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .fold-text-piece.has-media {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
.fold-text-piece::after {
  content: '';
  position: absolute;
  inset: -0.08em -0.02em;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  border-radius: 0.08em;
  background: linear-gradient(180deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.22) 42%, rgba(255,255,255,0.26) 100%);
  transition: opacity .6s var(--ease);
  transition-delay: var(--fold-delay, 0s);
}
.fold-text.is-in .fold-text-piece {
  opacity: 1;
  transform: rotateX(0deg);
}
.fold-text.is-in .fold-text-piece::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .fold-text-piece { transform: none !important; opacity: 1 !important; transition: none !important; }
  .fold-text-piece::after { opacity: 0 !important; }
}

/* ---------- 3. Sección scroll-expand (Inicio) ---------- */
.scroll-expand {
  position: relative;
  width: 100%;
  background: var(--navy);
}
.scroll-expand__track {
  position: relative;
  width: 100%;
  height: 230vh;
}
.scroll-expand__stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-expand__frame {
  position: absolute;
  inset: 0;
  clip-path: inset(24% 27% round 26px);
  will-change: clip-path;
  overflow: hidden;
}
.scroll-expand__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  will-change: transform;
}
.scroll-expand__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.12) 45%, rgba(0,0,0,0.35));
  opacity: 0;
  pointer-events: none;
}
.scroll-expand__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0 6%;
  font-size: clamp(1.6rem, 5.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
  pointer-events: none;
  will-change: opacity, transform;
}
.scroll-expand__hint {
  position: absolute;
  left: 0; right: 0;
  bottom: 1.4rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
  pointer-events: none;
  will-change: opacity, transform;
}

/* ---------- 5. Loop de marcas ---------- */
.brand-loop-section { padding: 3.4rem 0; background: var(--white); }
.brand-loop-section .eyebrow { display: block; text-align: center; }
.logoloop {
  position: relative;
  overflow: hidden;
  --loop-fade: var(--white);
}
.section-alt .logoloop, .navy-loop .logoloop { --loop-fade: var(--bg); }
.logoloop::before, .logoloop::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(40px, 10%, 140px);
  z-index: 2;
  pointer-events: none;
}
.logoloop::before { left: 0; background: linear-gradient(to right, var(--loop-fade), rgba(255,255,255,0)); }
.logoloop::after { right: 0; background: linear-gradient(to left, var(--loop-fade), rgba(255,255,255,0)); }
.logoloop__track {
  display: flex;
  width: max-content;
  animation: logoloop-scroll 28s linear infinite;
}
.logoloop:hover .logoloop__track { animation-play-state: paused; }
.logoloop__list { display: flex; align-items: center; }
.logoloop__item {
  flex: 0 0 auto;
  padding: 0 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  opacity: 0.5;
  transition: opacity .25s var(--ease), color .25s var(--ease);
}
.logoloop__item:hover { opacity: 1; color: var(--orange); }
.brand-badge {
  width: 46px;
  height: 46px;
  display: block;
}
.brand-badge svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
}
.brand-mark {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: inherit;
  white-space: nowrap;
}
@keyframes logoloop-scroll {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .logoloop__track { animation: none; }
}

/* ---------- 4. Interactividad extra en cards ---------- */
.card-media img { transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.08); }
.benefit-card { transform-style: preserve-3d; }
.card { transform-style: preserve-3d; }

/* ---------- 6. Inventario, versión mejorada ---------- */
.toolbar {
  position: sticky;
  top: 90px;
  z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.9rem 0;
}
.chip { display: inline-flex; align-items: center; gap: 0.4rem; }
.card-media {
  aspect-ratio: 16 / 11;
}
.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,28,44,0.35), transparent 55%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.card:hover .card-media::after { opacity: 1; }
.card-spec-row {
  display: flex;
  gap: 0.9rem;
  font-size: 0.78rem;
  color: var(--silver);
}
.card-spec-row i { color: var(--orange); margin-right: 0.3rem; }
.card-price { display: flex; align-items: center; justify-content: space-between; }
.card-price .available-pill {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(34,160,90,0.12);
  color: #1c8a4d;
}

/* ---------- 8 & 10. Revelado en scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-32px); }
.reveal-left.is-visible { transform: translateX(0); }
.reveal-right { transform: translateX(32px); }
.reveal-right.is-visible { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 10. Cursor + scroll-to-top ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  pointer-events: none;
  border-radius: 50%;
  transform: translate3d(-50%,-50%,0);
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--orange); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(232,114,43,0.55);
  transition: width .2s var(--ease), height .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.cursor-ring.is-active { width: 52px; height: 52px; border-color: rgba(232,114,43,0.9); }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }

.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--orange); }
