/* --- CONFIGURACIÓN BASE --- */
* {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --azul-claro: #00aae4;
    --azul-oscuro: #003366;
    --whatsapp: #25d366;
    --gris: #f4f7f6;
    --texto: #333;
}

body { 
    color: var(--texto); 
    line-height: 1.7; 
}

.container { 
    max-width: 1100px; 
    margin: auto; 
    padding: 0 20px; 
}

/* --- WHATSAPP --- */
.whatsapp-float {
    position: fixed; 
    width: 60px; 
    height: 60px; 
    bottom: 30px; 
    right: 30px;
    background: var(--whatsapp); 
    color: white; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 30px; 
    z-index: 1000; 
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- HERO (VIDEO INMEDIATO) --- */
.hero {
    height: 115vh;
    /* Para que no se vea negro, usamos la misma imagen poster de fondo */
    background-image: url('poster-video.jpg');
    background-size: cover; 
    background-position: center;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    text-align: center;
    padding-top: 2rem; 
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-logo {
    max-width: 800px; 
    width: 95%;      
    margin-bottom: 40px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3)); 
}

.hero h1 { 
    font-size: clamp(3rem, 10vw, 5.5rem); 
    letter-spacing: 8px; 
    font-weight: 700; 
}
.hero p { 
    font-size: 1.4rem; 
    margin-bottom: 35px; 
    opacity: 0.95; 
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5); 
}
.btn-conocenos {
    padding: 18px 50px; 
    background: var(--azul-claro); 
    color: white;
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 4px; 
    transition: 0.3s;
    font-size: 1.1rem;
}
.btn-conocenos:hover { background: white; color: var(--azul-oscuro); }

/* --- CARRUSEL ACTUALIZADO (LOGOS GIGANTES Y A COLOR) --- */
.carousel-container { 
    padding: 80px 0; /* Más espacio arriba y abajo */
    background: white; 
    border-bottom: 1px solid #eee; 
    overflow: hidden; 
}
.carousel-title { 
    text-align: center; 
    font-size: 26px; /* Título más grande */
    letter-spacing: 3px; 
    color: #333; 
    margin-bottom: 40px; 
    font-weight: 700;
}
.slider { width: 100%; overflow: hidden; }
.slide-track { 
    display: flex; 
    /* Ancho: 500px por logo * 18 logos totales */
    width: calc(500px * 18); 
    animation: scroll 35s linear infinite; 
}
.slide { 
    width: 500px; /* Logos mucho más anchos */
    height: 250px; /* Logos mucho más altos */
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 20px;
}
.slide img {
    max-width: 420px; /* Tamaño máximo gigante */
    max-height: 180px; 
    filter: none; /* A COLOR */
    opacity: 1;    /* VISIBILIDAD TOTAL */
    transition: 0.3s;
    object-fit: contain;
}
.slide img:hover { transform: scale(1.15); }

@keyframes scroll { 
    0% { transform: translateX(0); } 
    /* Se mueve la mitad del track (9 logos de 500px) */
    100% { transform: translateX(calc(-500px * 9)); } 
}

/* --- SECCIÓN ACERCA --- */
.acerca { padding: 80px 0; text-align: center; background: var(--azul-oscuro); }
.acerca h2 { 
    font-size: 2.2rem; 
    margin-bottom: 40px; 
    color: white; 
    position: relative; 
}
.acerca h2::after { 
    content: ''; 
    width: 60px; 
    height: 3px; 
    background: var(--azul-claro); 
    position: absolute; 
    bottom: -10px; 
    left: 50%; 
    transform: translateX(-50%); 
}
.acerca-content { max-width: 900px; margin: auto; }
.acerca-content p { margin-bottom: 20px; font-size: 1.1rem; color: #ffffff; }

/* --- PRODUCTOS --- */
.productos { padding: 80px 0; background: var(--gris); text-align: center; }
.bg-white { background: white; }
.tag { 
    color: var(--azul-claro); 
    font-weight: bold; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
}
.productos h2 { margin-bottom: 50px; color: var(--azul-oscuro); font-size: 2rem; }
.grid-productos { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}
.card { 
    background: white; 
    padding: 20px; 
    border-radius: 8px; 
    transition: 0.3s; 
    border: 1px solid #eee; 
}
.card img { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    border-radius: 5px; 
    margin-bottom: 20px; 
}

/* CARD LARGA PARA DISPENSERS */
.card.alt img { 
    height: 450px; 
    object-fit: contain; 
    background: #f9f9f9; 
}

.card h3 { color: var(--azul-oscuro); margin-bottom: 10px; }
.card p { font-size: 0.9rem; color: #666; }
.card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

/* --- ANALISIS --- */
.analisis { padding: 80px 0; background: var(--azul-oscuro); color: white; text-align: center; }
.analisis h2 { margin-bottom: 15px; }
.grid-analisis { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 40px; 
    margin-top: 50px; 
}
.item-analisis { 
    background: rgba(255,255,255,0.05); 
    padding: 40px; 
    border-radius: 10px; 
    width: 350px; 
}
.item-analisis i { font-size: 40px; color: var(--azul-claro); margin-bottom: 20px; }
.btn-descarga { 
    display: inline-block; 
    margin-top: 20px; 
    color: var(--azul-claro); 
    text-decoration: none; 
    border: 1px solid var(--azul-claro); 
    padding: 8px 20px; 
    border-radius: 5px; 
    transition: 0.3s; 
}
.btn-descarga:hover { background: var(--azul-claro); color: white; }

/* --- CONTACTO --- */
.contacto { padding: 80px 0; background: white; }
.contacto-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}
.contacto-info h2 { font-size: 2.5rem; color: var(--azul-oscuro); margin-bottom: 20px; }
.email-directo { 
    margin-top: 20px; 
    font-weight: bold; 
    color: var(--azul-claro); 
    font-size: 1.2rem; 
}
.contacto-form { display: flex; flex-direction: column; gap: 15px; }
.contacto-form input, .contacto-form textarea { 
    padding: 15px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    font-size: 1rem; 
}
.btn-enviar { 
    padding: 15px; 
    background: var(--azul-oscuro); 
    color: white; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.3s; 
}
.btn-enviar:hover { background: var(--azul-claro); }

/* --- FOOTER --- */
footer { padding: 50px 0; background: #001a33; color: white; text-align: center; }
.social-links { margin: 20px 0; }
.social-links a { color: white; margin: 0 15px; font-size: 1.5rem; transition: 0.3s; }
.social-links a:hover { color: var(--azul-claro); }
footer p { font-size: 0.8rem; opacity: 0.6; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .contacto-wrapper { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
    .card.alt img { height: 350px; }
    .hero-logo { max-width: 350px; } 
    .slide { width: 300px; } /* En móvil se achican un poco para que entren bien */
    .slide img { max-width: 220px; }
    .slide-track { width: calc(300px * 18); }
    @keyframes scroll { 
        100% { transform: translateX(calc(-300px * 9)); } 
    }
}