/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #000000; /* Negro Premium */
    --accent-color: #0056b3; /* Azul Tecnológico Oscuro */
    --accent-hover: #004494;
    --text-dark: #333333;
    --text-light: #666666;
    --text-gray: #cccccc;
    --bg-light: #f9f9f9;
    --bg-dark: #1a1a1a;
    --bg-footer: #111111;
    --white: #ffffff;
    --whatsapp-color: #25d366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-color); }
.bg-footer { background-color: var(--bg-footer); }
.text-white { color: var(--white); }
.text-gray { color: var(--text-gray); }

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white) !important; /* Forzar blanco en botones */
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-hero {
    margin-top: 20px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block { width: 100%; }

/* --- HEADER (MODIFICADO A CLARO) --- */
header {
    background-color: var(--white); /* Fondo blanco */
    padding: 15px 0; /* Un poco más compacto */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08); /* Sombra suave para separar del contenido */
}

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

.logo {
    color: var(--primary-color); /* Logo negro */
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark); /* Enlaces en gris oscuro/negro */
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-color); /* Hover azul */
}

.menu-toggle {
    display: none;
    color: var(--primary-color); /* Icono hamburguesa negro */
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO CAROUSEL SLIDER --- */
.hero-carousel {
    position: relative;
    height: 85vh; /* Altura del slider */
    overflow: hidden;
    background-color: var(--bg-dark); /* Fondo de carga */
}
/* --- ESTILOS PARA VIDEO BACKGROUND EN SLIDER --- */

/* Clase para el elemento <video> */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Centrar el video perfectamente */
    transform: translate(-50%, -50%);
    
    /* Asegurar que cubra todo el slide sin deformarse */
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    
    /* La clave moderna para que actúe como background-size: cover */
    object-fit: cover; 
    
    /* Asegurar que esté detrás de todo */
    z-index: 0;
}

/* Aseguramos que el overlay y el contenido estén por encima del video */
.hero-carousel .overlay {
    z-index: 1; /* Un nivel sobre el video */
}

.slide-content {
    z-index: 2; /* Dos niveles sobre el video */
}

/* Ajuste específico para que los slides con video también tengan el fondo oscuro de carga */
.carousel-slide {
    background-color: var(--bg-dark);
}
/* Estilo base para cada slide */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* La magia del Fade: */
    opacity: 0; 
    transition: opacity 1s ease-in-out; /* Transición suave de 1 segundo */
    display: flex;
    align-items: center;
    z-index: 1;
}

/* El slide activo es el único visible */
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Overlay oscuro para mejorar la lectura del texto */
.hero-carousel .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

/* Contenido del texto dentro del slide */
.slide-content {
    position: relative;
    z-index: 3; /* Por encima del overlay */
    color: var(--white);
    max-width: 700px;
    margin-left: 5%; /* Alineado a la izquierda */
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e0e0e0;
    line-height: 1.6;
}

.btn-hero {
    padding: 15px 40px;
    font-size: 1rem;
}

/* --- CONTROLES DEL CARRUSEL --- */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 20px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.carousel-control:hover {
    background: var(--accent-color);
}

.carousel-control.prev { left: 0; }
.carousel-control.next { right: 0; }

/* --- INDICADORES (PUNTOS) --- */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 15px;
    height: 15px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active, .dot:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* --- RESPONSIVE PARA EL SLIDER --- */
@media (max-width: 768px) {
    .hero-carousel { height: 70vh; }

    .slide-content {
        text-align: center;
        margin: 0 auto;
        padding: 0 20px;
    }

    .hero-carousel .overlay {
        /* En móvil oscurecemos parejo */
        background: rgba(0,0,0,0.7); 
    }

    .slide-content h1 { font-size: 2rem; }
    .slide-content p { font-size: 1rem; }

    .carousel-control { padding: 10px; font-size: 1.5rem; }
    .dot { width: 12px; height: 12px; }
}

/* --- SECCIONES COMUNES --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

.text-white + p { color: var(--text-gray); }

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

.benefit-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
}

.benefit-card:hover { transform: translateY(-5px); }

.benefit-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.benefit-card h3 { margin-bottom: 15px; font-size: 1.2rem; }

/* --- SERVICIOS (CON IMAGENES ACTUALIZADAS) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.service-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    /* Filtro técnico: Bajar saturación y aumentar contraste */
    filter: sepia(20%) contrast(110%) grayscale(40%); 
    transition: all 0.4s ease;
}

.service-item:hover .service-img {
    /* Al pasar el mouse, color total y un ligero zoom */
    filter: sepia(0%) contrast(100%) grayscale(0%);
    transform: scale(1.02); 
}

.service-content { padding: 25px; }

/* --- FICHA TÉCNICA RESPONSIVA (NUEVO) --- */

/* Contenedor principal similar al anterior pero sin overflow innecesario */
.specs-container-responsive {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Cada "Fila" de información */
.spec-row {
    display: flex; /* Activa Flexbox */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
}

/* Efecto hover suave para resaltar la fila que se lee */
.spec-row:hover {
    background: rgba(255,255,255,0.02);
}

.spec-row:last-child {
    border-bottom: none; /* Quita el borde final */
}

/* La columna de la izquierda (Categoría) */
.spec-header {
    flex: 1; /* Toma 1 parte del espacio */
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.1); /* Separador vertical en escritorio */
}

/* Iconos pequeños para decorar la categoría */
.spec-header i {
    margin-right: 10px;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* La columna de la derecha (Modelos) */
.spec-content {
    flex: 2; /* Toma 2 partes del espacio (más ancho) */
    padding: 20px;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

/* --- MEDIA QUERY ESPECÍFICA PARA ESTA SECCIÓN --- */
@media (max-width: 768px) {
    .spec-row {
        /* En móvil, cambia la dirección de flex a columna (apilado) */
        flex-direction: column;
    }

    .spec-header {
        border-right: none; /* Quita el separador vertical */
        padding-bottom: 5px; /* Reduce espacio inferior */
        font-size: 1.1rem; /* Título un poco más grande para jerarquía */
        background: rgba(0,0,0,0.2); /* Fondo ligeramente diferente para el título */
    }

    .spec-content {
        padding-top: 10px; /* Espacio superior para separar del título */
        padding-left: 30px; /* Pequeña sangría para que se vea jerarquizado */
        color: #cccccc; /* Color ligeramente más apagado en móvil */
    }
}

/* --- PROCESO --- */
.process-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.step { flex: 1; min-width: 200px; }

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: 0.3s;
}

.step:hover .step-icon { transform: scale(1.1); background-color: var(--primary-color); }

/* --- TESTIMONIOS --- */
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stars { color: #f1c40f; margin-bottom: 15px; }
.client-name { font-weight: 700; margin-top: 15px; display: block; color: var(--primary-color); }

/* --- FAQ --- */
.faq-container { max-width: 800px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    transition: 0.3s;
}

.faq-question:hover { color: var(--accent-color); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    transition: max-height 0.3s ease-out;
}

.faq-answer p { padding-bottom: 20px; color: var(--text-light); }

.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* --- FOOTER & FORM --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info p { margin-bottom: 15px; color: var(--text-gray); }
.contact-info i { width: 25px; color: var(--accent-color); }

.map-container { margin-top: 20px; border-radius: 8px; overflow: hidden; }

.contact-form {
    background: #222;
    padding: 30px;
    border-radius: 8px;
}

.form-group { margin-bottom: 15px; }

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: #333;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.footer-bottom {
    background: #000;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.8rem;
}

/* --- BOTONES FLOTANTES --- */
.float-btn {
    position: fixed;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.whatsapp-btn {
    bottom: 20px;
    background-color: var(--whatsapp-color);
}

.whatsapp-btn:hover { background-color: #1ebc57; transform: scale(1.1); }

.scroll-top-btn {
    bottom: 90px;
    background-color: var(--primary-color);
    font-size: 24px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-top-btn.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.scroll-top-btn:hover { background-color: #333; }


/* --- RESPONSIVE MEDIA QUERIES (MODIFICADO PARA MENU CLARO) --- */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 60px; /* Ajustado para el nuevo header más compacto */
        left: 0;
        width: 100%;
        background: var(--white); /* Fondo blanco en móvil también */
        flex-direction: column;
        padding: 30px 0;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05); /* Sombra para separar */
        border-top: 1px solid #eee;
    }

    .navbar .nav-links.active { display: flex; }
    .menu-toggle { display: block; }

    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    
    .section-title h2 { font-size: 2rem; }
    
    .process-steps { flex-direction: column; align-items: center; }
}
/* --- BRANDS TRUST BANNER --- */

/* El contenedor de la sección */
.brands-section {
    padding: 40px 0; /* Más delgado que una sección normal */
    border-bottom: 1px solid #eee; /* Línea sutil para separar */
}

/* El pequeño texto introductorio */
.brand-intro {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contenedor flexible para los logos */
.brands-flex {
    display: flex;
    justify-content: center; /* Centrados horizontalmente */
    align-items: center; /* Centrados verticalmente */
    flex-wrap: wrap; /* Permite que bajen en pantallas muy pequeñas */
    gap: 60px; /* Espacio generoso entre logos */
}

/* El contenedor individual de cada imagen */
.brand-item {
    flex: 0 1 auto; /* No crecen, pero pueden encogerse */
    text-align: center;
}

/* Estilo de las imágenes (Logos) */
.brand-item img {
    display: block;
    max-width: 150px; /* Ancho máximo para escritorio */
    height: auto; /* Mantiene la proporción */
    max-height: 150px; /* Altura máxima para uniformidad */
    
    /* EL EFECTO PREMIUM: */
    filter: grayscale(100%); /* Empiezan en blanco y negro */
    opacity: 0.6; /* Un poco transparentes para no robar atención */
    transition: all 0.4s ease; /* Transición suave */
}

/* Al pasar el mouse por el logo */
.brand-item:hover img {
    filter: grayscale(0%); /* Recuperan su color */
    opacity: 1; /* Opacidad total */
    transform: scale(1.05); /* Un ligero aumento de tamaño */
}


/* --- RESPONSIVE PARA MARCAS --- */
@media (max-width: 768px) {
    .brands-flex {
        gap: 40px; /* Menos espacio en móvil */
    }
    
    .brand-item img {
        max-width: 120px; /* Logos un poco más pequeños en móvil */
        max-height: 120px;
    }
}

@media (max-width: 480px) {
    .brands-flex {
        /* En pantallas muy pequeñas, aseguramos que queden bien centrados si se apilan */
        justify-content: space-around; 
    }
}
/* --- CTA PARALLAX SECTION --- */
.cta-parallax {
    position: relative;
    /* Imagen: Un setup de audio elegante o un taller limpio */
    background-image: url('bg-cta.webp');
    background-size: cover;
    background-position: center;
    /* EFECTO PARALLAX (La imagen se queda fija al hacer scroll) */
    background-attachment: fixed; 
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.cta-parallax .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Degradado oscuro fuerte para que el texto blanco resalte mucho */
    background: rgba(0, 0, 0, 0.75); 
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Botón ligeramente más grande para esta sección */
.btn-large {
    padding: 18px 45px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0,86,179, 0.3); /* Sombra azulada sutil */
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,86,179, 0.5);
}

/* --- RESPONSIVE PARA CTA --- */
@media (max-width: 768px) {
    .cta-parallax {
        background-attachment: scroll; /* En móviles desactivamos parallax por rendimiento */
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .btn-large {
        width: 100%; /* Botón ancho completo en móvil */
        display: block;
    }
}
/* Estilos para el enlace del footer */
.privacy-link {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9em;
    margin-left: 10px;
    transition: color 0.3s;
}

.privacy-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Estilos del Modal (Fondo oscuro) */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000; /* Por encima de todo, incluido el menú */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8); /* Fondo negro con transparencia */
    backdrop-filter: blur(5px); /* Efecto borroso elegante */
}

/* Contenido del Modal (Caja blanca) */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% desde arriba y centrado */
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px; /* Ancho máximo para que no se vea enorme en PC */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    animation: fadeIn 0.4s;
}

/* Título del modal */
.modal-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    border-bottom: 2px solid #ce1126; /* Color rojo de tu marca */
    display: inline-block;
    padding-bottom: 5px;
}

/* Texto del modal */
.modal-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.modal-text a {
    color: #ce1126;
    font-weight: bold;
}

.last-update {
    font-size: 0.8rem;
    color: #999;
    text-align: right;
    margin-top: 20px;
    font-style: italic;
}

/* Botón de cerrar (X) */
.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #ce1126;
    text-decoration: none;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Ajuste para móviles */
@media (max-width: 600px) {
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}