/* ============================================
   MCO Motors — Diseño inspirado en Carvana
   Dark mode premium: negro + rojo, esquinas redondeadas,
   cards limpias, hero con búsqueda, pasos, trust badges
   ============================================ */

/* === VARIABLES === */
:root {
    --font-display: 'Barlow Condensed', 'Montserrat', sans-serif;
    --font-family:  'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    --font-size-xs:   0.75rem;
    --font-size-sm:   0.875rem;
    --font-size-base: 1rem;
    --font-size-lg:   1.125rem;
    --font-size-xl:   1.25rem;
    --font-size-2xl:  1.5rem;
    --font-size-3xl:  2rem;
    --font-size-4xl:  2.5rem;
    --font-size-5xl:  3.5rem;

    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Carvana-inspired radii (mucho más redondeado) */
    --radius-sm:   8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-card: 18px;
    --radius-pill: 999px;
    --radius-full: 50%;

    --transition:      0.3s ease;
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

    --container-max:     1280px;
    --container-padding: 1.5rem;
    --header-height:     72px;
}

/* === TEMA OSCURO === */
[data-theme="dark"] {
    --bg-primary:    #080808;
    --bg-secondary:  #101010;
    --bg-tertiary:   #181818;
    --bg-card:       #141414;
    --bg-card-hover: #1c1c1c;
    --bg-elevated:   #1e1e1e;

    --text-primary:   #f2f2f2;
    --text-secondary: #8a8a8a;
    --text-muted:     #444444;

    --accent:       #e50000;
    --accent-hover: #ff2020;
    --accent-text:  #ffffff;
    --accent-soft:  rgba(229, 0, 0, 0.10);
    --accent-glow:  rgba(229, 0, 0, 0.25);

    --border:        #212121;
    --border-hover:  #303030;
    --border-accent: #e50000;

    --shadow-card: 0 2px 12px rgba(0,0,0,0.5);
    --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(229,0,0,0.12);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.6);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.7);
    --shadow-xl: 0 16px 52px rgba(0,0,0,0.85);

    --overlay: rgba(0,0,0,0.78);

    --success: #22c55e;
    --warning: #f59e0b;
    --danger:  #ef4444;
    --info:    #3b82f6;
}

/* === TEMA CLARO === */
[data-theme="light"] {
    --bg-primary:    #f5f5f5;
    --bg-secondary:  #ebebeb;
    --bg-tertiary:   #e2e2e2;
    --bg-card:       #ffffff;
    --bg-card-hover: #fafafa;
    --bg-elevated:   #ffffff;

    --text-primary:   #0d0d0d;
    --text-secondary: #505050;
    --text-muted:     #909090;

    --accent:       #cc0000;
    --accent-hover: #aa0000;
    --accent-text:  #ffffff;
    --accent-soft:  rgba(204, 0, 0, 0.07);
    --accent-glow:  rgba(204, 0, 0, 0.15);

    --border:        #d8d8d8;
    --border-hover:  #c0c0c0;
    --border-accent: #cc0000;

    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-card-hover: 0 12px 36px rgba(0,0,0,0.14);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.09);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.11);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.13);

    --overlay: rgba(0,0,0,0.55);

    --success: #16a34a;
    --warning: #d97706;
    --danger:  #dc2626;
    --info:    #2563eb;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity  0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--anim-delay, 0ms),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--anim-delay, 0ms);
}
.animate-on-scroll.fade-in {
    opacity: 1;
    transform: none;
}
.anim-stagger {
    --anim-delay: calc(var(--stagger-i, 0) * 85ms);
}
.counter-item.animate-on-scroll  { transform: translateY(36px) scale(0.94); }
.feature-card.animate-on-scroll  { transform: translateY(24px) scale(0.97); }
.brand-item.animate-on-scroll    { transform: translateY(18px) scale(0.88) ; }
.section-header.animate-on-scroll { transform: translateY(40px); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.0;
}
h2 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.05;
}
h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}
.section { padding: var(--space-4xl) 0; }

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}
.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: var(--space-sm);
}
.section-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Divisor editorial */
.accent-line {
    display: block;
    width: 48px;
    height: 4px;
    background: var(--accent);
    margin: var(--space-lg) auto 0;
    border-radius: var(--radius-pill);
    position: relative;
}
.accent-line::after {
    content: '';
    position: absolute;
    left: 56px; top: 0;
    width: 10px; height: 4px;
    background: var(--accent);
    opacity: 0.4;
    border-radius: var(--radius-pill);
}

/* ============================================
   HEADER — Carvana-style glass nav
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: color-mix(in srgb, var(--bg-primary) 90%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background-color var(--transition), border-color var(--transition);
}
.header.scrolled {
    background: color-mix(in srgb, var(--bg-primary) 96%, transparent);
    border-bottom-color: var(--border-accent);
}

.header-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex; align-items: center; gap: var(--space-sm);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}
.logo:hover { color: var(--text-primary); }
.logo-img { height: 44px; width: auto; object-fit: contain; }
.logo strong { color: var(--accent); }

/* Nav */
.nav { display: flex; align-items: center; gap: 0; }

.nav-link {
    padding: var(--space-sm) 1rem;
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 1rem; right: 1rem;
    height: 2px;
    background: var(--accent);
    border-radius: var(--radius-pill);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--accent); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--space-sm); }

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 38px; height: 38px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.currency-toggle {
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    height: 38px; padding: 0 1rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
    font-weight: 700; font-size: var(--font-size-xs);
    font-family: inherit; letter-spacing: 0.07em;
}
.currency-toggle:hover { background: var(--accent); color: #fff; }

[data-currency="USD"] .currency-label-usd { display: inline; }
[data-currency="USD"] .currency-label-gs  { display: none; }
[data-currency="GS"]  .currency-label-usd { display: none; }
[data-currency="GS"]  .currency-label-gs  { display: inline; }

[data-currency="USD"] .price-gs  { display: none !important; }
[data-currency="GS"]  .price-usd { display: none !important; }
[data-currency="GS"] .card-price .price-gs {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700; color: var(--accent);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px; width: 32px;
}
.menu-toggle span {
    display: block; width: 100%; height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   BOTONES — Carvana rounded + MCO bold
   ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-family);
    font-size: var(--font-size-sm); font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none; line-height: 1; white-space: nowrap;
}

/* Primary — MCO red, Carvana pill feel */
.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    border-radius: var(--radius-sm);
}
.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
    border-radius: var(--radius-sm);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-tertiary); border-radius: var(--radius-sm); }

.btn-sm   { padding: 0.5rem 1.1rem; font-size: var(--font-size-xs); }
.btn-lg   { padding: 1rem 2.5rem; font-size: var(--font-size-base); }
.btn-block { width: 100%; justify-content: center; }

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { filter: brightness(1.1); color: #fff; }
.btn-danger  { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-warning { background: var(--warning); color: #000; border-color: var(--warning); }

/* WhatsApp-specific override */
.btn-success[href*="wa.me"],
.btn-success[href*="whatsapp"] {
    background: #25D366;
    border-color: #25D366;
}
.btn-success[href*="wa.me"]:hover,
.btn-success[href*="whatsapp"]:hover { background: #1ebe5d; border-color: #1ebe5d; }

/* ============================================
   CARDS — Carvana-inspired: rounded, lifted, clean
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition:
        transform var(--transition-smooth),
        box-shadow var(--transition-smooth),
        border-color var(--transition-fast);
    position: relative;
    box-shadow: var(--shadow-card);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-hover);
}

/* Card image */
.card-img {
    position: relative; overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-tertiary);
}
.card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card-img img { transform: scale(1.05); }

/* Gradient overlay at bottom of image */
.card-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 48px;
    background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Card body */
.card-body { padding: 1.1rem 1.25rem 0; }

/* Card badges (overlaid on image) */
.card-badges {
    position: absolute;
    top: 0.75rem; left: 0.75rem;
    display: flex; flex-wrap: wrap; gap: 0.35rem;
    z-index: 2;
}
.card-badges .badge {
    background: rgba(0,0,0,0.82) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff !important;
    border-radius: var(--radius-pill) !important;
    padding: 0.2rem 0.6rem !important;
}
.card-badges .badge-success { background: rgba(22,163,74,0.92) !important; }
.card-badges .badge-warning  { background: rgba(202,138,4,0.92) !important; }
.card-badges .badge-danger   { background: rgba(220,38,38,0.92) !important; }
.card-badges .badge-accent   { background: var(--accent) !important; }

/* Compare button (top-right of image) */
.card-compare { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; }
.card-compare button {
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(0,0,0,0.65);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
    backdrop-filter: blur(6px);
}
.card-compare button:hover,
.card-compare button.active { background: var(--accent); color: #fff; }

/* Card title */
.card-title {
    font-size: 1rem; font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}
.card-title a { color: var(--text-primary); }
.card-title a:hover { color: var(--accent); }

/* Card specs */
.card-specs {
    display: flex; gap: 0.875rem;
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    margin-bottom: 0;
    flex-wrap: wrap; padding-bottom: 0.75rem;
}
.card-specs span { display: flex; align-items: center; gap: 0.25rem; }

/* Card price — separated from body like Carvana */
.card-price {
    display: flex; align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap; gap: var(--space-xs);
    padding: 0.75rem 1.25rem 0;
    border-top: 1px solid var(--border);
    margin: 0 -1.25rem;
}
.card-price .price-usd {
    font-family: var(--font-display);
    font-size: 1.55rem; font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.card-price .price-gs {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Card button (bottom of card, Carvana-style full-width CTA) */
.card-body .btn-accent.btn-sm.btn-block {
    margin: 0.875rem -1.25rem -0px !important;
    border-radius: 0 0 var(--radius-card) var(--radius-card) !important;
    padding: 0.875rem !important;
    font-size: var(--font-size-xs) !important;
    letter-spacing: 0.08em !important;
    border: none !important;
    border-top: 1px solid rgba(229,0,0,0.2) !important;
    width: calc(100% + 2.5rem) !important;
}
.card:hover .card-body .btn-accent.btn-sm.btn-block {
    background: var(--accent-hover) !important;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex; align-items: center;
    padding: 0.22rem 0.65rem;
    font-size: var(--font-size-xs); font-weight: 700;
    border-radius: var(--radius-pill);
    line-height: 1.2;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-success { background: rgba(34,197,94,0.12);  color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge-danger  { background: rgba(239,68,68,0.12);  color: var(--danger); }
.badge-info    { background: rgba(59,130,246,0.12); color: var(--info); }
.badge-accent  { background: var(--accent-soft);    color: var(--accent); }

/* ============================================
   GRID
   ============================================ */
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
    display: block;
    font-size: var(--font-size-xs); font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-secondary); margin-bottom: 0.4rem;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-family); font-size: var(--font-size-base);
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--bg-card);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-checkbox { display: flex; align-items: center; gap: var(--space-sm); cursor: pointer; font-size: var(--font-size-sm); }
.form-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }

/* ============================================
   HERO — Carvana-style: large, centered, prominent CTA
   ============================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex; align-items: center;
    background: #000;
    margin-top: var(--header-height);
    overflow: hidden;
}

/* Red ambient glow — MCO signature */
.hero::before {
    content: '';
    position: absolute;
    bottom: -10%; left: -10%;
    width: 65%; height: 70%;
    background: radial-gradient(ellipse at bottom left, rgba(229,0,0,0.14) 0%, transparent 65%);
    z-index: 1; pointer-events: none;
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.68) 50%, rgba(0,0,0,0.22) 100%);
    opacity: var(--hero-overlay-opacity, 1);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }

/* Pill eyebrow label above title */
.hero-content::before {
    content: '— Vehículos importados vía Chile';
    display: block;
    font-family: var(--font-family);
    font-size: var(--font-size-xs); font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
    padding: 0.4rem 1rem;
    background: var(--accent-soft);
    border: 1px solid rgba(229,0,0,0.2);
    border-radius: var(--radius-pill);
    display: inline-block;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-lg);
    color: #fff;
}
.hero-content h1 .accent {
    color: var(--accent);
    display: block;
}

.hero-content p {
    font-size: var(--font-size-lg);
    color: rgba(255,255,255,0.65);
    margin-bottom: var(--space-xl);
    max-width: 440px; line-height: 1.8;
}

/* Carvana-style: CTA buttons side by side, large, pill-shaped */
.hero-actions {
    display: flex; gap: var(--space-md); flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}
.hero-actions .btn-accent {
    border-radius: var(--radius-pill) !important;
    padding: 1rem 2.25rem !important;
    font-size: var(--font-size-sm) !important;
}
.hero-actions .btn-outline {
    border-radius: var(--radius-pill) !important;
    padding: 1rem 2.25rem !important;
    font-size: var(--font-size-sm) !important;
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.hero-actions .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}

/* Trust strip below CTA (like Carvana's trust badges in hero) */
.hero-social {
    display: flex; gap: var(--space-sm);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}
.hero-social a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.5);
    transition: all var(--transition-fast);
}
.hero-social a:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero slider */
.hero-slider { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; z-index: 1; }

/* Carvana-style: minimal indicator bars, bottom-left */
.hero-indicators {
    position: absolute;
    bottom: var(--space-xl); left: var(--space-2xl);
    display: flex; gap: var(--space-sm); z-index: 5;
}
.hero-indicator {
    width: 28px; height: 3px;
    border: none; padding: 0;
    background: rgba(255,255,255,0.22);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.35s ease;
}
.hero-indicator.active,
.hero-indicator:hover { background: var(--accent); width: 52px; }

/* Carvana-style: subtle rounded arrow buttons */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    width: 52px; height: 52px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.hero-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
}
.hero-arrow-prev { left: var(--space-lg); }
.hero-arrow-next { right: var(--space-lg); }

@media (max-width: 768px) {
    .hero-arrow { width: 40px; height: 40px; }
    .hero-arrow-prev { left: var(--space-sm); }
    .hero-arrow-next { right: var(--space-sm); }
    .hero-indicators { left: 50%; transform: translateX(-50%); }
}

/* ============================================
   BRANDS — Carvana-style horizontal scroll logos
   ============================================ */
.brands-grid {
    display: flex; justify-content: center;
    gap: var(--space-2xl); flex-wrap: wrap;
}

.brand-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    color: var(--text-muted);
    font-size: var(--font-size-xs); font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase;
    transition: all var(--transition); cursor: default;
}
.brand-item:hover { color: var(--accent); transform: translateY(-3px); }

.brand-icon {
    width: 76px; height: 76px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    overflow: hidden; padding: 0.75rem;
}
.brand-logo {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: brightness(0.45);
    transition: filter var(--transition);
}
.brand-item:hover .brand-logo { filter: brightness(1.1); }
[data-theme="light"] .brand-logo { filter: brightness(0) opacity(0.35); }
[data-theme="light"] .brand-item:hover .brand-logo { filter: brightness(0) opacity(0.7); }
.brand-item:hover .brand-icon {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* ============================================
   FEATURES — Carvana "Cómo funciona" step cards
   ============================================ */
.feature-card {
    padding: var(--space-xl) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Step number — Carvana style: big, red, background */
.feature-card::before {
    content: attr(data-step);
    position: absolute;
    top: -0.15em; right: 0.3em;
    font-family: var(--font-display);
    font-size: 5.5rem; font-weight: 800;
    line-height: 1;
    color: var(--accent);
    opacity: 0.07;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.feature-card:hover::before { opacity: 0.13; }
.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-soft);
}

/* Icon: big, rounded, solid red */
.feature-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-lg);
    transition: transform var(--transition-smooth);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-3deg); }

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm); line-height: 1.75;
}

/* ============================================
   COUNTERS — Carvana trust banner style
   ============================================ */
.counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.counter-item {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    position: relative;
    border-right: 1px solid var(--border);
}
.counter-item:last-child { border-right: none; }

.counter-item .counter-number {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    display: block;
    line-height: 1.0;
    letter-spacing: -0.03em;
}
.counter-item .counter-label {
    font-size: var(--font-size-xs); font-weight: 700;
    letter-spacing: 0.10em; text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.6rem;
    display: block;
}

/* ============================================
   VEHICLE GRID
   ============================================ */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@keyframes cardEntrada {
    0%   { opacity: 0; transform: translateY(24px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.vehicles-grid .card {
    opacity: 0;
    animation: cardEntrada 0.50s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ============================================
   COMPARADOR BAR
   ============================================ */
.comparador-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent);
    padding: var(--space-md);
    z-index: 999;
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(16px);
}
.comparador-bar.visible { transform: translateY(0); }

.comparador-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--container-max); margin: 0 auto;
}
.comparador-items { display: flex; gap: var(--space-sm); }

.comparador-item {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: 0.4rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-pill);
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-accent);
}
.comparador-item button {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: var(--font-size-base); line-height: 1;
    padding: 0 0.2rem;
}
.comparador-item button:hover { color: var(--danger); }

/* ============================================
   FILTERS SIDEBAR — Carvana-style
   ============================================ */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-xl); align-items: start; }

.filters-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    /* Sin max-height ni overflow — se despliega completo */
}

.filter-section { margin-bottom: var(--space-lg); }
.filter-section h3 {
    font-size: var(--font-size-xs); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.09em;
    color: var(--text-muted); margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.filter-options label {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: 0.3rem 0; cursor: pointer;
    font-size: var(--font-size-sm); color: var(--text-secondary);
    transition: color var(--transition-fast);
}
.filter-options label:hover { color: var(--text-primary); }
.filter-options input[type="checkbox"],
.filter-options input[type="radio"] { accent-color: var(--accent); }

/* Range sliders */
.range-inputs { display: flex; gap: var(--space-sm); align-items: center; }
.range-inputs input {
    width: 100%; padding: var(--space-sm);
    background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: var(--font-size-sm); font-family: var(--font-family);
}
.range-inputs span { color: var(--text-muted); font-size: var(--font-size-sm); }

.dual-range, .single-range { position: relative; height: 28px; margin-top: var(--space-xs); }
.dual-range-track { position: absolute; top: 50%; left: 0; right: 0; height: 3px; background: var(--border); border-radius: 2px; transform: translateY(-50%); }
.dual-range-fill { position: absolute; height: 100%; background: var(--accent); border-radius: 2px; }
.dual-range-thumb, .single-range-thumb { -webkit-appearance: none; appearance: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: none; pointer-events: none; margin: 0; padding: 0; }
.dual-range-thumb::-webkit-slider-thumb,
.single-range-thumb::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-card); cursor: pointer; pointer-events: auto; box-shadow: 0 1px 4px rgba(0,0,0,0.4); transition: transform var(--transition-fast); }
.dual-range-thumb::-moz-range-thumb,
.single-range-thumb::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-card); cursor: pointer; pointer-events: auto; }
.dual-range-thumb::-webkit-slider-thumb:hover,
.single-range-thumb::-webkit-slider-thumb:hover { transform: scale(1.25); }
.dual-range-thumb::-webkit-slider-runnable-track,
.single-range-thumb::-webkit-slider-runnable-track { height: 3px; background: transparent; }
.dual-range-thumb::-moz-range-track, .single-range-thumb::-moz-range-track { height: 3px; background: transparent; border: none; }
.single-range { height: 28px; }
.single-range-thumb { position: relative; width: 100%; background: none; }
.single-range-thumb::-webkit-slider-runnable-track { height: 3px; background: var(--border); border-radius: 2px; }

/* Sort bar */
.catalog-search {
    display: flex; align-items: center; gap: var(--space-sm);
    margin-bottom: var(--space-md);
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    padding: var(--space-sm) var(--space-lg);
    transition: border-color 0.2s;
}
.catalog-search:focus-within { border-color: var(--accent); }
.catalog-search svg { flex-shrink: 0; color: var(--text-muted); }
.catalog-search input[type="search"] { flex: 1; border: none; background: transparent; color: var(--text-primary); font-family: var(--font-family); font-size: var(--font-size-base); outline: none; min-width: 0; }
.catalog-search input[type="search"]::placeholder { color: var(--text-muted); }
.catalog-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.busqueda-clear-btn { display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0; line-height: 1; flex-shrink: 0; }
.busqueda-clear-btn:hover { color: var(--text-primary); }

.sort-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-lg); flex-wrap: wrap; gap: var(--space-md); }
.sort-bar .results-count { font-size: var(--font-size-sm); color: var(--text-secondary); }
.sort-bar-actions { display: flex; align-items: center; gap: var(--space-sm); }
.sort-bar select { padding: 0.5rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-primary); font-family: var(--font-family); font-size: var(--font-size-sm); }

.filters-mobile-toggle { display: none; }
.filters-backdrop, .filters-drag-handle, .filters-mobile-header,
.filters-mobile-actions, .filters-scroll-area { display: none; }

.filters-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; border-radius: var(--radius-pill);
    background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 700; padding: 0 5px; margin-left: 6px;
}

/* ============================================
   VEHICLE DETAIL
   ============================================ */
.vehicle-detail { margin-top: var(--header-height); padding-top: var(--space-xl); }
.vehicle-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: var(--space-xl); }
.vehicle-detail-sidebar { position: sticky; top: calc(var(--header-height) + var(--space-xl)); height: fit-content; }

.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xs); }
.spec-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: var(--space-md) var(--space-xs);
    background: var(--bg-tertiary); border-radius: var(--radius-md);
    gap: var(--space-xs);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}
.spec-item:hover { background: var(--bg-secondary); border-color: var(--accent); }
.spec-icon { color: var(--accent); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.spec-label { font-size: var(--font-size-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.spec-value { font-size: var(--font-size-sm); font-weight: 700; color: var(--text-primary); }

/* ============================================
   COMPARATOR TABLE
   ============================================ */
.comparador-table { width: 100%; border-collapse: collapse; margin-top: var(--space-xl); }
.comparador-table th, .comparador-table td { padding: var(--space-md); text-align: center; border-bottom: 1px solid var(--border); font-size: var(--font-size-sm); }
.comparador-table th { background: var(--bg-secondary); font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; position: sticky; top: var(--header-height); z-index: 10; }
.comparador-table td:first-child { text-align: left; color: var(--text-muted); font-weight: 600; font-size: var(--font-size-xs); text-transform: uppercase; letter-spacing: 0.04em; min-width: 140px; }
.comparador-table .diff { background: var(--accent-soft); }
.comparador-table .vehicle-header { padding: var(--space-lg); }
.comparador-table .vehicle-header img { width: 100%; max-width: 200px; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-md); margin: 0 auto var(--space-sm); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
.contact-info-item { display: flex; gap: var(--space-md); margin-bottom: var(--space-lg); }
.contact-info-item .icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(229,0,0,0.2); }
.contact-info-item h4 { font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: var(--space-xs); }
.contact-info-item p { font-size: var(--font-size-sm); color: var(--text-secondary); }
.map-container { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-top: var(--space-xl); }
.map-container iframe { width: 100%; height: 350px; border: 0; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
    text-align: center;
    padding: var(--space-4xl) 0;
    margin-top: var(--header-height);
    position: relative; overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(229,0,0,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.about-hero h1 {
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.0;
    margin-bottom: var(--space-md); position: relative;
}
.about-content { max-width: 800px; margin: 0 auto; font-size: var(--font-size-lg); color: var(--text-secondary); line-height: 1.85; }

/* ============================================
   FOOTER — Carvana dark + MCO red
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 3px solid var(--accent);
    padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 1fr; gap: var(--space-2xl); }
.footer-logo { margin-bottom: var(--space-sm); }
.footer-logo-img { height: 60px; width: auto; object-fit: contain; }
.footer-logo strong { color: var(--accent); }
.footer-desc { color: var(--text-secondary); font-size: var(--font-size-sm); line-height: 1.75; }
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.10em;
    margin-bottom: var(--space-md); color: var(--text-primary);
    padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--text-secondary); font-size: var(--font-size-sm); transition: color var(--transition-fast); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col ul li svg { vertical-align: middle; margin-right: var(--space-xs); color: var(--accent); }
.footer-col p { color: var(--text-secondary); font-size: var(--font-size-sm); }
.footer-bottom { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { font-size: var(--font-size-xs); color: var(--text-muted); }
.dev-credit { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.7rem; color: var(--text-muted); text-decoration: none; opacity: 0.5; transition: opacity var(--transition-fast); }
.dev-credit:hover { opacity: 0.85; }
.dev-credit img { height: 16px; width: auto; filter: grayscale(1) brightness(0.7) invert(0.8); transition: filter var(--transition-fast); }
[data-theme="light"] .dev-credit img { filter: grayscale(1) brightness(0.5); }
.dev-credit:hover img { filter: none; }

/* ============================================
   WHATSAPP FLOAT — Carvana keeps it, we do too
   ============================================ */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.38);
    z-index: 998;
    transition: all var(--transition);
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ============================================
   SPINNER, EMPTY STATE, ALERTS, MISC
   ============================================ */
.spinner { width: 38px; height: 38px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin: var(--space-2xl) auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: var(--space-4xl) var(--space-xl); color: var(--text-muted); }
.empty-state svg { margin-bottom: var(--space-lg); opacity: 0.35; }
.empty-state h3 { font-family: var(--font-display); font-size: var(--font-size-3xl); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--space-sm); color: var(--text-secondary); }

.alert { padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); font-size: var(--font-size-sm); margin-bottom: var(--space-lg); border: 1px solid; border-left-width: 4px; }
.alert-success { background: rgba(34,197,94,0.07);  border-color: var(--success); color: var(--success); }
.alert-danger  { background: rgba(239,68,68,0.07);  border-color: var(--danger);  color: var(--danger); }
.alert-info    { background: rgba(59,130,246,0.07); border-color: var(--info);    color: var(--info); }

.placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg-tertiary); color: var(--text-muted); font-size: var(--font-size-3xl); }

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    margin-top: var(--header-height);
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: relative; overflow: hidden;
}
/* Red gradient bottom bar */
.page-header::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(229,0,0,0.2) 60%, transparent 100%);
}
.page-header h1 {
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.02em; line-height: 1.0;
}
.page-header p { color: var(--text-secondary); margin-top: var(--space-xs); }

/* ============================================
   BREADCRUMB, TAGS
   ============================================ */
.breadcrumb { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--font-size-sm); color: var(--text-muted); margin-bottom: var(--space-md); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

.tags { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: var(--space-xs); padding: 0.3rem 0.75rem; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: var(--font-size-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }

/* section-eyebrow (utility) */
.section-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-family); font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-sm); }
.section-eyebrow::before { content: ''; display: inline-block; width: 18px; height: 2px; background: var(--accent); border-radius: var(--radius-pill); flex-shrink: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .vehicles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .vehicle-detail-grid { grid-template-columns: 1fr; }
    .vehicle-detail-sidebar { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
        --container-padding: 1rem;
    }

    /* Mobile nav — full screen drawer */
    .nav {
        display: none;
        position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--space-xl); gap: var(--space-xs);
        z-index: 999;
        border-top: 2px solid var(--accent);
    }
    .nav.open { display: flex; }
    .nav-link { font-size: var(--font-size-base); padding: var(--space-md); letter-spacing: 0.07em; }
    .nav-link::after { display: none; }
    .menu-toggle { display: flex; }

    .hero { min-height: 78vh; }
    .hero-content h1 { font-size: clamp(2.8rem, 13vw, 4.5rem); }
    .hero-content::before { font-size: 0.65rem; }

    .brands-grid { gap: var(--space-lg); }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .vehicles-grid { grid-template-columns: 1fr; }
    .catalog-layout { grid-template-columns: 1fr; }

    /* Mobile filters — bottom sheet */
    .filters-sidebar {
        position: fixed; left: 0; right: 0; bottom: 0; top: 0;
        height: 100%; max-height: 100vh;
        background: var(--bg-primary); z-index: 10002;
        padding: 0; overflow: hidden;
        display: flex; flex-direction: column;
        border-radius: 0; box-shadow: none;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        pointer-events: none;
    }
    .filters-sidebar.open { transform: translateY(0); pointer-events: auto; }

    .filters-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 10001; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
    .filters-backdrop.visible { opacity: 1; pointer-events: auto; }
    .filters-drag-handle { display: flex; justify-content: center; padding: 10px 0 4px; flex-shrink: 0; cursor: grab; }
    .filters-drag-handle span { width: 36px; height: 3px; border-radius: var(--radius-pill); background: var(--border); }
    .filters-mobile-header { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--space-lg) var(--space-sm); flex-shrink: 0; border-bottom: 1px solid var(--border); }
    .filters-mobile-header h2 { font-family: var(--font-display); font-size: var(--font-size-xl); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; }
    .filters-mobile-header .filters-active-count { font-size: var(--font-size-xs); color: var(--accent); font-weight: 700; }
    .filters-mobile-close-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-full); border: none; background: var(--bg-tertiary); color: var(--text-primary); cursor: pointer; }
    .filters-scroll-area { display: block; flex: 1 1 0%; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: var(--space-md) var(--space-lg) var(--space-xl); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
    .filters-mobile-actions { display: flex; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--border); background: var(--bg-primary); flex-shrink: 0; }
    .filters-mobile-actions .btn { flex: 1; }
    .filters-sidebar > div[style] { display: none !important; }
    .filters-sidebar form > div:last-child { display: none; }
    .filters-mobile-toggle { display: flex; }

    .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }

    .counters { grid-template-columns: repeat(3, 1fr); gap: 0; }
    .counter-item { border-right: 1px solid var(--border); }
    .counter-item:last-child { border-right: none; }
    .counter-item .counter-number { font-size: clamp(2.2rem, 8vw, 3.5rem); }

    .comparador-bar-inner { flex-direction: column; gap: var(--space-md); }
    .comparador-items { flex-wrap: wrap; }
    .whatsapp-float { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-social { justify-content: flex-start; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
    .counters { grid-template-columns: 1fr; }
    .counter-item { border-right: none; border-bottom: 1px solid var(--border); }
    .counter-item:last-child { border-bottom: none; }
}

/* ============================================
   HERO SEARCH BAR
   ============================================ */
.hero-search-bar {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 10;
  padding: 1.5rem 0 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.hero-search-form {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-search-input {
  flex: 1 1 220px;
  min-width: 180px;
  height: 52px;
  padding: 0 1.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, background 0.2s;
}
.hero-search-input::placeholder { color: rgba(255,255,255,0.55); }
.hero-search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.15);
}

.hero-search-select {
  flex: 0 1 160px;
  height: 52px;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-body);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.hero-search-select:focus { outline: none; border-color: var(--accent); }
.hero-search-select option { background: #1a1a1a; color: #fff; }

[data-theme="light"] .hero-search-input,
[data-theme="light"] .hero-search-select {
  background: rgba(255,255,255,0.85);
  color: #111;
  border-color: rgba(0,0,0,0.15);
}
[data-theme="light"] .hero-search-input::placeholder { color: #666; }
[data-theme="light"] .hero-search-select option { background: #fff; color: #111; }

@media (max-width: 640px) {
  .hero-search-form { flex-direction: column; }
  .hero-search-input, .hero-search-select { flex: 1 1 100%; width: 100%; }
  .hero-search-bar .btn { width: 100%; justify-content: center; }
}

/* ============================================
   HORIZONTAL VEHICLE CARD
   ============================================ */
.vehicle-card-h {
  display: flex;
  flex-direction: row;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-card);
}
.vehicle-card-h:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}

.card-img-h {
  flex: 0 0 42%;
  max-width: 42%;
  position: relative;
  overflow: hidden;
}
.card-img-h img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.vehicle-card-h:hover .card-img-h img { transform: scale(1.04); }

.card-body-h {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}
.card-body-h .card-title {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}
.card-body-h .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.card-body-h .card-price {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}
.card-body-h .price-usd {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--accent);
}
.card-body-h .card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.card-body-h .btn-accent {
  flex: 1;
}

@media (max-width: 640px) {
  .vehicle-card-h { flex-direction: column; }
  .card-img-h { flex: none; max-width: 100%; height: 200px; }
}

/* ============================================
   ZIGZAG FEATURES LAYOUT
   ============================================ */
.features-zigzag {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: var(--space-2xl);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-row__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.feature-row::before {
  content: attr(data-step);
  position: absolute;
  font-size: clamp(6rem, 15vw, 11rem);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  opacity: 0.07;
  line-height: 1;
  top: 50%; right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.feature-row__visual .feature-icon {
  position: relative;
  z-index: 1;
  width: 80px; height: 80px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.3s ease, background 0.3s ease;
}
.feature-row:hover .feature-row__visual .feature-icon {
  transform: rotate(6deg) scale(1.1);
  background: var(--accent);
  color: #fff;
}

.feature-row__text { padding: 1rem 0; }
.feature-row__text h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.feature-row__text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
  }
  .feature-row__visual { justify-content: flex-start; }
  .feature-row__visual .feature-icon { width: 60px; height: 60px; }
}

/* ============================================
   SIDEBAR VISUAL + EXTRA CLASSES
   (catalog-layout grid ya está arriba — solo estilos visuales aquí)
   ============================================ */

/* Visual card shell para el sidebar de filtros */
.filters-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.25rem 0;
    /* Sticky + max-height definidos arriba; acá mejoramos scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.filters-sidebar::-webkit-scrollbar { width: 4px; }
.filters-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Título del sidebar (desktop) */
.sidebar-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--accent);
}

/* Contenedor de cada bloque de filtro dentro del sidebar */
.sidebar-section { margin-bottom: 0; padding-bottom: 1.25rem; }

/* Botones de acción al final del form — uno debajo del otro */
.filters-sidebar form > div:last-child {
    display: flex !important;
    flex-direction: column;
    gap: var(--space-sm);
    padding: 1rem 0 1.25rem;
    border-top: 1px solid var(--border);
    margin-top: var(--space-md);
}
.filters-sidebar form > div:last-child .btn {
    width: 100%;
    justify-content: center;
}

/* Columna de resultados */
.catalog-main { min-width: 0; }

/* Subtítulo del page-header */
.page-header-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    margin-top: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}
