

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    /* Imagen de fondo: Interior Mercedes Premium (Local) */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/Mercedes_Interior.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Efecto Glassmorphism (Cristal) */
.glass-card {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.glass-nav {
    background: rgba(0, 0, 0, 0.4); /* Inicio más transparente */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.4s ease; /* Transición suave */
}

.scrolled-nav {
    background: rgba(0, 0, 0, 0.95); /* Más oscuro al bajar */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Animaciones */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos para Modales (Pop-ups) */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    padding-top: 60px;
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    color: #ddd;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}



/* --- Estilos para la sección Vehículo (Marcos Ajustados) --- */

/* Marco para la imagen grande superior */
.vehicle-frame-large {
    width: 100%;
    height: 220px; /* Altura en móvil un poco más contenida */
}

/* Marco para las imágenes pequeñas inferiores */
.vehicle-frame-small {
    width: 100%;
    height: 200px; /* Altura estándar para las de abajo */
}

/* Ajustes para pantallas medianas y grandes (Desktop) */
@media (min-width: 768px) {
    .vehicle-frame-large {
        /* AQUÍ ESTÁ EL CAMBIO: Bajamos de 420px a 300px */
        height: 300px; 
    }
    .vehicle-frame-small {
        height: 250px;
    }
}

/* Clase común para que la imagen rellene el marco sin estirarse */
.vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta y centra la imagen */
    object-position: center center; /* Asegura que se vea el centro del coche */
    display: block;
}

