:root {
    --bg-color: #0d0d0d;
    --text-light: #ffffff;
    --accent-red: #ff0000;
    --wa-green: #25D366;
    --border-neon: #a32cc4;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: sans-serif; }

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(0,0,0,0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Limita el tamaño del logo en celulares */
.logo img {
    max-height: 45px; /* Alto máximo para móviles */
    width: auto;      /* Mantiene las proporciones originales para que no se deforme */
    object-fit: contain;
}

/* Lo hace un poco más grande en computadoras */
@media (min-width: 768px) {
    .logo img {
        max-height: 65px; /* Alto máximo para PC */
    }
}

/* Títulos y Secciones */
section { padding: 20px; text-align: center; }
section h2 { margin-bottom: 15px; font-size: 1.2rem; text-align: left; }

/* Carruseles - CSS Scroll Snap */
.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 10px;
    
    scrollbar-width: none; /* Ocultar scrollbar Firefox */
}
.carousel-container::-webkit-scrollbar { display: none; } /* Ocultar scrollbar Chrome */

/* Reemplaza tus reglas actuales de .carousel-item y .carousel-item img con estas: */

.carousel-item {
    scroll-snap-align: center;
    flex: 0 0 80%; /* Ocupa el 80% de la pantalla en móvil */
    position: relative;
    border-radius: 10px;
    cursor: pointer;
    /* NUEVO: Transición suave para que la escala no sea de golpe */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* NUEVO: Efecto Hover (Escala 1.1 y sombra) */
.carousel-item:hover {
    transform: scale(1.02); /* Efecto de crecimiento (zoom) */
    z-index: 20; /* Asegura que la tarjeta sobresalga por encima de las demás al crecer */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9); /* Sombra oscura para dar profundidad */
}

.carousel-item img { 
    width: 100%; 
    display: block; 
    border-radius: 10px; 
    /* NUEVO: Borde blanco profesional */
    border: 2px solid #ffffff; 
    box-sizing: border-box; /* Evita que el borde descuadre el tamaño de la imagen */
}

/* Ícono de Play superpuesto */
.play-overlay {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 3rem;
    pointer-events: none; /* Permite clic en el item */
}

/* Animación Latido de Corazón (Zoom in/out) */
.cta-container { text-align: center; margin: 10px 0; }
/* Opción 1: Resplandor (Shine) */
/* Opción 2: Onda Expansiva (Pulse) */
.btn-latido {
    display: inline-block;
    background-color: var(--accent-red);
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    width: 90%;
    max-width: 400px;
    animation: pulse-ring 2s infinite cubic-bezier(0.66, 0, 0, 1);
    transition: transform 0.2s;
}

.btn-latido:hover {
    transform: scale(1.03);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* Animación de Subida al hacer Scroll */
.scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Botón WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 20px; right: 20px;
    background-color: var(--wa-green);
    color: #fff;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Modal Video */
.modal {
    display: none; position: fixed; z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; max-width: 1200px;
}
.close-modal {
    position: absolute; top: -40px; right: 0;
    color: #fff; font-size: 35px; font-weight: bold; cursor: pointer;
}
.iframe-container {
    position: relative; padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0; overflow: hidden;
}
.iframe-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* style.css (Añadir al final) */

/* Contenedor padre para incluir las flechas */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Botones de navegación (Flechas) */
.nav-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
    display: none; /* Ocultos por defecto (para móviles) */
    align-items: center;
    justify-content: center;
}
.nav-btn:hover {
    background: var(--accent-red);
    transform: scale(1.1);
}
.prev-btn { left: -10px; }
.next-btn { right: -10px; }

/* En pantallas más grandes (Escritorio), mostrar flechas y cambiar el tamaño de las tarjetas */
@media (min-width: 768px) {
    .nav-btn {
        display: flex; /* Mostrar flechas en escritorio */
    }
    
    /* CAMBIAMOS AQUÍ: de 25% (4 por fila) a 33.333% (3 por fila) */
    .carousel-item {
        flex: 0 0 calc(33.333% - 15px); 
    }
    
    /* Separar el carrusel de los botones */
    .carousel-container {
        padding: 0 30px;
    }
}

/* Ajustes específicos para los carruseles pequeños (3 items por fila) */
.carousel-grid-3 .carousel-item {
    flex: 0 0 calc(33.333% - 10px); /* 3 items visibles en móvil */
}

.carousel-grid-3 .carousel-item img {
    background-color: #ffffff; /* Fondo blanco para los logos */
    object-fit: contain; /* Ajusta el logo sin recortarlo */
    aspect-ratio: 1 / 1; /* Lo hace perfectamente cuadrado */
    padding: 8px; /* Espacio interno para que el logo respire */
    border-radius: 10px;
}

/* En PC, mostramos más logos a la vez para aprovechar la pantalla */
@media (min-width: 768px) {
    .carousel-grid-3 .carousel-item {
        flex: 0 0 calc(16.666% - 15px); /* 6 items visibles en PC */
    }
}

/* --- FONDO DE PANTALLA DINÁMICO --- */
#bg-image {
    position: fixed; /* Se queda fijo aunque el usuario haga scroll */
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-size: cover; /* Cubre toda la pantalla */
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.15; /* Nivel de transparencia (15%). Cámbialo si lo quieres más claro u oscuro */
    z-index: -1; /* Lo manda detrás de todo el contenido */
}