:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --font-primary: 'Poppins', sans-serif;
}

/* Base & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

main {
    width: 100%;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

h1, h2, h3 {
    font-weight: 600;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--dark-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Header & Navigation */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
}

.header-white {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.header-white .nav-links a {
    color: var(--dark-color);
}

.nav-links a:hover,
.header-white .nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #fff;
}

.header-white .menu-toggle {
    color: var(--dark-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Vehiculos Section (index.html) */
.vehiculos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vehiculo-card {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--dark-color);
}

.vehiculo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.vehiculo-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* FLOTA PAGE STYLES (para sedan.html y 4x4.html) */
.flota-main .vehiculos-grid {
    display: grid;
    gap: 30px;
}

.vehiculo-card.full-details {
    display: flex;
    flex-direction: column;
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--dark-color);
}

.vehiculo-card.full-details:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.vehiculo-card.full-details img {
    width: 100%;
    height: 250px; /* Altura fija para la imagen */
    object-fit: cover; /* Clave para que la imagen abarque el contenedor */
    display: block;
}

.card-content {
    padding: 20px;
    text-align: left;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.price span {
    font-size: 1em;
}

.specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.9em;
    color: var(--secondary-color);
}

.specs ul {
    list-style: none;
    padding: 0;
    flex: 1;
    min-width: 150px;
}

.specs li {
    margin-bottom: 8px;
}

.specs i {
    color: var(--primary-color);
    margin-right: 5px;
}

.specs span {
    color: var(--dark-color);
    font-weight: 600;
}

.vehicle-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Proceso Section */
.proceso-section {
    background-color: var(--light-color);
}

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.proceso-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-top: 5px solid var(--primary-color);
}

.proceso-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.proceso-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.proceso-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.proceso-card h3 span {
    display: block;
    font-size: 0.8em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-block {
    margin: 20px;
    flex: 1;
    min-width: 250px;
}

.footer-block h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-block p {
    color: #ccc;
}

.footer-block i {
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--light-color);
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    position: relative;
    animation: fadeIn 0.5s ease-out;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--dark-color);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding-top: 10px;
}

.gallery-container img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 5px;
}

/* No scroll body when modal is open */
body.no-scroll {
    overflow: hidden;
}

/* Media Queries para diseño responsive */
@media (min-width: 768px) {
    .vehiculos-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    .flota-main .vehiculos-grid {
        grid-template-columns: 1fr;
    }
    .vehiculo-card.full-details {
        flex-direction: row;
        text-align: left;
    }
    .vehiculo-card.full-details img {
        width: 40%;
        height: 300px;
    }
    .card-content {
        width: 60%;
        padding: 30px;
    }
}




/* Media Queries para diseño responsive */
@media (max-width: 768px) {
    /* Header y Navegación */
    .navbar {
        position: relative;
    }
    
    .logo-img {
        height: 90px; /* Reduce el tamaño del logo en móviles */
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .nav-links a {
        color: var(--dark-color) !important;
        font-size: 1.1rem;
        padding: 10px 20px;
        display: block;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    /* Asegurar que el header sea visible */
    .header-white {
        background-color: #fff;
        position: relative;
    }
    
    /* Ajustes para las tarjetas de vehículos en móviles */
    .vehiculo-card.full-details {
        flex-direction: column;
    }
    
    .vehiculo-card.full-details img {
        width: 100%;
        height: 200px;
    }
    
    .card-content {
        width: 100%;
        padding: 20px;
    }
    
    .vehicle-actions {
        flex-direction: column;
    }
    
    .vehicle-actions .btn {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 60px; /* Logo aún más pequeño en pantallas muy pequeñas */
    }
    
    .section-title-oldies {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}



/* Agregar al final de style.css */
body.no-scroll {
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal {
    animation: fadeIn 0.3s ease-out;
}




.container-360-button {
    text-align: center; /* Centra el contenido horizontalmente */
    margin: 20px auto; /* Agrega margen superior e inferior y centra el bloque */
}

/* Estilos para el botón */
.btn.btn-small {
    /* ... (mantener estilos existentes) ... */
    padding: 12px 24px; /* Aumentar el relleno para hacerlo más grande */
    border-radius: 50px; /* Bordes más redondeados (estilo "píldora") */
    font-weight: 600; /* Hace el texto más negrito */
    text-transform: uppercase; /* Convierte el texto a mayúsculas */
    letter-spacing: 1px; /* Espaciado entre letras */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Transiciones suaves para efectos hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para dar profundidad */
    background-color: #1272df; /* Un color de acento, puede cambiarlo */
    color: #ffffff; /* Color del texto */
    text-decoration: none; /* Elimina el subrayado */
    display: inline-block; /* Asegura que se comporte correctamente con el text-align */
}

.btn.btn-small:hover {
    background-color: #5498f1; /* Color más oscuro al pasar el cursor */
    transform: translateY(-2px); /* Un pequeño efecto de elevación */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Sombra más grande al pasar el cursor */
}


.nav-links {
    display: flex;
    align-items: center; /* Para centrar la bandera verticalmente */
}

.language-switcher {
    margin-left: 20px; /* Espacio entre los enlaces y la bandera */
}

.flag-icon {
    width: 30px; /* Tamaño de la bandera en escritorio */
    height: auto;
    border-radius: 5px; /* Bordes redondeados para un mejor aspecto */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Media query para ajustar la bandera en dispositivos móviles */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column; /* Apila los enlaces en columnas en móviles */
        align-items: flex-start;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 10px; /* Espacio entre la bandera y el último enlace */
        
    }

    .flag-icon {
        width: 25px; /* Un poco más pequeña en móviles */
        align-items: center;
    }
}