/* ========================================
   OnCar - Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary: #d4ff00;
    --primary-dark: #b8e600;
    --primary-light: #e5ff4d;
    --black: #121212;
    --black-light: #1a1a1a;
    --black-lighter: #242424;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --white: #ffffff;
    --white-off: #f5f5f5;

    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --heading-weight: 500;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(212, 255, 0, 0.3);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--black-lighter);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 5px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: height 0.4s ease, opacity 0.4s ease;
}

.navbar.scrolled .nav-logo img {
    height: 35px;
}

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-phone {
    color: var(--white);
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
}

.btn-whatsapp:hover {
    filter: brightness(0.95);
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--black-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding-top: 24px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1500;
        visibility: hidden;
        opacity: 0;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

    .nav-menu {
        background: linear-gradient(180deg, rgba(10, 10, 10, 0.96) 0%, rgba(18, 18, 18, 0.98) 60%);
        backdrop-filter: blur(8px);
        padding-top: 36px;
        align-items: center;
    }

    .nav-menu .nav-link {
        font-size: 20px;
        letter-spacing: 1px;
        text-transform: uppercase;
        padding: 6px 0;
        color: var(--white);
        display: block;
        transition: color 0.18s ease, transform 0.18s ease;
    }

    .nav-menu .nav-link:hover {
        color: var(--primary);
        transform: translateX(4px);
    }

    .nav-menu .nav-link+.nav-link {
        border-top: none;
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-menu .nav-link.active {
        color: var(--primary);
    }

    .nav-menu .nav-close button {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 10px;
        font-size: 18px;
        padding: 6px;
    }

    .nav-menu .mobile-nav-contact {
        display: none;
    }

    .nav-menu.active {
        animation: menuFadeIn 260ms ease forwards;
    }

    @keyframes menuFadeIn {
        from {
            opacity: 0;
            transform: translateX(100%);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }


    .nav-link {
        font-size: 18px;
    }

    .nav-contact {
        display: none;
    }

    .nav-close {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1600;
        background: transparent;
        border: none;
        color: var(--white);
        font-size: 22px;
        cursor: pointer;
        display: none;
        padding: 6px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        list-style: none;
    }

    .nav-menu .nav-link {
        display: inline-block;
        padding: 18px 0;
        width: 100%;
    }

    .nav-menu .mobile-nav-contact {
        position: absolute;
        bottom: 36px;
        left: 0;
        right: 0;
        display: flex;
        gap: 12px;
        justify-content: center;
        align-items: center;
        padding: 0 20px;
    }

    .nav-menu .mobile-nav-contact .nav-phone {
        color: var(--white);
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .nav-menu .mobile-nav-contact .btn-whatsapp {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

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

    .nav-logo {
        order: 1;
    }

    .nav-center {
        order: 2;
    }

    .nav-toggle {
        order: 3;
        margin-left: auto;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.2px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding-top: 80px;
    background-color: #111;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(18, 18, 18, 0.9) 0%,
            rgba(18, 18, 18, 0.55) 50%,
            rgba(18, 18, 18, 0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    margin: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 92px);
    font-weight: var(--heading-weight);
    line-height: 0.95;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title span {
    color: var(--primary);
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(15px, 1.6vw, 20px);
    color: var(--gray-light);
    margin-bottom: 28px;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

@media (max-width: 900px) {
    .hero-content {
        margin: 0;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 64px);
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: unset;
        height: 100vh;
        padding-top: 80px;
        padding-bottom: 0;
        align-items: center;
        box-sizing: border-box;
    }

    .hero-content {
        margin: 0;
        max-width: 360px;
        padding: 0 16px;
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-title,
    .hero-subtitle {
        text-align: center;
    }

    .hero-buttons {
        align-items: center;
        justify-content: center;
    }

    .whatsapp-float {
        bottom: 90px;
        right: 16px;
        width: 52px;
        height: 52px;
        border-radius: 50%;
    }

    .back-to-top {
        display: block;
        right: 16px;
        bottom: 16px;
    }

    .hero-title {
        font-size: clamp(28px, 9vw, 48px);
    }
}

.hero-scroll a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   Section Styles
   ======================================== */
.vehicle-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.8));
    min-height: 420px;
}

/* Cross-fade slider: stack slides and animate opacity */
.vehicle-slider .slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.vehicle-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 420ms cubic-bezier(.22, .9, .24, 1);
    pointer-events: none;
}

.vehicle-slider .slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.vehicle-slider .slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 30px;
}

.section-tag {
    display: block;
    width: max-content;
    margin: 0 auto 20px auto;
    padding: 8px 22px;
    background: rgba(212, 255, 0, 0.08);
    border: 1px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: var(--heading-weight);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-align: center;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* ========================================
   Proceso de Consignación
   ======================================== */
.consign-process {
    padding: 80px 0;
    background: var(--black);
}

.process-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 40px auto 0;
    position: relative;
    padding-left: 90px;
}

.process-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
}

.process-item::before {
    content: '';
    position: absolute;
    left: 62px;
    top: 0;
    bottom: -0px;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 0;
}

.process-number {
    min-width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
    font-family: var(--font-heading);
}

.process-body h4 {
    margin: 0 0 8px 0;
    font-family: var(--font-heading);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.process-body p {
    margin: 0;
    color: var(--gray-light);
    max-width: 720px;
}

@media (max-width: 900px) {
    .process-list {
        padding-left: 20px;
    }

    .process-item::before {
        left: 36px;
    }

    .process-number {
        min-width: 44px;
        height: 44px;
    }
}

/* ========================================
   FAQ
   ======================================== */
.faq-section {
    padding: 80px 0;
    background: var(--black);
}

.faq-list {
    max-width: 900px;
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 22px 26px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.faq-answer {
    margin: 0;
    color: var(--gray-light);
    line-height: 1.6;
}

/* Accordion behavior */
.faq-card .faq-question {
    cursor: pointer;
}

.faq-card .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease, padding 0.28s ease;
    padding-top: 0;
}

.faq-card.active .faq-answer {
    max-height: 420px;
    padding-top: 10px;
}

/* FAQ icon */
.faq-question {
    position: relative;
    padding-right: 44px;
}

.faq-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--primary);
    transition: transform 0.25s ease;
}

.faq-card.active .faq-icon {
    transform: translateY(-50%) rotate(180deg);
    background: rgba(212, 255, 0, 0.12);
}

@media (max-width: 600px) {
    .faq-card {
        padding: 16px;
    }
}

/* ========================================
   Featured Vehicles
   ======================================== */
.featured-vehicles {
    padding: 100px 0;
    background: var(--black);
}

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

.vehicle-card {
    background: var(--black-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.vehicle-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.1);
}

.vehicle-badges {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.vehicle-badge {
    position: absolute;
    pointer-events: all;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

/* Destacado — top left */
.vehicle-badge.badge-destacado {
    top: 15px;
    left: 15px;
    background: rgba(212, 255, 0, 0.18);
    color: var(--primary);
    border: 1px solid rgba(212, 255, 0, 0.45);
}

/* Tipo — top right */
.vehicle-badge.badge-tipo {
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Nuevo — bottom left */
.vehicle-badge.badge-new {
    bottom: 15px;
    left: 15px;
    background: rgba(0, 200, 83, 0.5);
    color: var(--white);
    border: 1px solid rgba(0, 200, 83, 0.25);
}

/* Oferta — bottom right */
.vehicle-badge.badge-offer {
    bottom: 15px;
    right: 15px;
    background: rgba(255, 82, 82, 0.5);
    color: var(--white);
    border: 1px solid rgba(255, 82, 82, 0.25);
}

/* Vendido — top left */
.vehicle-badge.badge-vendido {
    top: 15px;
    left: 15px;
    background: rgba(180, 180, 180, 0.35);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* Sold notice on single vehicle page */
.vehicle-sold-notice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 82, 82, 0.35);
    border-radius: 12px;
    background: rgba(255, 82, 82, 0.08);
}

.vehicle-sold-message {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vehicle-sold-message i {
    font-size: 2rem;
    color: #ff5252;
    margin-bottom: 0.25rem;
}

.vehicle-sold-message h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff5252;
}

.vehicle-sold-message p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

.vehicle-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gray);
    transition: var(--transition);
}

.vehicle-favorite:hover,
.vehicle-favorite.active {
    color: #ff5252;
    transform: scale(1.1);
}

.vehicle-favorite.active i {
    font-weight: 900;
}

.vehicle-info {
    padding: 20px;
}

.vehicle-brand {
    font-size: 14px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.vehicle-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: var(--heading-weight);
    margin-bottom: 15px;
}

.vehicle-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.vehicle-year {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--primary);
    font-weight: var(--heading-weight);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .vehicle-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

.vehicle-specs {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.vehicle-specs span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-light);
}

.vehicle-specs i {
    color: var(--primary);
    font-size: 13px;
}

.vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--black-lighter);
}

.vehicle-price {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: var(--heading-weight);
    color: var(--primary);
}

.vehicle-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.vehicle-brand-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: var(--heading-weight);
    color: var(--black);
    background: var(--primary);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

/* ========================================
   Related / Similar Vehicles (new, independent styles)
   These classes are standalone and do NOT inherit 'featured' styles
   ======================================== */
.related-vehicles {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(10, 11, 11, 0.95), rgba(24, 28, 29, 0.95));
}

.related-title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 28px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: start;
}

.related-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.related-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #0f0f0f;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-body {
    padding: 18px 16px 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-name {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--white);
    margin: 0;
}

.related-meta {
    color: var(--gray-light);
    font-size: 13px;
}

.related-price {
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary);
}

.related-btn {
    margin-top: 12px;
    align-self: flex-start;
    background: var(--primary-dark);
    color: var(--black);
    padding: 8px 14px;
    border-radius: 8px;
}

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

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-image {
        height: 180px;
    }
}

/* Image zoom overlay */
.image-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 24px;
}

.image-zoom-overlay .zoom-inner {
    max-width: 1200px;
    max-height: 90vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 70vh;
}

.image-zoom-overlay .zoom-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    transition: transform 320ms cubic-bezier(.22, .9, .24, 1), opacity 320ms cubic-bezier(.22, .9, .24, 1);
    transform-origin: center center;
    opacity: 0;
    z-index: 1;
    display: block;
}

.image-zoom-overlay .zoom-image.active {
    opacity: 1;
    z-index: 2;
}

.image-zoom-overlay .zoom-close {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    border: none;
    color: var(--black);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100002;
    translate: 50% -50%;
}

.image-zoom-overlay .zoom-close:hover {
    background: var(--primary-dark);
}

.image-zoom-overlay .zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: var(--black);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100002;
}

.image-zoom-overlay .zoom-nav.prev {
    left: 18px;
}

.image-zoom-overlay .zoom-nav.next {
    right: 18px;
}

.image-zoom-overlay .zoom-nav:hover {
    background: var(--primary-dark);
}

.image-zoom-overlay .zoom-counter {
    position: absolute;
    right: 14px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.45);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    z-index: 100001;
}

.image-zoom-overlay .zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: var(--black);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100002;
}

.image-zoom-overlay .zoom-nav.prev {
    left: 18px;
}

.image-zoom-overlay .zoom-nav.next {
    right: 18px;
}

.image-zoom-overlay .zoom-nav:hover {
    background: var(--primary-dark);
}

/* ========================================
   Benefits Section
   ======================================== */
.benefits {
    padding: 100px 0;
    background: var(--black-light);
}

/* Alternate backgrounds for financiamiento page sections */
.calculator-section {
    padding: 80px 0;
    background: var(--black);
}

.options-section {
    padding: 80px 0;
    background: var(--black-light);
}

.process-section {
    padding: 80px 0;
    background: var(--black);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    background: var(--black);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(212, 255, 0, 0.2);
}

.benefit-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 255, 0, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(212, 255, 0, 0.1);
    border-radius: 50%;
    color: var(--primary);
    font-size: 32px;
}

.benefit-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: var(--heading-weight);
}

.benefit-description {
    font-size: 15px;
    color: var(--gray-light);
    line-height: 1.7;
}

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

    @media (max-width: 900px) {
        .image-zoom-overlay .zoom-inner {
            height: 60vh;
        }
    }

    @media (max-width: 600px) {
        .image-zoom-overlay .zoom-inner {
            height: 50vh;
        }
    }
}

@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   How To Buy (4 steps)
   ======================================== */
.how-to-buy {
    padding: 80px 0;
    background: var(--black);
}

.how-to-buy .choose-header {
    text-align: center;
    background: #163823;
    padding: 40px 20px 28px;
    margin: -80px 0 28px;
    color: var(--white);
}

.how-to-buy .choose-title {
    font-family: var(--font-heading);
    font-size: clamp(34px, 4.5vw, 48px);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.how-to-buy .choose-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
    position: relative;
    margin-top: 40px;
}

.steps-grid::before {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    top: 42px;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    background: var(--primary);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: var(--heading-weight);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin: 12px 0 14px;
    text-transform: uppercase;
    font-weight: var(--heading-weight);
}

.step-desc {
    font-size: 15px;
    color: var(--gray-light);
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.7;
}

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

@media (max-width: 600px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid::before {
        display: none;
    }

    .step-number {
        width: 72px;
        height: 72px;
        font-size: 20px;
    }
}

/* ========================================
   Financing Section
   ======================================== */
.financing {
    padding: 80px 0;
    background: var(--primary);
    color: var(--black);
}

.financing .container {
    max-width: 1200px;
}

.financing-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.financing-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--black);
}

.financing-desc {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.85);
    max-width: 640px;
    margin-bottom: 18px;
}

.financing-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-left: 0;
}

.financing-list li {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    gap: 12px;
}

.financing-list i {
    color: var(--black);
    font-size: 18px;
}

.financing-cta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-dark {
    background: var(--black);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
}

.btn-dark:hover {
    background: #0d0d0d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
    .financing-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .financing-cta {
        justify-content: flex-start;
        width: 100%;
    }
}

/* ========================================
   Options Section (two white cards)
   ======================================== */
.options-section {
    padding: 80px 0;
    background: var(--black);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: start;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: stretch;
}

.options-card {
    background: var(--black-light);
    color: var(--white);
    border-radius: 16px;
    padding: 36px;
    box-shadow: none;
    border: 1px solid var(--black-lighter);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.options-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.options-card p {
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 18px;
}

.options-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
}

.options-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--gray-light);
    margin-bottom: 12px;
}

.options-list i {
    color: var(--primary);
    font-size: 18px;
}

.options-note {
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
    margin-top: 6px;
}

@media (max-width: 992px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CTA Sell Section
   ======================================== */
.cta-sell {
    position: relative;
    padding: 80px 0 100px;
    overflow: visible;
    background: var(--black-light);
    max-width: 100%;
}

.cta-sell--wide .cta-sell-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.cta-sell--wide .cta-sell-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-sell-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cta-sell-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    width: 100%;
    color: var(--white);
}

.cta-sell--wide .cta-sell-content {
    max-width: 1200px;
}

.cta-sell--wide .cta-sell-content {
    text-align: center;
    display: flex;
    justify-content: center;
}

.cta-sell-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.cta-actions {
    margin-top: 22px;
    display: inline-flex;
    gap: 14px;
    align-items: center;
}

.btn-cta {
    background: #25D366;
    color: #fff;
    border-radius: 12px;
    padding: 14px 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.15);
}

.btn-cta:hover {
    filter: brightness(0.95);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 6px 20px;
}

.cta-req h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--white);
}

.cta-req {
    text-align: left;
}

.requirements-list {
    list-style: none;
    margin-top: 18px;
    padding: 0;
}

.requirements-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--gray-light);
    margin-bottom: 12px;
    font-size: 15px;
}

.requirements-list i {
    color: var(--primary);
    font-size: 18px;
}

.cta-help-box {
    background: var(--primary);
    color: var(--black);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-help-box h4 {
    margin: 0 0 8px 0;
    font-family: var(--font-heading);
    font-size: 20px;
    text-transform: uppercase;
}

.cta-help-box p {
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.6;
    margin-bottom: 18px;
}

@media (max-width: 992px) {
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .cta-help-box {
        order: 2;
    }
}

.cta-sell-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.cta-sell-media img {
    width: 100%;
    max-width: 720px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.cta-stats {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: var(--white);
    color: var(--black);
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    width: calc(50% - 40px);
}

.cta-stats-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: var(--heading-weight);
    margin-bottom: 6px;
}

.cta-stats-text {
    font-size: 15px;
    color: var(--gray);
}

@media (max-width: 900px) {
    .cta-stats {
        right: 5%;
        bottom: 20px;
        left: unset;
        width: auto;
    }

    .cta-sell-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-sell-media img {
        max-width: 100%;
    }
}

.cta-sell-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: var(--heading-weight);
    line-height: 48px;
}

.cta-sell-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    line-height: 1.7;
}

.cta-sell-features {
    margin: 20px 0 28px;
    padding-left: 0;
    list-style: none;
}

.cta-sell-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    font-size: 16px;
    justify-content: flex-start;
    text-align: left;
}

.cta-sell-features i {
    color: var(--primary);
    background: rgba(212, 255, 0, 0.08);
    padding: 6px;
    border-radius: 50%;
    font-size: 18px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-sell-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.cta-feature i {
    color: var(--primary);
    font-size: 18px;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: 100px 0;
    background: var(--black);
}

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

.testimonial-card {
    background: var(--black-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 16px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--black);
    font-size: 20px;
}

.testimonial-info strong {
    display: block;
    margin-bottom: 3px;
}

.testimonial-info span {
    font-size: 13px;
    color: var(--gray);
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   404 Page
   ======================================== */
.error-404-section {
    background: var(--black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.error-404-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.error-404-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,255,0,0.07) 0%, transparent 70%);
}

.error-404-content {
    text-align: center;
    padding: 120px 0 100px;
    position: relative;
    z-index: 1;
}

.error-404-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-family: var(--font-heading);
    font-size: clamp(100px, 18vw, 200px);
    font-weight: var(--heading-weight);
    line-height: 1;
    color: var(--white);
    margin-bottom: 32px;
    letter-spacing: -4px;
}

.error-404-zero {
    color: var(--primary);
    display: flex;
    align-items: center;
    font-size: 0.7em;
    padding: 0 8px;
}

.error-404-zero i {
    filter: drop-shadow(0 0 24px rgba(212,255,0,0.5));
}

.error-404-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 38px);
    font-weight: var(--heading-weight);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.error-404-description {
    color: var(--gray-light);
    font-size: 16px;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 40px;
}

.error-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   Legal Pages (Políticas / Términos)
   ======================================== */
.legal-section {
    background: var(--black);
    padding: 80px 0 100px;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-block {
    margin-bottom: 48px;
}

.legal-block h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: var(--heading-weight);
    color: var(--primary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-block p {
    color: var(--gray-light);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-block ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-block ul li {
    color: var(--gray-light);
    font-size: 15px;
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}

.legal-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.legal-updated {
    color: var(--gray-light);
    font-size: 13px;
    opacity: 0.6;
    margin-top: 60px;
    border-top: 1px solid var(--black-lighter);
    padding-top: 20px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--black-light);
    padding: 80px 0 30px;
    border-top: 1px solid var(--black-lighter);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
}

.footer-description {
    color: var(--gray-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: var(--black-lighter);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 18px;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--black);
}

.footer-links h4,
.footer-contact h4,
.footer-hours h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: var(--heading-weight);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-light);
    font-size: 15px;
}

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

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--gray-light);
    font-size: 15px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 3px;
}

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hour-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hour-block:last-child {
    border-bottom: none;
}

.hour-block strong {
    color: var(--gray-light);
    font-size: 14px;
    font-weight: 400;
}

.hour-block span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid var(--black-lighter);
    padding: 30px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: var(--gray);
    font-size: 14px;
}

.footer-legal a:hover {
    color: var(--primary);
}

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 26px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--black);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ======================================== */
/* Page Hero (inventario) */
.page-hero {
    position: relative;
    padding: 90px 0;
    min-height: 320px;
    display: flex;
    align-items: center;
    color: var(--white);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-title,
.page-hero-subtitle,
.section-tag {
    color: var(--white);
}

.page-hero {
    padding: 160px 0 80px;
    background: var(--black-light);
    text-align: center;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.page-hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--gray-light);
}

@media (max-width: 600px) {
    .page-hero {
        padding: 120px 0 60px;
        min-height: 240px;
    }

    .page-hero-title {
        font-size: 28px;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }

    .page-hero-subtitle {
        font-size: 15px;
    }
}

.filters-section {
    padding: 40px 0;
    background: var(--black);
    border-bottom: 1px solid var(--black-lighter);
    position: static;
}

.filters-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.inventory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.inventory-results {
    font-size: 16px;
    color: var(--white);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-controls label {
    font-size: 14px;
    color: var(--gray-light);
}

.sort-controls .filter-select {
    padding: 10px 40px 10px 12px;
    background: var(--black-light);
    border: 1px solid var(--black-lighter);
    color: var(--white);
    border-radius: var(--radius-md);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' 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 10px center;
    background-size: 16px;
}

.inventory-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.paginator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.paginator .page-btn {
    padding: 8px 12px;
    background: var(--black-light);
    color: var(--white);
    border: 1px solid var(--black-lighter);
    border-radius: 6px;
    cursor: pointer;
}

.paginator .page-btn.active {
    background: var(--primary);
    color: var(--black);
    border-color: var(--primary-dark);
}

.paginator .page-btn[disabled] {
    opacity: 0.5;
    cursor: default;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: var(--black-light);
    border: 1px solid var(--black-lighter);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.filter-select {
    padding: 15px 45px 15px 20px;
    background: var(--black-light);
    border: 1px solid var(--black-lighter);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' 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 15px center;
    background-size: 18px;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.inventory-section {
    padding: 60px 0;
}

.inventory-results {
    margin-bottom: 30px;
    color: var(--gray-light);
}

.inventory-results span {
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   Page Specific - Forms
   ======================================== */
.form-section {
    padding: 80px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.form-info {
    padding-right: 40px;
}

.form-info-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.form-info-description {
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 400;
}

.form-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.form-feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 255, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.form-feature-content h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 5px;
}

.form-feature-content p {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-light);
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-cta {
    margin-top: 28px;
    background: var(--primary);
    color: var(--black);
    padding: 26px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-cta h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-cta p {
    color: #0f0f0f;
    margin-bottom: 16px;
}

.btn-whatsapp-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--black);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 500;
}

.map-and-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-map {
    width: 100%;
    min-height: 520px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #e9e9e9;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    filter: grayscale(100%) contrast(0.9);
}

.form-card {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 320px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }
}

.map-full {
    width: 100%;
    height: 560px;
    overflow: hidden;
}

.map-full p,
.map-full div {
    height: 100%;
    margin: 0;
    padding: 0;
}

.map-full iframe {
    width: 100%;
    height: 560px;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .map-full {
        height: 360px;
    }

    .map-full iframe {
        height: 360px;
    }
}

.form-card {
    background: var(--black-light);
    padding: 40px;
    border-radius: var(--radius-lg);
}

/* Right-side CTA under the form */
.form-cta {
    grid-column: 2;
    align-self: start;
    margin-top: 60px;
}

.form-cta-inner {
    background: var(--primary);
    color: var(--black);
    padding: 36px 28px;
    border-radius: 12px;
    text-align: center;
}

.form-cta-inner h3 {
    margin: 0 0 12px 0;
    font-family: var(--font-heading);
    font-size: 28px;
    text-transform: uppercase;
}

.form-cta-inner p {
    margin: 0 0 20px 0;
    color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 992px) {
    .form-cta {
        grid-column: 1;
    }
}

/* ── Cotizar: vehicle card ─────────────────────────────── */
.cotizar-vehicle-card {
    background: var(--black-light);
    border: 1px solid rgba(212, 255, 0, 0.15);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 28px;
}

.cotizar-vehicle-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin: 0 0 14px 0;
    text-transform: uppercase;
}

.cotizar-vehicle-inner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.cotizar-vehicle-img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cotizar-vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cotizar-vehicle-meta {
    font-size: 12px;
    color: var(--gray-light);
    opacity: 0.7;
}

.cotizar-vehicle-name {
    font-family: var(--font-heading);
    font-weight: var(--heading-weight);
    font-size: 20px;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
}

.cotizar-vehicle-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
}

.cotizar-vehicle-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--gray-light);
    opacity: 0.6;
    text-decoration: none;
    transition: opacity var(--transition);
}

.cotizar-vehicle-back:hover {
    opacity: 1;
    color: var(--primary);
}

/* ── Cotizar: form section labels ──────────────────────── */
.cotizar-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gray-light);
    opacity: 0.75;
    text-transform: uppercase;
    margin: 28px 0 18px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

.cotizar-section-title:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.cotizar-field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray-light);
}

/* ── Cotizar: enganche hints ───────────────────────────── */
.cotizar-enganche-hints {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray-light);
    opacity: 0.75;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 15px 20px;
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
}

.form-select {
    padding-right: 48px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' 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 16px center;
    background-size: 18px;
    cursor: pointer;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-info {
        padding-right: 0;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Alternating section backgrounds for visual rhythm */
.cta-sell {
    background: var(--black-light);
}

.benefits {
    background: var(--black);
}

.consign-process {
    background: var(--black-light);
}

.faq-section {
    background: var(--black);
}

.form-section {
    background: var(--black-light);
}

/* ========================================
   Financing Calculator
   ======================================== */
.calculator-section {
    padding: 80px 0;
    background: var(--black-light);
}

.calculator-card {
    background: var(--black);
    padding: 50px;
    border-radius: var(--radius-xl);
    max-width: 800px;
    margin: 0 auto;
}

.calculator-title {
    font-family: var(--font-heading);
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.calculator-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calculator-input-group label {
    font-size: 14px;
    color: var(--gray-light);
}

.calculator-input-group input,
.calculator-input-group select {
    padding: 15px 20px;
    background: var(--black-light);
    border: 1px solid var(--black-lighter);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 18px;
}

.calculator-result {
    background: rgba(212, 255, 0, 0.1);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
}

.calculator-result-label {
    font-size: 16px;
    color: var(--gray-light);
    margin-bottom: 10px;
}

.calculator-result-value {
    font-family: var(--font-heading);
    font-size: 56px;
    color: var(--primary);
}

@media (max-width: 600px) {
    .calculator-inputs {
        grid-template-columns: 1fr;
    }

    .calculator-card {
        padding: 30px 20px;
    }
}

/* ========================================
   Contact Page
   ======================================== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.contact-info-card {
    background: var(--black-light);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    border: 1px solid var(--primary);
}

.contact-info-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(212, 255, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 28px;
}

.contact-info-title {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-info-text {
    color: var(--gray-light);
    font-size: 15px;
    line-height: 1.6;
}

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

@media (max-width: 600px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

.map-container {
    height: 400px;
    background: var(--black-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 80px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.faq-section {
    padding: 80px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--black-light);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 30px 25px;
    color: var(--gray-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

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

.mb-0 {
    margin-bottom: 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.pt-100 {
    padding-top: 100px;
}

.pb-100 {
    padding-bottom: 100px;
}

/* ========================================
   Animations
   ======================================== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--black-lighter);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

::selection {
    background: var(--primary);
    color: var(--black);
}

/* Floating WhatsApp button with pulse */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.18);
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-float i {
    font-size: 22px;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.22);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.28);
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.95;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 0.18;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
}

/* ========================================
   Process / Timeline Section
   ======================================== */
.process-section {
    padding: 80px 0;
    background: var(--black);
}

.process-grid {
    display: flex;
    justify-content: center;
}

.process-list {
    width: 720px;
    max-width: 100%;
    position: relative;
    padding-left: 80px;
}

.process-list::before {
    content: '';
    position: absolute;
    left: 48px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 0;
}

.process-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
}

.process-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--black);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    position: relative;
    z-index: 3;
}

.process-item::before {
    content: '';
    position: absolute;
    left: 64px;
    top: 18px;
    height: 10px;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 1;
}

.process-content h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.process-content p {
    margin: 0;
    color: var(--gray-light);
    line-height: 1.7;
}

@media (max-width: 992px) {
    .process-list {
        padding-left: 60px;
    }

    .process-number {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 600px) {
    .process-list {
        padding-left: 40px;
    }

    .process-number {
        width: 40px;
        height: 40px;
    }
}

/* Inventory page - mobile tweaks */
@media (max-width: 600px) {
    .filters-container {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .search-box {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    .search-box input {
        padding: 12px 14px 12px 44px;
        font-size: 14px;
    }

    .filter-select {
        width: 100%;
        padding: 12px 40px 12px 16px;
        font-size: 14px;
    }

    .inventory-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
    }

    .inventory-results {
        font-size: 14px;
        color: var(--gray-light);
        text-align: center;
        margin-bottom: 0;
    }

    .sort-controls {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .sort-controls label {
        display: none;
        /* reduce clutter on small screens */
    }

    .sort-controls .filter-select {
        max-width: 320px;
        width: 100%;
    }

    .inventory-footer {
        justify-content: center;
    }
}

/* ========================================
   Vehicle Detail Styles
   ======================================== */
.vehicle-detail {
    padding: 60px 0 100px;
    background: var(--black);
    overflow-x: hidden;
}

.back-to-inventory {
    margin-bottom: 32px;
}

.btn-back-inventory {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-back-inventory i {
    font-size: 12px;
    transition: transform 0.2s;
}

.btn-back-inventory:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(212, 255, 0, 0.06);
}

.btn-back-inventory:hover i {
    transform: translateX(-3px);
}

.vehicle-detail-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 48px;
    align-items: start;
    max-width: 1440px;
    margin: 0 auto;
}

.vehicle-gallery .vehicle-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.8));
    padding: 18px;
    box-shadow: var(--shadow-lg);
}

.vehicle-gallery .vehicle-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

/* Slider styles */
.vehicle-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.8));
}

.vehicle-slider .slides {
    display: flex;
    transition: transform 0.45s cubic-bezier(.22, .9, .24, 1);
    will-change: transform;
    transform-style: preserve-3d;
}


.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
}

.slider-btn.prev {
    left: 12px;
}

.slider-btn.next {
    right: 12px;
}

.slider-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    display: flex;
    gap: 8px;
    z-index: 7;
}

.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
}

.slider-dots button.active {
    background: var(--primary);
    box-shadow: var(--shadow-glow);
}

.vehicle-slider .slide {
    min-width: 100%;
    flex-shrink: 0;
    display: block;
}

.vehicle-slider .slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    backface-visibility: hidden;
}

@media (max-width: 900px) {
    .vehicle-slider {
        min-height: 320px;
    }

    .vehicle-slider .slide img {
        height: 320px;
    }
}

@media (max-width: 600px) {
    .vehicle-slider {
        min-height: 220px;
    }

    .vehicle-slider .slide img {
        height: 220px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }
}


.vehicle-detail .image-count {
    position: absolute;
    right: 18px;
    bottom: 14px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
}

.vehicle-detail .vehicle-details {
    color: var(--white);
}

.vehicle-detail .vehicle-name {
    font-family: var(--font-heading);
    font-size: 42px;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vehicle-detail .vehicle-meta {
    color: var(--gray-light);
    margin-bottom: 12px;
}

.vehicle-detail .vehicle-price {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 32px;
    margin: 6px 0 18px 0;
}

.vehicle-detail .vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.vehicle-specs-card {
    background: var(--black-light);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 0 12px rgba(212, 255, 0, 0.08);
}

.vehicle-specs-card small {
    display: block;
    color: var(--gray-light);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.vehicle-specs-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
}

.equipment-title {
    margin-top: 8px;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

.equipment-grid {
    display: flex;
    gap: 36px;
    margin-bottom: 20px;
}

.equipment-grid ul {
    padding: 0;
    margin: 0;
}

.equipment-grid li {
    list-style: none;
    color: var(--gray-light);
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.equipment-grid i {
    color: var(--primary);
    background: rgba(212, 255, 0, 0.06);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.vehicle-actions {
    display: flex;
    gap: 16px;
    margin-top: 18px;
}

.vehicle-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    font-size: 14px;
    white-space: nowrap;
}

.vehicle-note {
    margin-top: 20px;
    background: var(--black-light);
    padding: 16px;
    border-radius: 10px;
    color: var(--gray-light);
}

@media (max-width: 992px) {
    .vehicle-detail-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .equipment-grid {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .vehicle-detail .vehicle-name {
        font-size: 26px;
    }

    .vehicle-detail .vehicle-price {
        font-size: 22px;
    }

    .vehicle-detail .vehicle-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vehicle-actions {
        flex-wrap: wrap;
    }

    .vehicle-actions .btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
        font-size: 13px;
        padding: 10px 10px;
    }

    .vehicle-actions .btn:first-child {
        flex: 1 1 100%;
    }

    .back-to-inventory {
        margin-bottom: 20px;
    }
}

/* ========================================
   SweetAlert2 - Theme integration
   Overrides default SweetAlert2 styles to match OnCar theme
   ======================================== */
.swal2-popup {
    background: linear-gradient(180deg, var(--black-light), var(--black-lighter));
    color: var(--white);
    font-family: var(--font-body);
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.swal2-title {
    font-family: var(--font-heading) !important;
    color: var(--white) !important;
    font-size: 20px !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.6px;
}

.swal2-html-container,
.swal2-content {
    color: var(--gray-light) !important;
    font-size: 14px !important;
}

.swal2-icon {
    border: 6px solid rgba(255, 255, 255, 0.06) !important;
}

.swal2-icon .swal2-success-circular-line,
.swal2-icon .swal2-success-ring,
.swal2-icon.swal2-success .swal2-success-fix {
    background: transparent !important;
}

.swal2-actions {
    margin-top: 18px !important;
}

.swal2-styled:focus {
    box-shadow: 0 0 0 6px rgba(212, 255, 0, 0.12) !important;
}

.swal2-confirm {
    background: var(--primary) !important;
    color: var(--black) !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
}

.swal2-confirm:hover {
    background: var(--primary-dark) !important;
}

.swal2-cancel {
    background: transparent !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm) !important;
}

/* Make loading spinner use primary color */
.swal2-loading {
    color: var(--primary) !important;
}

@media (max-width: 600px) {
    .swal2-popup {
        width: calc(100% - 40px) !important;
        padding: 20px !important;
    }
}

/* reCAPTCHA v3 badge — mover a la izquierda */
.grecaptcha-badge {
    left: 14px !important;
    right: auto !important;
    width: 70px !important;
    overflow: hidden !important;
    transition: width 0.3s ease !important;
}

.grecaptcha-badge:hover {
    width: 256px !important;
}