/* ========================================
   AUTOS CAVAZOS - ESTILOS PRINCIPALES
   Tema: Rojo y Blanco - Elegante y Corporativo
   ======================================== */

/* === VARIABLES Y RESET === */
:root {
    --primary-red: #C8102E;
    --dark-red: #9D0D27;
    --light-red: #E6173F;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --gray: #6C757D;
    --dark-gray: #343A40;
    --black: #1A1A1A;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

/* === ANIMACIONES === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.6s forwards;
    opacity: 0;
}

/* === NAVEGACIÓN === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-red);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--dark-gray);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-red);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
}

/* === BOTONES === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--light-red), var(--primary-red));
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary-outline:hover {
    background: var(--primary-red);
    color: var(--white);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-reset-filters {
    padding: 10px 20px;
    background: var(--light-gray);
    color: var(--dark-gray);
    border-radius: 6px;
    font-weight: 500;
}

.btn-reset-filters:hover {
    background: var(--gray);
    color: var(--white);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red));
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(157, 13, 39, 0.75), rgba(200, 16, 46, 0.65));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

/* Buscador del Hero */
.hero-search-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    max-width: 1100px;
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-search-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.hero-search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-search-field label {
    font-weight: 600;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.hero-search-field label i {
    color: var(--primary-red);
}

.hero-search-select,
.hero-search-input {
    padding: 12px 14px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--white);
    transition: var(--transition);
    color: var(--black);
}

.hero-search-select:focus,
.hero-search-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.hero-search-input::placeholder {
    color: var(--gray);
}

.hero-search-btn {
    padding: 14px 28px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.hero-search-btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 2rem;
    color: var(--white);
    animation: float 2s ease-in-out infinite;
    cursor: pointer;
}

/* === SECCIONES === */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--black);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red));
    border-radius: 2px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--white);
}

/* === MARCAS === */
.brands-section {
    background: var(--off-white);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.brand-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.brand-card img {
    height: 80px;
    width: auto;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.brand-card h3 {
    font-size: 1.2rem;
    color: var(--dark-gray);
}

.brand-placeholder {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-red);
    margin: 0 auto 1rem;
}

.loading-brands {
    text-align: center;
    padding: 3rem;
    color: var(--medium-gray);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.loading-brands i {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--accent-red);
}

/* === SOBRE NOSOTROS === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.about-text {
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-red);
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.feature-item p {
    color: var(--gray);
}

/* === ESTADÍSTICAS === */
.stats-section {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-card {
    text-align: center;
}

.stat-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* === CONTACTO === */
.contact-section {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-red);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.contact-item p {
    color: var(--gray);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--dark-red);
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

/* === CATÁLOGO === */
.catalog-header,
.history-header {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    text-align: center;
    padding: 120px 20px 60px;
}

.filters-section,
.history-filters-section {
    background: var(--white);
    padding: 2rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
    z-index: 100;
}

/* Toggle para filtros en móvil */
.filters-toggle {
    display: none;
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-red);
    color: var(--white);
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 1rem;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.filters-toggle i {
    transition: var(--transition);
}

.filters-toggle.active i {
    transform: rotate(180deg);
}

.filters-container,
.history-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-select {
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    color: var(--gray);
    transition: var(--transition);
}

.view-btn.active,
.view-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: var(--off-white);
}

/* === GRID DE VEHÍCULOS === */
.catalog-section,
.history-section {
    min-height: 500px;
}

.vehicles-grid,
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.vehicle-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.vehicle-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.vehicle-card:hover .vehicle-card-image img {
    transform: scale(1.1);
}

.vehicle-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-red);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

.vehicle-badge.sold {
    background: var(--gray);
}

.vehicle-card-content {
    padding: 1.5rem;
}

.vehicle-brand {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.vehicle-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black);
}

.vehicle-specs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.vehicle-specs span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.vehicle-price-tag {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.vehicle-card-footer {
    display: flex;
    gap: 0.75rem;
}

.vehicle-card-footer .btn {
    flex: 1;
    justify-content: center;
    padding: 10px;
    font-size: 0.9rem;
}

/* === DETALLE DE VEHÍCULO === */
.breadcrumb {
    background: var(--off-white);
    padding: 100px 20px 20px;
}

.breadcrumb a {
    color: var(--gray);
}

.breadcrumb a:hover {
    color: var(--primary-red);
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: var(--gray);
}

.vehicle-detail-section {
    padding: 3rem 0;
}

.vehicle-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.vehicle-gallery {
    position: sticky;
    top: 120px;
    align-self: start;
}

.main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/10;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-red);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-nav:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.thumbnail {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.thumbnail.active {
    border-color: var(--primary-red);
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vehicle-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vehicle-status {
    display: inline-block;
    width: fit-content;
    padding: 6px 14px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.vehicle-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
}

.vehicle-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
}

.vehicle-price {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: 12px;
}

.price-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.vehicle-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--off-white);
    border-radius: 10px;
}

.highlight-item i {
    font-size: 1.8rem;
    color: var(--primary-red);
}

.highlight-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
}

.highlight-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.vehicle-description {
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: 12px;
}

.vehicle-description h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vehicle-description p {
    color: var(--gray);
    line-height: 1.8;
}

/* === ESPECIFICACIONES === */
.vehicle-specs-section {
    margin-top: 4rem;
}

.specs-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.spec-tab {
    padding: 12px 24px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-weight: 600;
    color: var(--gray);
    background: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.spec-tab:hover,
.spec-tab.active {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: var(--off-white);
}

.spec-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.spec-panel.active {
    display: block;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: 10px;
    transition: var(--transition);
}

.spec-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.spec-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    flex-shrink: 0;
}

.spec-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.spec-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
}

/* === HISTORIAL === */
.sales-stats-section {
    background: var(--off-white);
    padding: 3rem 0;
}

.sales-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.sales-stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.sales-stat-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.history-card {
    position: relative;
    opacity: 0.95;
}

.history-card::before {
    content: 'VENDIDO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
    pointer-events: none;
}

.history-card:hover::before {
    opacity: 0.3;
}

/* === TESTIMONIOS === */
.testimonials-section {
    background: var(--off-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-text {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red));
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* === WHATSAPP FLOTANTE === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* === LOADING === */
.loading-spinner {
    text-align: center;
    padding: 4rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-results {
    text-align: center;
    padding: 4rem 0;
    color: var(--gray);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* === FOOTER === */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* === ABOUT SECTION === */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    width: 100%;
    max-width: 100%;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(200, 16, 46, 0.2);
}

.about-image img,
.about-image video {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    background: var(--black);
}

.about-video {
    background: var(--black);
}

.about-content {
    width: 100%;
}

.about-content .section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--primary-red);
    font-weight: 600;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.feature-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--primary-red);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.5;
}

.about-cta {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border-radius: 15px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.8;
    box-shadow: var(--shadow-lg);
}

/* === VIDEO PROMOCIONAL === */
.video-promo-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.video-promo-section .section-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5rem;
    color: var(--black);
}

.video-promo-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 50px;
}

.video-promo-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--black);
    position: relative;
    aspect-ratio: 16/9;
}

.promo-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.promo-video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

@media (max-width: 768px) {
    .video-promo-section {
        padding: 60px 0;
    }

    .video-promo-section .section-title {
        font-size: 2rem;
    }

    .video-promo-container {
        border-radius: 15px;
    }
}

/* === PROCESO DE COMPRA === */
.proceso-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.proceso-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(200, 16, 46, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.proceso-section .section-title {
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 60px;
}

.proceso-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.proceso-timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-red) 0%, 
        var(--primary-red) 25%, 
        var(--light-gray) 25%, 
        var(--light-gray) 50%, 
        var(--light-gray) 50%, 
        var(--light-gray) 75%, 
        var(--light-gray) 75%, 
        var(--light-gray) 100%
    );
    z-index: 0;
}

.proceso-step {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.proceso-step:nth-child(1) { animation-delay: 0.1s; }
.proceso-step:nth-child(2) { animation-delay: 0.2s; }
.proceso-step:nth-child(3) { animation-delay: 0.3s; }
.proceso-step:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.3);
    transition: var(--transition);
}

.proceso-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(200, 16, 46, 0.4);
}

.step-icon i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--primary-red);
}

.step-content {
    text-align: center;
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 12px;
    font-weight: 600;
}

.step-content p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-grid,
    .contact-grid,
    .vehicle-detail-grid {
        grid-template-columns: 1fr;
    }
    
    /* Filtros colapsables en móvil */
    .filters-section,
    .history-filters-section {
        position: relative;
        top: 0;
    }
    
    .filters-toggle {
        display: flex;
    }
    
    .filters-container,
    .history-filters {
        grid-template-columns: 1fr;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .filters-container.show,
    .history-filters.show {
        max-height: 1000px;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Galería no sticky en móvil */
    .vehicle-gallery {
        position: relative;
        top: 0;
    }
    
    .vehicle-highlights {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .specs-tabs {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 640px) {
    .hero-search-container {
        padding: 1.25rem;
        width: 95%;
        bottom: 20px;
    }
    
    .hero-search-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-search-fields {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .hero-search-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .vehicle-title {
        font-size: 1.8rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    /* About Section Responsive */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .about-content .section-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .about-cta {
        font-size: 1rem;
        padding: 20px;
    }
    
    /* Proceso Section Responsive */
    .proceso-timeline {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .proceso-timeline::before {
        display: none;
    }
    
    .step-icon {
        width: 100px;
        height: 100px;
    }
    
    .step-icon i {
        font-size: 2rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
}
