/* ========================================
   VARIABLES Y RESET
   ======================================== */
:root {
    --primary-color: #d32f2f;
    --secondary-color: #1976d2;
    --dark-color: #212121;
    --light-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================================
   UTILIDADES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* ========================================
   BOTONES
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========================================
   HEADER Y NAVEGACIÓN
   ======================================== */
.header {
    background: var(--dark-color);
    color: white;
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    padding: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1;
}

.logo .slogan {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu li a {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
}

.admin-link {
    background: rgba(211, 47, 47, 0.2);
    border-radius: 5px;
    padding: 8px 15px !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/hero-bg.jpg') center/cover;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-banner {
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('../images/banner-hero.jpg') center/cover;
    background-color: #333;
    position: relative;
}

.banner-logo {
    position: absolute;
    top: 20px;
    left: 30px;
    width: 120px;
    height: auto;
    opacity: 0.6;
    border-radius: 10px;
    z-index: 10;
    transition: opacity 0.3s;
}

.banner-logo:hover {
    opacity: 0.9;
}

.hero-banner .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 500px;
    text-align: left;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.banner-subtitle {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    max-width: 600px;
}

.hero-banner .btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .hero-banner {
        height: 450px;
    }
    
    .banner-logo {
        width: 80px;
        top: 10px;
        left: 15px;
    }
}

.hero-overlay {
    width: 100%;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ========================================
   SECTIONS
   ======================================== */
.featured-cars,
.catalog-section,
.about-section,
.contact-section {
    padding: 80px 0;
}

.why-us {
    padding: 80px 0;
    background: var(--light-color);
}

/* ========================================
   GRID DE AUTOS
   ======================================== */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.car-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.car-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.car-card:hover .car-image img {
    transform: scale(1.1);
}

.car-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.status-disponible {
    background: var(--success-color);
}

.status-vendido {
    background: var(--danger-color);
}

.status-reservado {
    background: var(--warning-color);
}

.car-info {
    padding: 20px;
}

.car-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.car-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #666;
}

.car-detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.car-detail-item i {
    color: var(--primary-color);
}

.car-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

.car-actions {
    display: flex;
    gap: 10px;
}

.car-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}

/* ========================================
   FEATURES
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('../images/page-header-bg.jpg') center/cover;
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* ========================================
   FILTROS
   ======================================== */
.filters-section {
    padding: 30px 0;
    background: var(--light-color);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.catalog-info {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* ========================================
   DETALLE DEL VEHÍCULO
   ======================================== */
.vehicle-detail {
    padding: 50px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
    transition: gap 0.3s;
}

.back-link:hover {
    gap: 15px;
}

.vehicle-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.vehicle-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-video {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-video .video-thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: white;
}

.thumbnail-video .video-thumbnail i {
    font-size: 2rem;
}

.thumbnail-video .video-thumbnail span {
    font-size: 0.75rem;
    font-weight: 600;
}

.thumbnail-video:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
}

.youtube-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.youtube-container iframe {
    display: block;
}

.vehicle-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.vehicle-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 30px;
    background: var(--light-color);
    border-radius: 10px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    width: 30px;
}

.spec-item strong {
    display: block;
    margin-bottom: 2px;
}

.vehicle-description {
    margin: 30px 0;
}

.vehicle-description h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.vehicle-features {
    margin: 30px 0;
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
}

.vehicle-features h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.features-list li {
    padding: 12px 15px;
    background: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.features-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.features-list i {
    color: var(--success-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ========================================
   VEHICLE CONTACT ACTIONS (dentro de info)
   ======================================== */
.vehicle-contact-actions {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.vehicle-contact-actions h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.vehicle-contact-actions p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-contact {
    flex: 1;
    min-width: 180px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid white;
}

.btn-contact.btn-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-contact.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-contact.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-contact.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   CONTACT CTA
   ======================================== */
.contact-cta {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    background: white;
    color: var(--dark-color);
}

.cta-buttons .btn:hover {
    background: var(--light-color);
}

/* ========================================
   MODAL DE IMAGEN
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.modal-nav-btn {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.modal-nav-btn:hover {
    background: rgba(255,255,255,0.5);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.about-text h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
}

.about-text h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.values-section {
    margin: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.value-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.why-choose-section {
    margin-top: 60px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--success-color);
    margin-top: 5px;
}

.feature-item h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.cta-section {
    background: var(--dark-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-details {
    margin: 40px 0;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.social-contact {
    margin-top: 40px;
}

.social-links-large {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.facebook {
    background: #1877f2;
    color: white;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-btn.whatsapp {
    background: #25d366;
    color: white;
}

.contact-form-wrapper h2 {
    margin-bottom: 30px;
    color: var(--dark-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-message {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    display: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    display: block;
}

.map-section {
    padding: 60px 0;
    background: var(--light-color);
}

.map-placeholder {
    background: white;
    padding: 60px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 10px;
    color: #999;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #999;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-color);
        flex-direction: column;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding: 20px;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .catalog-section {
        padding: 40px 0;
    }

    .catalog-info {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .car-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .car-details {
        font-size: 0.85rem;
        gap: 8px;
    }

    .car-detail-item {
        font-size: 0.85rem;
    }

    .car-actions {
        padding: 15px;
    }

    .car-actions .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .filters {
        flex-direction: column;
        gap: 15px;
    }

    .filter-group {
        min-width: 100%;
    }

    .filters-section {
        padding: 20px 0;
    }

    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .vehicle-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .vehicle-gallery {
        position: static;
    }

    .vehicle-specs {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}


/* ========================================
   WHATSAPP FLOTANTE
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   TOASTS / NOTIFICACIONES
   ======================================== */
.toast {
    position: fixed;
    top: -100px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
    border-left: 4px solid var(--primary-color);
}

.toast.show {
    top: 20px;
    animation: slideIn 0.3s ease;
}

.toast-success { border-left-color: var(--success-color); }
.toast-success::before { content: '?'; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--success-color); color: white; border-radius: 50%; font-weight: bold; flex-shrink: 0; }

.toast-error { border-left-color: var(--danger-color); }
.toast-error::before { content: '?'; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--danger-color); color: white; border-radius: 50%; font-weight: bold; flex-shrink: 0; }

.toast-info { border-left-color: var(--secondary-color); }
.toast-info::before { content: 'i'; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--secondary-color); color: white; border-radius: 50%; font-weight: bold; flex-shrink: 0; }

.toast-warning { border-left-color: var(--warning-color); }
.toast-warning::before { content: '!'; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--warning-color); color: white; border-radius: 50%; font-weight: bold; flex-shrink: 0; }

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========================================
   BOT�N COMPARTIR WHATSAPP
   ======================================== */
.share-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.share-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* ========================================
   BOT�N SCROLL TO TOP
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.scroll-top.show {
    display: flex;
}

.scroll-top:hover {
    background: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    /* Ocultar elementos de carga/puntos rojos */
    .hero::before,
    .hero::after,
    .hero-overlay::before,
    .hero-overlay::after,
    .loading-dots,
    [class*="dot"]:not(.car-detail-item),
    [class*="loader"]:not(.toast) {
        display: none !important;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo .slogan {
        font-size: 0.7rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
    
    .scroll-top {
        bottom: 85px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* ========================================
   TESTIMONIOS
   ======================================== */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.testimonials-section .section-title {
    color: white;
    margin-bottom: 10px;
}

.testimonials-section .section-title::after {
    background: white;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
}

.testimonials-slider {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonials-wrapper {
    display: flex;
    gap: 30px;
    align-items: stretch;
    justify-content: center;
    min-height: 400px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    flex: 0 0 calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    color: var(--text-color);
}

.testimonial-card.active {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 15px;
    left: 25px;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 10;
}

.testimonial-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav-btn.prev {
    left: 0;
}

.testimonial-nav-btn.next {
    right: 0;
}

.no-testimonials {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 20px;
}

@media (max-width: 992px) {
    .testimonials-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .testimonial-card {
        flex: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .testimonial-card:not(.active) {
        display: none;
    }

    .testimonials-slider {
        padding: 0 40px;
    }

    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-image {
        width: 80px;
        height: 80px;
    }

    .testimonials-slider {
        padding: 0 30px;
    }
}
