/* ==========================================================================
   miempresa LUXURY AUTOMOTIVE DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Colors */
    --bg-dark: #070709;
    --bg-card: #111115;
    --bg-card-hover: #17171d;
    --bg-light: #f6f7f9;
    
    --text-main: #ffffff;
    --text-muted: #a0a4b0;
    --text-dark: #111115;
    --text-dark-muted: #5a5d6a;
    
    --gold-primary: #a28253;
    --gold-light: #c2a378;
    --gold-dark: #7a5e37;
    --gold-gradient: linear-gradient(135deg, #bca076 0%, #a28253 50%, #7a5e37 100%);
    --gold-glow: rgba(162, 130, 83, 0.3);
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(162, 130, 83, 0.4);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Layout */
    --max-width: 1320px;
    --header-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 64px 0;
    }
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge-sub {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.badge-sub.dark-badge {
    color: var(--text-dark-muted);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--text-main);
    margin-bottom: 48px;
}

.section-title.dark-text {
    color: var(--text-dark);
}

.section-header.center {
    text-align: center;
}

.section-header.split-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header.split-header .section-title {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    white-space: nowrap;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(162, 130, 83, 0.5);
    filter: brightness(1.08);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-outline-border {
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-outline-border:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(162, 130, 83, 0.05);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(7,7,9,0.9) 0%, rgba(7,7,9,0.4) 100%);
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(7, 7, 9, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}

.brand-logo:hover img {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-whatsapp-header {
    padding: 8px 16px;
    font-size: 0.75rem;
    border: 1px solid var(--border-glass);
    background: transparent;
    color: var(--text-main);
    border-radius: 4px;
}

.btn-whatsapp-header i {
    color: #25D366;
    font-size: 1.1em;
}

.btn-whatsapp-header:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.08);
}

.mobile-only-contact {
    display: none;
}

/* Hamburger Menu Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-toggle .bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
}

.mobile-toggle .bar:nth-child(1) { top: 0; }
.mobile-toggle .bar:nth-child(2) { top: 11px; }
.mobile-toggle .bar:nth-child(3) { top: 22px; }

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background-color: var(--gold-primary);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background-color: var(--gold-primary);
}

/* Responsive Navbar */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: rgba(11, 11, 15, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 48px;
        gap: 28px;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 40px rgba(0,0,0,0.8);
        border-left: 1px solid var(--border-glass);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .mobile-toggle {
        display: block;
    }

    .btn-whatsapp-header {
        display: none;
    }

    .mobile-only-contact {
        display: block;
        width: 100%;
        margin-top: 20px;
    }

    .btn-whatsapp-mobile {
        width: 100%;
        background: #25D366;
        color: #fff;
        padding: 16px;
        border-radius: 4px;
        font-weight: 600;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: clamp(480px, 42vw, 600px);
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

@media (max-width: 992px) {
    .hero {
        height: auto;
        min-height: 480px;
        padding-bottom: 40px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(7, 7, 9, 0.75) 0%,
        rgba(7, 7, 9, 0.4) 45%,
        rgba(7, 7, 9, 0.05) 100%
    );
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 24px;
}

.hero-title {
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: #e2e4ea;
    max-width: 750px;
    margin-bottom: 28px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .hero-subtitle br {
        display: none;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-buttons .btn {
    padding: 12px 24px;
    font-size: 0.8rem;
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   PERKS BAR
   ========================================================================== */
.perks-bar {
    position: relative;
    z-index: 10;
    background: var(--bg-card);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 32px 0;
}

.perks-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.perk-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(162, 130, 83, 0.08);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold-primary);
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.perk-item:hover .perk-icon-wrapper {
    background: var(--gold-primary);
    color: #000;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px var(--gold-glow);
}

.perk-text {
    display: flex;
    flex-direction: column;
}

.perk-text strong {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.perk-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SERVICES SECTION ("¿Qué hacemos?")
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    height: 420px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    group: card;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .card-bg img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7,7,9,0.95) 15%, rgba(7,7,9,0.4) 60%, rgba(7,7,9,0.1) 100%);
    z-index: 2;
    transition: var(--transition-smooth);
}

.service-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(7,7,9,0.98) 25%, rgba(7,7,9,0.6) 70%, rgba(7,7,9,0.2) 100%);
}

.card-content {
    position: relative;
    z-index: 3;
    transition: var(--transition-smooth);
}

.service-card:hover .card-content {
    transform: translateY(-6px);
}

.card-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--text-main);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.card-cta {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-cta i {
    transition: transform 0.3s ease;
}

.service-card:hover .card-cta i {
    transform: translateX(6px);
}

/* ==========================================================================
   EXPERIENCE miempresa (TIMELINE)
   ========================================================================== */
.bg-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.timeline-container {
    position: relative;
    margin-top: 60px;
}

.timeline-line {
    position: absolute;
    top: 36px;
    left: 40px;
    right: 40px;
    height: 2px;
    border-top: 2px dashed #d1d5db;
    z-index: 1;
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: var(--transition-smooth);
}

.step-item:hover .step-icon {
    background: var(--text-dark);
    color: var(--gold-primary);
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.step-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-dark-muted);
    max-width: 200px;
}

/* Timeline Responsive */
@media (max-width: 992px) {
    .timeline-line {
        top: 0;
        bottom: 0;
        left: 35px;
        width: 2px;
        height: 100%;
        border-top: none;
        border-left: 2px dashed #d1d5db;
    }

    .timeline-steps {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .step-item {
        flex-direction: row;
        text-align: left;
        gap: 24px;
    }

    .step-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .step-desc {
        max-width: 100%;
    }
}

/* ==========================================================================
   FEATURED VEHICLES & INVENTORY FILTER BAR
   ========================================================================== */
.inventory-filter-bar {
    background: #18181c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.05);
}

.filter-group {
    flex: 1;
    min-width: 140px;
}

.filter-group select {
    width: 100%;
    background: #0f0f13;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.filter-group select:focus,
.filter-group select:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.filter-group select option {
    background: #18181c;
    color: #fff;
    padding: 10px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-filter-search {
    background: #0066ff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    white-space: nowrap;
}

.btn-filter-search:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
}

.btn-filter-reset {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-filter-reset:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .inventory-filter-bar {
        flex-direction: column;
        padding: 16px;
        gap: 10px;
    }
    .filter-group {
        width: 100%;
        min-width: 100%;
    }
    .filter-actions {
        width: 100%;
        display: flex;
        margin-top: 4px;
    }
    .btn-filter-search {
        flex: 1;
    }
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 992px) {
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.vehicle-card {
    background: linear-gradient(145deg, #131318 0%, #0c0c0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.vehicle-card:hover {
    transform: translateY(-8px);
    border-color: rgba(162, 130, 83, 0.45);
    box-shadow: 0 20px 45px rgba(0,0,0,0.7), 0 0 30px rgba(162, 130, 83, 0.15);
}

.vehicle-img-wrapper {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #0d0d10;
}

.vehicle-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.vehicle-card:hover .vehicle-img-wrapper img {
    transform: scale(1.06);
}

.vehicle-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(7, 7, 9, 0.8);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-glass);
}

/* ==================== CORNER BADGES OVERLAY ON PHOTO ==================== */
.vehicle-badges-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    background: rgba(12, 12, 16, 0.92);
    backdrop-filter: blur(12px);
    border-top-right-radius: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    z-index: 2;
    box-shadow: 4px -4px 15px rgba(0, 0, 0, 0.4);
}

.badge-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    min-width: 58px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: var(--transition-fast);
}

.badge-icon-box:last-child {
    border-right: none;
}

.badge-icon-box:hover {
    background: rgba(162, 130, 83, 0.15);
}

.badge-icon-box i, .badge-icon-box svg {
    font-size: 1.15rem;
    width: 18px;
    height: 18px;
    margin-bottom: 4px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.badge-icon-box:hover i, .badge-icon-box:hover svg {
    color: var(--gold-primary);
}

.badge-icon-box span {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

.vehicle-info {
    padding: 22px 18px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 95px;
    background: linear-gradient(180deg, rgba(22, 22, 28, 0.4) 0%, rgba(13, 13, 17, 0.8) 100%);
}

.vehicle-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.35;
}

.vehicle-subtitle {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

/* ==================== CALUGA 3-SPLIT SPECS BAR ==================== */
.caluga-bottom-bar {
    display: grid;
    grid-template-columns: 1.35fr 1.05fr 0.8fr;
    gap: 2px;
    background: rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.caluga-box {
    background: rgba(18, 18, 23, 0.96);
    padding: 14px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background 0.3s ease;
}

.vehicle-card:hover .caluga-box.caluga-price {
    background: linear-gradient(135deg, rgba(162, 130, 83, 0.2), rgba(18, 18, 23, 0.96));
}

.caluga-price .caluga-value {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: -0.02em;
}

.caluga-km .caluga-value {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: #e0e0e0;
}

.caluga-year .caluga-value {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

@media (max-width: 480px) {
    .caluga-price .caluga-value {
        font-size: 0.98rem;
    }
    .caluga-km .caluga-value, .caluga-year .caluga-value {
        font-size: 0.82rem;
    }
    .caluga-box {
        padding: 12px 4px;
    }
}

.btn-vehicle-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-vehicle-cta i {
    color: #25D366;
    font-size: 1.25em;
    transition: var(--transition-fast);
}

.vehicle-card:hover .btn-vehicle-cta {
    background: var(--gold-gradient);
    color: #ffffff;
}


.vehicle-card:hover .btn-vehicle-cta i {
    color: #ffffff;
}

/* ---- Loading & Error States ---- */
.vehicles-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.vehicles-error {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1rem;
}
.vehicles-error i { font-size: 2rem; color: var(--gold); }

/* ---- Status Badges (Recién Llegado / Vendido / Oportunidad) ---- */
.vehicle-status-badges {
    position: absolute;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 3;
}

.vehicle-status-left {
    left: 12px;
}

.vehicle-status-right {
    right: 12px;
    align-items: flex-end;
}

.vehicle-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.badge-nuevo {
    background: linear-gradient(135deg, #1cb85a, #0d8c3e);
    color: #fff;
    box-shadow: 0 2px 12px rgba(28, 184, 90, 0.5);
}

.badge-vendido {
    background: rgba(220, 50, 50, 0.85);
    color: #fff;
}

.badge-oportunidad {
    background: linear-gradient(135deg, #1a6ef5, #0d4fcc);
    color: #fff;
    box-shadow: 0 2px 12px rgba(26, 110, 245, 0.5);
    font-size: 0.62rem;
}



/* Dots */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.carousel-indicators .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-indicators .dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--gold-primary);
}

/* ==========================================================================
   SPLIT SECTION (BEFORE/AFTER & MEMBERSHIPS)
   ========================================================================== */
.split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 48px;
}

@media (max-width: 768px) {
    .split-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }
}

.col-header {
    margin-bottom: 32px;
}

.col-header .section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0;
}

/* Comparison Slider */
.comparison-slider {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    cursor: ew-resize;
    user-select: none;
    touch-action: pan-y;
    container-type: inline-size;
}

.image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none !important;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.image-after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* JS controls this */
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100cqw; /* Mantiene el ancho total del slider contenedor */
    max-width: none !important; /* Evita que el reset global img { max-width: 100% } encoja la imagen */
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.handle {
    position: absolute;
    top: 0;
    left: 50%; /* JS controls this */
    transform: translateX(-50%);
    width: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.handle-line {
    width: 2px;
    flex-grow: 1;
    background: var(--gold-primary);
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.handle-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(162, 130, 83, 0.6);
}

.comp-badge {
    position: absolute;
    bottom: 16px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 4px;
    background: rgba(7, 7, 9, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid var(--border-glass);
    z-index: 4;
}

.label-before { left: 16px; }
.label-after { right: 16px; }

/* Memberships Grid */
.memberships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.membership-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: var(--transition-smooth);
}

.membership-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.2);
}

.popular-featured {
    background: linear-gradient(145deg, #131318 0%, #1a1a22 100%);
    border: 1px solid var(--border-gold);
    box-shadow: 0 10px 40px rgba(162, 130, 83, 0.12);
}

.popular-featured:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 15px 50px rgba(162, 130, 83, 0.25);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--gold-gradient);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 4px 12px;
    border-radius: 4px;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-main);
}

.plan-icon.gold-icon {
    background: rgba(162, 130, 83, 0.1);
    color: var(--gold-primary);
}

.plan-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.text-gold {
    color: var(--gold-primary);
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.plan-features li {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-check {
    color: var(--text-muted);
    font-size: 0.9em;
}

.feature-check.gold {
    color: var(--gold-primary);
}

.btn-plan-outline {
    display: block;
    text-align: center;
    padding: 14px;
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.btn-plan-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
}

.btn-plan-gold {
    width: 100%;
}

/* ==========================================================================
   LOCATION & FOOTER
   ========================================================================== */
.location-footer {
    background: #0c0e0f;
    border-top: 1px solid var(--border-glass);
    padding-top: 80px;
}

.location-banner {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.2fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .location-banner {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.location-img-box {
    position: relative;
    height: 100%;
    min-height: 220px;
    max-height: 300px;
}

.location-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-logo-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(7, 7, 9, 0.85);
    backdrop-filter: blur(12px);
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
}

.img-logo-overlay img {
    height: 18px;
    width: auto;
}

.location-content {
    padding: 24px 32px 24px 0;
}

@media (max-width: 768px) {
    .location-content {
        padding: 24px;
    }
}

.location-content .section-title {
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    margin-bottom: 18px;
    line-height: 1.35;
}

.location-perks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.location-content .btn {
    padding: 10px 20px;
    font-size: 0.78rem;
}

.loc-perk {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loc-perk i {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(162, 130, 83, 0.12);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.loc-perk strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    color: var(--text-main);
}

.loc-perk span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Executive Footer Grid */
.footer-vip-line {
    width: 100%;
    height: 1px;
    background: var(--gold-primary);
    margin-bottom: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1.2fr 0.9fr;
    gap: 40px;
    padding-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 20px;
}

.footer-bio {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--gold-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-main);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--gold-primary);
}

.footer-links, .footer-contact-list, .footer-hours-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-primary);
    padding-left: 4px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-contact-list li i {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-list a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-contact-list a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.footer-hours-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
}

.footer-hours-list strong {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 600;
}

.footer-hours-list span {
    color: var(--text-muted);
}

.footer-hours-list .gold-text {
    color: var(--gold-primary);
    font-weight: 600;
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-top: 1px solid var(--border-glass);
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-tagline {
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--gold-primary);
}

/* ==========================================================================
   ANIMATIONS & REVEAL UTILITIES
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   VEHICLE DETAILS MODAL & LIGHTBOX CSS
   ========================================================================== */
.modal-backdrop, .lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 12, 0.92);
    backdrop-filter: blur(14px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active, .lightbox-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #111115;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    width: 100%;
    max-width: 1150px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(162, 130, 83, 0.15);
    transform: scale(0.94) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    background: var(--gold-gradient);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 36px;
    padding: 36px;
}

@media (max-width: 992px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px;
    }
}

/* Gallery Column */
.modal-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-main-img-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    background: #08080a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: zoom-in;
}

.modal-main-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modal-main-img-wrapper:hover img {
    transform: scale(1.03);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 14, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition-fast);
}

.gallery-nav-btn.prev { left: 14px; }
.gallery-nav-btn.next { right: 14px; }

.gallery-nav-btn:hover {
    background: var(--gold-gradient);
    border-color: transparent;
}

.gallery-fullscreen-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(10, 10, 14, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition-fast);
}

.gallery-fullscreen-btn:hover {
    background: var(--gold-primary);
}

.gallery-counter {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(10, 10, 14, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    z-index: 5;
}

.modal-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.thumb-item {
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: var(--transition-fast);
    background: #000;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover, .thumb-item.active {
    opacity: 1;
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

/* Info Column */
.modal-info-col {
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.modal-badge-sub {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 12px 0;
    color: #ffffff;
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.modal-spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    color: #ffffff;
}

.modal-section-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.modal-description {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 24px;
}

.modal-contact-phones {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition-fast);
}

.phone-link i {
    color: var(--gold-primary);
}

.phone-link:hover {
    background: var(--gold-gradient);
    border-color: transparent;
    color: #ffffff;
}

.modal-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 10px 30px var(--gold-glow);
}

/* Lightbox styles */
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.lightbox-caption {
    margin-top: 14px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.lightbox-close-btn {
    position: absolute;
    top: 24px;
    right: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: var(--transition-fast);
}

.lightbox-close-btn:hover {
    background: var(--gold-primary);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 2.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: var(--transition-fast);
}

.lightbox-nav-btn.prev { left: 32px; }
.lightbox-nav-btn.next { right: 32px; }

.lightbox-nav-btn:hover {
    background: var(--gold-primary);
    border-color: transparent;
}

/* ==========================================================================
   FLOATING INTELLIGENT AI CHATBOT WIDGET
   ========================================================================== */
.ai-chat-floating-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: var(--font-main);
}

/* Floating Toggle Button */
.ai-chat-toggle-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #18181c, #26262d);
    border: 2px solid var(--gold-primary);
    color: #fff;
    padding: 12px 20px 12px 14px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.ai-chat-toggle-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #202026, #303038);
}

.ai-chat-icon-pulse {
    width: 38px;
    height: 38px;
    background: var(--gold-primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.ai-chat-btn-text {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff, var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-chat-notification-dot {
    position: absolute;
    top: -4px;
    right: 12px;
    background: #ff3b30;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #18181c;
    animation: bounceAlert 2s infinite;
}

@keyframes bounceAlert {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Chat Window */
.ai-chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    max-height: 560px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 40px rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.ai-chat-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Header */
.ai-chat-header {
    background: linear-gradient(135deg, #18181c, #24242b);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 14px;
}

.ai-chat-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold-primary), #b8911f);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.ai-chat-status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #34c759;
    border: 2px solid #18181c;
    border-radius: 50%;
}

.ai-chat-header-info {
    flex: 1;
}

.ai-chat-header-info h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.ai-chat-header-info span {
    color: #34c759;
    font-size: 0.75rem;
    font-weight: 500;
}

.ai-chat-close-btn {
    background: transparent;
    border: none;
    color: #a0a0ab;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.ai-chat-close-btn:hover {
    color: #fff;
}

/* Messages Body */
.ai-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 340px;
    min-height: 280px;
    background: #f8f9fc;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 5px;
}
.ai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

/* Bubbles */
.ai-bubble-row {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.ai-bubble-row.bot {
    align-self: flex-start;
}

.ai-bubble-row.user {
    align-self: flex-end;
}

.ai-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
}

.ai-bubble-row.bot .ai-bubble {
    background: #ffffff;
    color: #222228;
    border: 1px solid #e2e5ec;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-top-left-radius: 4px;
}

.ai-bubble-row.user .ai-bubble {
    background: linear-gradient(135deg, var(--gold-primary), #c29d27);
    color: #000;
    font-weight: 600;
    border-top-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.ai-timestamp {
    font-size: 0.68rem;
    color: #777;
    margin-top: 4px;
    padding: 0 4px;
}

.ai-bubble-row.user .ai-timestamp {
    align-self: flex-end;
}

/* Mini Vehicle Cards Inside Chat */
.ai-vehicle-mini-card {
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 12px;
    padding: 10px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ai-vehicle-mini-card img {
    width: 65px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.ai-vehicle-mini-info {
    flex: 1;
}

.ai-vehicle-mini-info h5 {
    color: #111;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.ai-vehicle-mini-info span {
    color: #b8860b;
    font-weight: 700;
    font-size: 0.82rem;
}

.ai-vehicle-view-btn {
    background: #18181c;
    border: 1px solid #18181c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-vehicle-view-btn:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #000;
}

/* WhatsApp Hand-off Button inside Chat */
.ai-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.2s;
}

.ai-wa-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Quick Pills */
.ai-chat-quick-pills {
    padding: 10px 14px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-top: 1px solid #e8ebee;
    background: #f1f3f8;
}

.ai-chat-quick-pills::-webkit-scrollbar {
    height: 3px;
}
.ai-chat-quick-pills::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.ai-pill {
    background: #ffffff;
    border: 1px solid #dcdfe6;
    color: #333;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ai-pill:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #000;
}

/* Input Area */
.ai-chat-input-area {
    display: flex;
    padding: 12px 14px;
    background: #ffffff;
    border-top: 1px solid #e8ebee;
    gap: 10px;
}

.ai-chat-input-area input {
    flex: 1;
    background: #f1f3f8;
    border: 1px solid #dcdfe6;
    color: #111;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s;
}

.ai-chat-input-area input:focus {
    border-color: var(--gold-primary);
    background: #ffffff;
}

.ai-chat-input-area button {
    background: var(--gold-primary);
    border: none;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-chat-input-area button:hover {
    transform: scale(1.05);
    background: #e5bd3f;
}

/* Mobile Responsiveness for Chat */
@media (max-width: 480px) {
    .ai-chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 80vh;
        max-height: 80vh;
        border-radius: 20px 20px 0 0;
    }
    .ai-chat-messages {
        max-height: none;
    }
}
