/* Estilos existentes */
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Helvetica Neue', Arial, sans-serif;
        }

        /* Estilos responsivos para el header - CORREGIDO: siempre blanco */
        .encabezado {
            width: 100%;
            height: 150px;
            background-color: rgb(255, 255, 255) !important; /* Forzar blanco */
            display: flex;
            align-items: center;
            padding: 0 5%;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .navbar {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Logo en el header - CORREGIDO */
        .logo {
            position: relative;
            display: flex;
            align-items: center;
        }

       .logo-imagen {
    width: 200px;
    height: 200px;
    background-image: url('logos/logoalicecolor_1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
}

        .logo h1 {
            font-size: 2.5rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: none;
        }
       

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 3rem;
            align-items: center;
        }

        .nav-menu li a {
            text-decoration: none;
            color: #333;
            font-size: 1.1rem;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .nav-menu li a:hover {
            color: #666;
        }

        .social-icons {
            display: flex;
            gap: 1.5rem;
        }

        .social-icon {
            text-decoration: none;
            color: #333;
            font-size: 1.3rem;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .social-icon:hover {
            color: #666;
        }

        /* Hamburguesa menu - CORREGIDO: colores adecuados */
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 4px;
            z-index: 1000;
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background-color: #333 !important; /* Cambiado a negro para verse en fondo blanco */
            transition: 0.3s;
        }

        /* MEJORAS ESPECÍFICAS PARA VIDEOS EN MÓVILES */
        /* Ajustes para la primera sección con video */
        .primera_seccion {
            width: 100%;
            height: 100vh;
            min-height: 500px; /* Altura mínima para móviles */
            max-height: 1200px; /* Altura máxima para pantallas grandes */
            background-color: rgb(95, 94, 94);
            position: relative;
            overflow: hidden;
        }

        .video-container {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .background-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center;
        }

        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
        }

        .video-content {
            position: absolute;
            top: 50%;
            left: 10%;
            transform: translateY(-50%);
            color: white;
            width: 45%;
            max-width: 600px;
            text-align: left;
        }

        .video-title {
            font-size: 3.5rem;
            font-weight: 300;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            letter-spacing: 0.5px;
            text-transform: none;
        }

        .video-subtitle {
            font-size: 1.3rem;
            font-weight: 300;
            line-height: 1.4;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
            letter-spacing: 0.3px;
        }

        /* Estilos para la segunda sección */
        .Segunda_seccion {
            width: 100%;
            height: auto;
            min-height: 400px;
            background-color: rgb(255, 255, 255);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4rem 0;
        }

        .contenido-segunda {
            width: 90%;
            max-width: 1200px;
            text-align: center;
        }

        .titulo-seccion {
            font-size: 2.5rem;
            font-weight: 300;
            color: #333;
            margin-bottom: 3rem;
            letter-spacing: 0.5px;
            text-transform: none;
        }

        .estadisticas {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .estadistica-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 1rem;
        }

        .porcentaje {
            font-size: 2rem;
            font-weight: 700;
            color: #333;
            margin-bottom: 0.5rem;
        }

        .descripcion {
            font-size: 0.9rem;
            font-weight: 300;
            color: #555;
            text-align: center;
            line-height: 1.3;
        }

        .fuente {
            font-size: 0.8rem;
            font-weight: 300;
            color: #777;
            font-style: italic;
            margin-top: 1rem;
        }

        /* MEJORAS PARA LA TERCERA SECCIÓN CON VIDEO */
        .tercera_seccion {
            width: 100%;
            height: 70vh; /* Cambiado a altura relativa */
            min-height: 400px; /* Altura mínima para móviles */
            max-height: 800px; /* Altura máxima para pantallas grandes */
            background-color: rgb(255, 255, 255);
            position: relative;
            overflow: hidden;
        }

        .video-container-tercera {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .background-video-tercera {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center;
        }

        .video-overlay-tercera {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
        }

        .contenido-tercera {
            position: absolute;
            top: 50%;
            left: 10%;
            transform: translateY(-50%);
            color: white;
            width: 45%;
            max-width: 600px;
        }

        .titulo-tercera {
            font-size: 2.5rem;
            font-weight: 300;
            margin-bottom: 2rem;
            letter-spacing: 0.5px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .texto-tercera {
            font-size: 1.1rem;
            font-weight: 300;
            line-height: 1.6;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
            letter-spacing: 0.3px;
        }

        /* Estilos MINIMALISTAS para la cuarta sección - SERVICIOS - MEJORADO: MÁS JUNTOS */
.cuarta_seccion {
    width: 100%;
    min-height: 500px;
    background-color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.contenido-cuarta {
    width: 95%;
    max-width: 1400px;
    position: relative;
    z-index: 2;
}

.titulo-cuarta {
    font-size: 2.2rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-align: center;
    text-transform: none;
}

.subtitulo-servicios {
    font-size: 1.1rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.lista-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; /* REDUCIDO: De 2rem a 1.5rem para acercar servicios */
    margin-bottom: 3rem;
}

.servicio-item {
    font-size: 1rem;
    font-weight: 300;
    color: #444;
    padding: 1.2rem 1rem; /* REDUCIDO: De 1.5rem a 1.2rem */
    letter-spacing: 0.3px;
    text-transform: none;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    background-color: transparent;
}

.servicio-item:hover {
    color: #2c5aa0;
    transform: translateY(-2px);
}

.servicio-item::before {
    content: "•";
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    color: #2c5aa0;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.servicio-item:hover::before {
    opacity: 1;
    left: 0;
}

.frase-final {
    font-size: 1.2rem;
    font-weight: 300;
    color: #333;
    text-align: center;
    letter-spacing: 0.5px;
    font-style: italic;
    margin-top: 2rem;
    padding-top: 2rem;
    position: relative;
}

.frase-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: #e0e0e0;
}

/* Estilos responsivos */
@media (max-width: 1200px) {
    .contenido-cuarta {
        width: 92%;
        max-width: 1100px;
    }
}

@media (max-width: 1024px) {
    .lista-servicios {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem; /* REDUCIDO: De 1.5rem a 1.2rem */
    }
}

@media (max-width: 768px) {
    .cuarta_seccion {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .contenido-cuarta {
        width: 90%;
    }
    
    .titulo-cuarta {
        font-size: 2rem;
    }
    
    .subtitulo-servicios {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .lista-servicios {
        grid-template-columns: 1fr;
        gap: 0.8rem; /* REDUCIDO: De 1rem a 0.8rem */
    }
    
    .servicio-item {
        padding: 1rem 0.5rem; /* REDUCIDO: De 1.2rem a 1rem */
    }
    
    .servicio-item::before {
        display: none;
    }
    
    .frase-final {
        font-size: 1.1rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .cuarta_seccion {
        padding: 3rem 0;
    }
    
    .titulo-cuarta {
        font-size: 1.8rem;
    }
    
    .servicio-item {
        font-size: 0.95rem;
        padding: 0.8rem 0.5rem; /* REDUCIDO: De 1rem a 0.8rem */
    }
    
    .frase-final {
        font-size: 1rem;
    }
}

        /* MEJORAS PARA LA QUINTA SECCIÓN CON VIDEO */
        .quinta_seccion {
            width: 100%;
            height: 70vh; /* Cambiado a altura relativa */
            min-height: 400px; /* Altura mínima para móviles */
            max-height: 800px; /* Altura máxima para pantallas grandes */
            background-color: rgb(255, 255, 255);
            position: relative;
            overflow: hidden;
        }

        .video-container-quinta {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .background-video-quinta {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center;
        }

        .video-overlay-quinta {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
        }

        .contenido-quinta {
            position: absolute;
            top: 50%;
            right: 10%;
            transform: translateY(-50%);
            color: white;
            width: 45%;
            max-width: 600px;
            text-align: right;
        }

        .titulo-quinta {
            font-size: 2.5rem;
            font-weight: 300;
            margin-bottom: 2rem;
            letter-spacing: 0.5px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            text-transform: none;
        }

        .texto-quinta {
            font-size: 1.1rem;
            font-weight: 300;
            line-height: 1.6;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
            letter-spacing: 0.3px;
            margin-bottom: 2rem;
        }

        .palabra-final {
            font-size: 1.3rem;
            font-weight: 300;
            font-style: italic;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
            letter-spacing: 0.5px;
            text-transform: none;
        }

        /* ESTILOS MEJORADOS PARA LA SEXTA SECCIÓN - CLIENTES - MEJORADO: REDUCIDO Y SIN BORDES */
        .titulo-sexta-cuadro {
            width: 100%;
            height: 150px;
            background-color: rgb(238, 238, 238);
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .titulo-sexta-cuadro h2 {
            color: #000000;
            font-size: 2.2rem;
            font-weight: 300;
            letter-spacing: 0.5px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
            text-transform: none;
        }

        .Sexta_seccion {
            width: 100%;
            min-height: 90px; /* REDUCIDO: De 600px a 400px */
            background-color: rgb(255, 255, 255);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 3rem 0; /* REDUCIDO: De 4rem a 3rem */
            overflow: hidden;
            position: relative;
        }

        .contenido-sexta {
            width: 90%;
            max-width: 1200px;
            text-align: center;
            overflow: hidden;
        }

        /* CARRUSEL DE CLIENTES - MEJORADO: LOGOS MÁS GRANDES Y SIN BORDES */
        .carrusel-clientes {
            position: relative;
            width: 100%;
            overflow: hidden;
            padding: 1.5rem 0; /* REDUCIDO: De 2rem a 1.5rem */
        }

        .carrusel-track {
            display: flex;
            animation: desplazar 30s linear infinite;
            width: max-content;
        }

        .cliente-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-width: 400px; /* AUMENTADO: De 350px a 400px */
            height: 250px; /* AUMENTADO: De 220px a 250px */
            padding: 1.5rem 1rem; /* REDUCIDO: De 2rem a 1.5rem */
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            background-color: transparent;
            border: none;
            box-shadow: none;
        }

        .cliente-item:hover {
            transform: translateY(-5px);
        }

        .cliente-logo {
            width: 100%;
            height: 180px; /* AUMENTADO: De 140px a 180px */
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
            background-color: transparent; /* CAMBIADO: Sin fondo blanco */
            border-radius: 0; /* CAMBIADO: Sin bordes redondeados */
            padding: 0; /* CAMBIADO: Sin padding */
            box-shadow: none; /* CAMBIADO: Sin sombra */
        }

        .cliente-item:hover .cliente-logo {
            transform: scale(1.05);
            box-shadow: none; /* CAMBIADO: Sin sombra al hacer hover */
        }

        .cliente-logo img {
            max-width: 95%; /* AUMENTADO: De 90% a 95% */
            max-height: 150px; /* AUMENTADO: De 110px a 150px */
            object-fit: contain;
            transition: all 0.3s ease;
            filter: brightness(1.2) contrast(1.2) saturate(1.1);
        }

        .cliente-item:hover .cliente-logo img {
            transform: scale(1.05);
            filter: brightness(1.3) contrast(1.3) saturate(1.2);
        }

        /* Animación del carrusel */
        @keyframes desplazar {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        /* Pausar animación al hacer hover */
        .carrusel-clientes:hover .carrusel-track {
            animation-play-state: paused;
        }

        /* Estilos para logos de texto (backup) */
        .logo-xiaomi {
            font-size: 2.5rem;
            font-weight: 300;
            color: #ff6700;
            text-transform: none;
        }

        .logo-isuzu {
            font-size: 2.2rem;
            font-weight: 700;
            color: #1a3a8f;
            text-transform: uppercase;
        }

        .logo-bmw {
            font-size: 2.3rem;
            font-weight: 700;
            color: #0066b1;
            text-transform: uppercase;
        }

        .logo-nike {
            font-size: 2.5rem;
            font-weight: 700;
            color: #111;
            text-transform: none;
        }

        .logo-adidas {
            font-size: 2.3rem;
            font-weight: 700;
            color: #000;
            text-transform: lowercase;
        }

        .logo-apple {
            font-size: 2.4rem;
            font-weight: 300;
            color: #000;
            text-transform: none;
        }

        .logo-samsung {
            font-size: 2.2rem;
            font-weight: 700;
            color: #1428a0;
            text-transform: none;
        }

        .logo-sony {
            font-size: 2.3rem;
            font-weight: 700;
            color: #000;
            text-transform: none;
        }

        /* Estilos para el footer */
        .footer {
            width: 100%;
            background-color: #1a1a1a;
            color: #fff;
            padding: 4rem 0 2rem;
        }

        .footer-contenido {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 3rem;
            align-items: start;
        }

        .footer-columna {
            display: flex;
            flex-direction: column;
        }

        .logo_inferior {
            max-width: 180px;
            margin-bottom: 1.5rem;
        }

        .footer-descripcion {
            font-size: 0.95rem;
            line-height: 1.6;
            color: #ccc;
            margin-bottom: 1.5rem;
            font-weight: 300;
        }

        .footer-copyright {
            font-size: 0.85rem;
            color: #999;
            margin-top: auto;
        }

        .footer-subtitulo {
            font-size: 1.2rem;
            font-weight: 500;
            margin-bottom: 1.5rem;
            color: #fff;
            text-transform: none;
        }

        .footer-contacto {
            font-size: 0.95rem;
            color: #ccc;
            margin-bottom: 0.8rem;
            font-weight: 300;
        }

        /* FORMULARIO DE CONTACTO - MEJORADO */
        .footer-formulario {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .form-input,
        .form-textarea {
            padding: 0.8rem 1rem;
            border: 1px solid #444;
            border-radius: 4px;
            background-color: #2a2a2a;
            color: #fff;
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }

        .form-input::placeholder,
        .form-textarea::placeholder {
            color: #999;
        }

        .form-input:focus,
        .form-textarea:focus {
            outline: none;
            border-color: #2c5aa0;
            background-color: #333;
        }

        .form-textarea {
            resize: vertical;
            min-height: 100px;
        }

        .form-boton {
            padding: 0.8rem 2rem;
            background-color: #2c5aa0;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .form-boton:hover {
            background-color: #1e3d6f;
            transform: translateY(-2px);
        }

        .form-boton:disabled {
            background-color: #666;
            cursor: not-allowed;
            transform: none;
        }

        /* Estados del botón de envío */
        .btn-text, .btn-loading {
            transition: opacity 0.3s ease;
        }

        .slogan_inferior{
            width: 275px;
            height: 200px;
            margin-top: 100px;
            margin-left: -200px;
        }

        /* Animaciones para mejorar la experiencia visual */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .visible {
            animation: fadeInUp 0.8s ease forwards;
        }

        /* MEJORAS PARA LA REPRODUCCIÓN EN IOS */
        .background-video,
        .background-video-tercera,
        .background-video-quinta {
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            -webkit-perspective: 1000;
            perspective: 1000;
        }

        /* Responsive Design - MEJORADO PARA VIDEOS EN MÓVILES */
        @media (max-width: 1200px) {
            .video-content, .contenido-tercera, .contenido-quinta {
                width: 50%;
            }
            
            .estadisticas {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 1024px) {
            .nav-menu {
                gap: 2rem;
            }
            
            .video-title {
                font-size: 3rem;
            }
            
            .titulo-seccion, .titulo-tercera, .titulo-quinta {
                font-size: 2.2rem;
            }
            
            .footer-contenido {
                grid-template-columns: repeat(2, 1fr);
                gap: 2.5rem;
            }
            
            .footer-columna:last-child {
                grid-column: 1 / -1;
            }
            
            .video-content, .contenido-tercera, .contenido-quinta {
                width: 60%;
            }
        }

        @media (max-width: 768px) {
            .encabezado {
                height: 100px;
                padding: 0 5%;
                background-color: rgb(255, 255, 255) !important; /* Forzar blanco en mobile */
            }
            
            .logo-imagen {
                width: 150px;
                height: 150px;
            }
            
            .hamburger {
                display: flex;
            }
            
            .nav-menu {
                position: fixed;
                top: 0;
                right: -100%;
                width: 70%;
                height: 100vh;
                background-color: white;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                transition: 0.5s;
                box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
                z-index: 999;
            }
            
            .nav-menu.active {
                right: 0;
            }
            
            .nav-menu li a {
                color: #333 !important; /* Forzar color negro en mobile */
                font-size: 1.2rem;
                padding: 1rem 0;
            }
            
            .hamburger.active span:nth-child(1) {
                transform: rotate(45deg) translate(5px, 5px);
                background-color: #333 !important;
            }
            
            .hamburger.active span:nth-child(2) {
                opacity: 0;
            }
            
            .hamburger.active span:nth-child(3) {
                transform: rotate(-45deg) translate(7px, -6px);
                background-color: #333 !important;
            }
            
            /* MEJORADO: Ajustes específicos para videos en móviles */
            .primera_seccion {
                height: 70vh;
                min-height: 450px;
            }
            
            .tercera_seccion, .quinta_seccion {
                height: 60vh;
                min-height: 350px;
            }
            
            .video-content, .contenido-tercera, .contenido-quinta {
                width: 85%;
                left: 7.5%;
                text-align: center;
            }
            
            .contenido-quinta {
                right: 7.5%;
                text-align: center;
            }
            
            .video-title {
                font-size: 2.2rem;
                line-height: 1.2;
            }
            
            .video-subtitle, .texto-tercera {
                font-size: 1.1rem;
            }
            
            .titulo-seccion, .titulo-tercera, .titulo-quinta {
                font-size: 2rem;
            }
            
            .estadisticas {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            /* MEJORADO: Ajustes para carrusel en móviles */
            .cliente-item {
                min-width: 300px; /* Ajustado para móviles */
                height: 200px; /* Ajustado para móviles */
            }
            
            .cliente-logo {
                height: 140px; /* Ajustado para móviles */
            }
            
            .cliente-logo img {
                max-height: 120px; /* Ajustado para móviles */
            }
            
            /* Forzar reproducción automática en dispositivos móviles */
            .background-video,
            .background-video-tercera,
            .background-video-quinta {
                -webkit-touch-callout: none;
                -webkit-user-select: none;
                -khtml-user-select: none;
                -moz-user-select: none;
                -ms-user-select: none;
                user-select: none;
            }
        }

        @media (max-width: 576px) {
            .encabezado {
                height: 80px;
                background-color: rgb(255, 255, 255) !important; /* Forzar blanco en mobile pequeño */
            }
            
            .logo-imagen {
                width: 120px;
                height: 120px;
            }
            
            /* MEJORADO: Ajustes adicionales para móviles pequeños */
            .primera_seccion {
                height: 60vh;
                min-height: 400px;
            }
            
            .tercera_seccion, .quinta_seccion {
                height: 50vh;
                min-height: 300px;
            }
            
            .video-content, .contenido-tercera, .contenido-quinta {
                width: 90%;
                left: 5%;
            }
            
            .contenido-quinta {
                right: 5%;
            }
            
            .video-title {
                font-size: 1.8rem;
                margin-bottom: 1rem;
            }
            
            .video-subtitle {
                font-size: 1rem;
            }
            
            .titulo-seccion, .titulo-tercera, .titulo-quinta {
                font-size: 1.8rem;
            }
            
            .Segunda_seccion, .cuarta_seccion, .Sexta_seccion {
                padding: 3rem 0;
            }
            
            .footer-contenido {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .footer {
                padding: 3rem 0 1.5rem;
            }
            
            /* MEJORADO: Ajustes adicionales para carrusel en móviles pequeños */
            .cliente-item {
                min-width: 260px;
                height: 180px;
            }
            
            .cliente-logo {
                height: 120px;
            }
            
            .cliente-logo img {
                max-height: 100px;
            }
        }

        @media (max-width: 400px) {
            .video-title {
                font-size: 1.6rem; /* Aún más pequeño para pantallas muy pequeñas */
            }
            
            .titulo-seccion, .titulo-tercera, .titulo-quinta {
                font-size: 1.6rem;
            }
            
            .video-subtitle, .texto-tercera {
                font-size: 0.95rem;
            }
            
            /* MEJORADO: Ajustes finales para videos en pantallas muy pequeñas */
            .primera_seccion {
                height: 55vh;
                min-height: 350px;
            }
            
            .tercera_seccion, .quinta_seccion {
                height: 45vh;
                min-height: 280px;
            }
            
            /* MEJORADO: Ajustes finales para carrusel en pantallas muy pequeñas */
            .cliente-item {
                min-width: 220px;
                height: 160px;
            }
            
            .cliente-logo {
                height: 110px;
            }
            
            .cliente-logo img {
                max-height: 90px;
            }
        }

        /* Mejoras de accesibilidad */
        @media (prefers-reduced-motion: reduce) {
            .carrusel-track {
                animation: none;
            }
            
            .servicio-item, .cliente-item, .form-boton {
                transition: none;
            }
        }

        /* Estilos para modo oscuro del sistema - CORREGIDO: encabezado siempre blanco */
        @media (prefers-color-scheme: dark) {
            .encabezado {
                background-color: rgb(255, 255, 255) !important; /* Forzar blanco incluso en modo oscuro */
            }
            
            .nav-menu li a, .social-icon {
                color: #333 !important; /* Forzar color oscuro para contraste */
            }
            
            .nav-menu li a:hover, .social-icon:hover {
                color: #666 !important;
            }
            
            .hamburger span {
                background-color: #333 !important; /* Forzar color oscuro */
            }
        }