/* --- CONFIGURACIÓN DE COLORES (OPCIÓN 2 - PREMIUM DARK) --- */
:root {
    --bg-dark: #121212;       /* Fondo General */
    --text-main: #E0E0E0;     /* Texto Principal (Plata) */
    --text-title: #FFFFFF;    /* Títulos (Blanco) */
    --color-accent: #E53935;  /* Rojo AMFLEX (Botones/Logo) */
    --color-hover: #FFC107;   /* Amarillo AMFLEX (Hover) */
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    scroll-behavior: smooth; /* Para que el botón baje suave */
}

/* 1. El contenedor padre */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 2. El video en sí */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* 3. La capa oscura */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.5); /* Usamos el tono oscuro del tema */
    z-index: -1;
}

/* 4. El contenido (Texto y Menú) */
.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-title);
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- ESTILOS DEL MENÚ (NUEVO) --- */
.main-nav {
    position: fixed; /* ANTES ERA absolute, AHORA ES fixed */
    top: 0;
    left: 0;
    width: 100%; /* Ocupa todo el ancho */
    height: 80px; /* Altura fija para evitar saltos */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%; /* Un poco de margen a los lados */
    z-index: 2;    transition: all 0.4s ease; /* Suavidad al cambiar de color */
    box-sizing: border-box; /* Para que el padding no rompa el ancho */
    
    /* Borde sutil inicial */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.main-nav.scrolled {
    background-color: rgba(18, 18, 18, 0.95); /* Fondo oscuro casi sólido */
    height: 60px; /* Se hace un poco más compacto */
    border-bottom: 1px solid var(--color-accent); /* Borde Rojo elegante abajo */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Sombrita */
     z-index: 2;
}

.main-nav.scrolled .logo-img {
    height: 35px;
}

/* Quitamos el subrayado o estilos raros al enlace del logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Controlamos el tamaño de la imagen */
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s;
}

.menu-links a {
    color: var(--text-title);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.3s;
}

.menu-links a:hover {
    color: var(--color-hover); /* Se pone AMARILLO al pasar el mouse */
}

/* MENÚ DESKTOP - visible en desktop, oculto por CSS móvil */
.menu-links {
    display: flex;
    gap: 30px;
    align-items: center; 
    height: 100%; /* <--- NUEVO: Ocupa toda la altura del Nav */
}

/* BOTÓN HAMBURGUESA - oculto en desktop por default */
.mobile-menu-toggle {
    display: none;
}

/* ELEMENTOS DEL MENÚ MÓVIL - ocultos en desktop por default */
.mobile-menu-container,
.mobile-menu-overlay {
    display: none;
}




/* Ajuste para separar los elementos (reemplaza los márgenes antiguos) */
.menu-links > a, 
.menu-links > .dropdown-container {
    margin-left: 0; /* ANTES ERA 25px -> CÁMBIALO A 0 */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Asegurar que el enlace DENTRO del container no tenga margen extra */
.dropdown-container a.dropdown-trigger {
    margin-left: 0; 
}


/* --- TIPOGRAFÍA PRINCIPAL --- */
h1 {
    font-size: 4rem; /* Tamaño MANTENIDO */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* Sombra para leer mejor sobre video */
}

/* CAMBIO SOLICITADO: Texto más grande */
.hero-subtitle {
    font-size: 2rem; /* Aumentado (antes era el defecto de 1rem) */
    margin-top: 0;
    margin-bottom: 40px;
    font-weight: 300; /* Letra un poco más fina para que se vea elegante */
    color: var(--text-main);
}




/* --- BOTÓN (VER MÁS) --- */
.btn {
    text-decoration: none;
    background-color: var(--color-accent); /* Rojo */
    color: var(--text-title);
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #C62828; /* Un rojo un poco más oscuro al presionar */
    color: white;
}

/* --- ESTILOS DEL SUB-MENÚ (NUEVO) --- */

/* Contenedor del ítem que tiene hijos (Construcción) */
.dropdown-submenu {
    position: relative; /* Para que el hijo se posicione respecto a este */
}

/* Flechita pequeña a la derecha */
.arrow-right {
    float: right;
    font-size: 0.8rem;
    margin-top: 4px;
    color: var(--color-accent); /* Rojo */
}

/* El menú lateral oculto */
.submenu-content {
    display: none; /* Oculto por defecto */
    position: absolute;
    left: 100%; /* Lo empuja totalmente a la derecha */
    top: 0; /* Alineado con la parte superior */
    background-color: #1a1a1a; /* Mismo fondo oscuro */
    min-width: 220px; /* Un poco más ancho para los nombres largos */
    box-shadow: 4px 4px 10px rgba(0,0,0,0.5);
    border-left: 2px solid var(--color-accent); /* Borde rojo para separar */
    z-index: 1000;
}

/* Estilo de los enlaces del sub-menú */
.submenu-content a {
    color: #fff;
    padding: 12px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    border-bottom: 1px solid #333;
    transition: background 0.3s, color 0.3s;
}

.submenu-content a:hover {
    background-color: var(--color-accent); /* Rojo al pasar el mouse */
    color: white;
}

/* --- LÓGICA DE APARICIÓN (HOVER) --- */

/* Cuando pasas el mouse por "Construcción", aparece el sub-menú */
.dropdown-submenu:hover .submenu-content {
    display: block;
}


/* --- ESTILOS DEL BOTÓN HAMBURGUESA (Oculto en PC) --- */
.menu-toggle {
    display: none; /* En PC no se ve */
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-title);
    margin: 4px 0;
    transition: 0.4s;

}


/* --- MENÚ DESPLEGABLE (DROPDOWN) --- */

/* 1. El contenedor del botón + menú */
.dropdown-container {
    position: relative; /* <--- ESTA LÍNEA ES LA CLAVE QUE FALTABA */
    display: flex;
    align-items: center;
    height: 100%; 
    padding: 0 10px;
}

/* Flechita pequeña al lado de PRODUCTOS */
.icon-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

/* Girar la flecha al pasar el mouse */
.dropdown-container:hover .icon-arrow {
    transform: rotate(180deg);
    color: var(--color-hover);
}

/* 2. La cajita del menú (Oculta por defecto) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000000;
    min-width: 220px;
    
    /* AQUÍ ESTÁ EL CAMBIO: de 3px a 1px */
    border-top: 1px solid var(--color-accent); 
    
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    border-radius: 0 0 5px 5px;
    
    /* Efectos de aparición */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

/* 3. Mostrar el menú al pasar el mouse (HOVER) */
.dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 4. Estilos de los enlaces dentro del menú */
.dropdown-menu a {
    color: #ccc;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
    margin: 0; /* Quitamos márgenes heredados */
    text-align: left;
    display: block; /* Ocupa todo el ancho */
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #1A1A1A;
    color: var(--color-hover); /* Amarillo AMFLEX */
    padding-left: 25px; /* Pequeño desplazamiento a la derecha */
}



/* --- WIDGET FLOTANTE WHATSAPP --- */

.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000; /* Siempre encima de todo */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: sans-serif;
}

/* El botón circular verde */
.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Verde Oficial WhatsApp */
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1); /* Crece un poquito al pasar el mouse */
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

/* La cajita de chat (Oculta por defecto) */
.whatsapp-chat {
    display: none; /* OCULTO INICIALMENTE */
    width: 300px;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    margin-bottom: 20px; /* Espacio entre caja y botón */
    animation: slideUp 0.3s ease; /* Animación de entrada */
}

/* Animación suave al abrir */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Encabezado del chat */
.chat-header {
    background-color: #075E54; /* Verde Oscuro WhatsApp */
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 35px;
    height: 35px;
    background-color: white;
    color: #075E54;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.chat-details {
    display: flex;
    flex-direction: column;
}

.chat-name { font-weight: bold; font-size: 0.95rem; }
.chat-status { font-size: 0.75rem; opacity: 0.8; }

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Cuerpo del chat */
.chat-body {
    background-color: #E5DDD5; /* Fondo clásico de chat de WhatsApp */
    padding: 20px;
    /* Un pequeño patrón de fondo opcional sería ideal, pero lo dejaremos liso por ahora */
}

.chat-bubble {
    background-color: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 0 15px 15px 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-time {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: #777;
    margin-top: 5px;
}

/* Pie del chat (Botón de acción) */
.chat-footer {
    padding: 10px;
    background-color: #f0f0f0;
    text-align: center;
}

.btn-whatsapp-send {
    display: inline-block;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    width: 80%;
    transition: background 0.3s;
}

.btn-whatsapp-send:hover {
    background-color: #128C7E;
}

/* --- ESTILOS DE LA SECCIÓN DE INTRODUCCIÓN --- */

.intro-section {
    background-color: var(--bg-dark); /* Mismo fondo oscuro */
    padding: 100px 20px; /* Espaciado generoso arriba y abajo */
    position: relative;
}

/* Contenedor para limitar el ancho y que no se expanda al infinito en pantallas gigantes */
.container-width {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* El Grid Mágico: Dos columnas */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Mitad y mitad */
    gap: 60px; /* Espacio entre columnas */
    align-items: start;
}

/* --- Columna Izquierda (Título) --- */
.tagline {
    color: var(--color-accent); /* Rojo AMFLEX */
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.intro-header h2 {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--text-title);
    margin: 0 0 30px 0;
}

.text-highlight {
    color: var(--text-main); /* Opcional: ponerlo en gris plata o mantener blanco */
    font-weight: 300; /* Letra más fina para contraste elegante */
}

/* La barrita decorativa (Toque de ingeniería) */
.structural-bar {
    width: 80px;
    height: 6px;
    background-color: var(--color-hover); /* Amarillo AMFLEX */
    border-radius: 3px;
}

/* --- Columna Derecha (Texto) --- */
.intro-content {
    border-left: 1px solid rgba(255, 255, 255, 0.1); /* Línea fina separadora */
    padding-left: 40px; /* Espacio desde la línea */
}

.lead-paragraph {
    font-size: 1.25rem; /* Un poco más grande que el texto normal */
    color: var(--text-title); /* Blanco brillante */
    line-height: 1.6;
    margin-bottom: 25px;
}

.secondary-paragraph {
    font-size: 1rem;
    color: #999; /* Un gris un poco más apagado para jerarquía */
    line-height: 1.6;
}

/* Resaltar la marca en el texto */
.lead-paragraph strong {
    color: var(--color-accent);
}





/* --- SECCIÓN PRODUCTOS --- */
.products-section {
    background-color: #0e0e0e; /* Un negro un pelín más oscuro para diferenciar secciones */
    padding: 80px 0;
    color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.products-container {
    display: flex;
    gap: 50px;
    min-height: 400px; /* Altura mínima para que no salte */
}

/* --- LADO IZQUIERDO: NAV --- */
.products-nav {
    flex: 1; /* Ocupa 1 parte del espacio */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.product-item {
    position: relative;
    padding: 0; /* Quitamos padding general para controlar las partes interno */
    cursor: pointer;
    border-left: 2px solid #333;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Contenido del botón (Icono y Texto) */
.item-info {
    position: relative;
    padding: 20px 30px; /* Aquí ponemos el padding que antes tenía el padre */
    z-index: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
}

.item-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.item-info .icon {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* LA BARRA ANIMADA DE FONDO */
.bar-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%; 
    height: 62px; /* ALTURA FIJA: Solo cubre el área del título (aprox 20px padding * 2 + icono) */
    background: linear-gradient(90deg, var(--color-hover) 0%, transparent 100%);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

/* --- ESTADOS ACTIVOS Y HOVER --- */
.product-item:hover .item-info,
.product-item.active .item-info {
    opacity: 1;
    color: white; /* Texto negro solo sobre el fondo amarillo */
}

.product-item:hover .bar-indicator,
.product-item.active .bar-indicator {
    width: 100%; /* La barra amarilla llena el espacio */
}

.product-item.active {
    border-left-color: var(--color-hover); /* El borde se pone amarillo sólido */
}


/* --- LADO DERECHO: DISPLAY --- */
.products-content-display {
    flex: 1.5;
    position: relative;
    background: linear-gradient(135deg, #1A1A1A 0%, #121212 100%);
    border-radius: 8px;
    border: 1px solid #333;
    min-height: 500px;
    overflow: hidden;
}

/* --- CADA BLOQUE DE DESCRIPCIÓN (Asegura centrado vertical) --- */
.product-description {
    position: absolute;
    inset: 0; /* Ocupa todo el contenedor */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* CENTRADO VERTICAL */
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}


.product-description.active {
    opacity: 1;
    visibility: visible;
}


.product-description h3 {
    font-size: 2rem;
    color: var(--color-accent);
    margin: 0 0 20px 0;
    max-width: none;
}

.product-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 30px;
    max-width: none;
}

.btn-link {
    color: var(--color-hover);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border 0.3s;
}

.btn-link:hover {
    border-bottom-color: var(--color-hover);
}



/* --- CONTENEDOR DEL SUB-MENÚ --- */
.sub-menu {
    position: relative;
    z-index: 0; /* Por encima de cualquier fondo */
    max-height: 0;
    overflow: hidden;
    padding-left: 55px; /* Alineado después del icono */
    background: transparent; /* Aseguramos que sea transparente */
}

/* Cuando el padre está activo, se expande y se hace visible */
.product-item.active .sub-menu {
    max-height: 400px; 
    opacity: 1;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* --- ESTILO DE LAS SUB-BARRAS CON ANIMACIÓN --- */
.sub-bar {
    position: relative;
    font-size: 0.85rem;
    color: #999;
    padding: 12px 15px;
    margin: 6px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: rgba(255, 255, 255, 0.02); /* Fondo sutil */
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden; /* Para contener la animación de fondo */
    z-index: 1;
}

/* LA BARRA ANIMADA (PSEUDO-ELEMENTO) */
.sub-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%; /* Empieza fuera a la izquierda */
    width: 100%;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1; /* Por debajo del texto */
}

/* --- ESTADOS HOVER Y ACTIVE --- */
.sub-bar:hover::before, 
.sub-bar.active::before {
    left: 0; /* La barra entra al 100% */
}

.sub-bar:hover, 
.sub-bar.active {
    color: #FFFFFF; /* Texto en blanco al activarse */
    border-left-width: 5px; /* Engrosamos el borde un poco */
}

/* --- VARIACIONES DE COLOR SEGÚN CLASE --- */

.sub-bar.border-red::before {
    background: linear-gradient(90deg, rgba(229, 57, 53, 0.25) 0%, transparent 100%);
}

/* El borde izquierdo y el estado activo */
.sub-bar.border-red:hover, 
.sub-bar.border-red.active {
    color: white;
    border-left-color: var(--color-accent); /* Rojo AMFLEX #E53935 */
    background: rgba(229, 57, 53, 0.05); /* Un fondo muy sutil para no tapar el texto */
}

/* Ajuste del icono para que también sea rojo al activar */
.sub-bar.active i, 
.sub-bar:hover i {
    color: var(--color-accent);
    opacity: 1;
}

/* Activamos la animación de cascada cuando el padre es .active */
.product-item.active .sub-bar {
    animation: slideInSub 0.4s ease forwards;
}

/* Retrasos para el efecto cascada (uno por uno) */
.product-item.active .sub-bar:nth-child(1) { animation-delay: 0.1s; }
.product-item.active .sub-bar:nth-child(2) { animation-delay: 0.2s; }
.product-item.active .sub-bar:nth-child(3) { animation-delay: 0.3s; }
.product-item.active .sub-bar:nth-child(4) { animation-delay: 0.4s; }
.product-item.active .sub-bar:nth-child(5) { animation-delay: 0.5s; }
.product-item.active .sub-bar:nth-child(6) { animation-delay: 0.6s; }

/* Keyframe para el deslizamiento */
@keyframes slideInSub {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#dinamic-title,
#dinamic-text {
    opacity: 1;
    transition: opacity 0.3s ease;
   
}

.product-info-content {
    position: relative;
    z-index: 0; /* Siempre encima del ícono */
    width: 100%;
    max-width: none; /* ← Elimina el límite de 600px */
    padding-right: 80px; /* ← Espacio para evitar superposición con el ícono */
    box-sizing: border-box;
}

/* Imagen simple con borde redondeado y sombra sutil */
.product-image-container {
    width: 100%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 24px;
    transition: height 0.4s ease;
}

.product-image-container.show-img {
    height: 280px; /* Ajusta según necesites */
}

#dinamic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-animate {
    opacity: 1 !important;
}

/* Ícono grande de fondo para líneas principales */
.big-icon-bg {
    position: absolute;
    bottom: -40px;
    right: -40px;
    font-size: 18rem; /* Un poco más grande para efecto decorativo */
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 0; /* Siempre detrás */
}





/* --- SECCIÓN CLIENTES --- */
.clients-section {
    background-color: var(--bg-dark);
    padding: 80px 0;
    text-align: center;
}

.clients-header {
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.clients-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.clients-intro {
    font-size: 1.1rem;
    color: #bbb;
    line-height: 1.6;
}

/* --- CARRUSEL INFINITO (CSS PURO) --- */
.logos-slider {
    height: 120px;
    margin: auto;
    overflow: hidden; /* Oculta lo que se sale por los lados */
    position: relative;
    width: 100%;
    margin-bottom: 60px;
}

/* Difuminado a los lados para efecto elegante */
.logos-slider::before,
.logos-slider::after {
    background: linear-gradient(to right, var(--bg-dark) 0%, rgba(18,18,18,0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 100px;
    z-index: 0;
}

.logos-slider::before { left: 0; }
.logos-slider::after { right: 0; transform: rotate(180deg); }

.logos-track {
    display: flex;
    width: calc(250px * 10); /* Ancho total = ancho de slide * número de slides */
    animation: scroll 30s linear infinite; /* Animación continua */
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px; /* Espacio entre logos */
}

.slide img {
    max-width: 100%;
    max-height: 100px;
    
    
    opacity: 0.8;
    filter: none; 
    
    transition: opacity 0.3s, transform 0.3s;
}

.logos-track:hover .slide img {
    opacity: 1;
    filter: none;
   
}

/* La animación de desplazamiento */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); } /* Mueve la mitad y reinicia */
}


/* --- CAJA DE LLAMADA A LA ACCIÓN (CTA) --- */
.clients-cta-box {
    background: linear-gradient(135deg, #1f1f1f 0%, #161616 100%);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Decoración borde rojo a la izquierda */
.clients-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--color-accent); /* Rojo */
}

.clients-cta-box h3 {
    color: white;
    font-size: 1.5rem;
    margin-top: 0;
}

.clients-cta-box p {
    color: #aaa;
    margin-bottom: 25px;
}

.btn-cta {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: white;
    display: inline-block; /* Asegura que el botón tenga tamaño */
}

.btn-cta:hover {
    background-color: var(--color-accent);
    color: white;
}



/* --- SECCIÓN UBICACIÓN --- */
.location-section {
    background-color: #0e0e0e; /* Fondo oscuro sólido */
    padding: 80px 0;
    position: relative;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info ocupa menos, Mapa ocupa más */
    gap: 0; /* Sin espacio, se tocarán para el diseño integrado */
    background-color: var(--bg-card); /* #1A1A1A */
    border-radius: 12px;
    overflow: hidden; /* Para que el mapa no se salga de las esquinas */
    border: 1px solid #333;
}

/* --- TARJETA DE INFO (IZQUIERDA) --- */
.info-card {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Círculos de los iconos */
.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Para que no se aplaste */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-item:hover .icon-box {
    background-color: var(--color-accent); /* Rojo al pasar el mouse */
    border-color: var(--color-accent);
}

.info-item i {
    color: var(--color-hover); /* Icono Amarillo */
    font-size: 1.2rem;
    transition: color 0.3s;
}

.info-item:hover i {
    color: white; /* Icono blanco sobre fondo rojo */
}

/* Textos */
.info-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    margin: 0;
    color: #bbb;
    line-height: 1.6;
    font-size: 0.95rem;
}

.highlight-day {
    color: var(--color-hover); /* Amarillo para los días */
    font-weight: bold;
}

.phone-link {
    font-size: 1.3rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.phone-link:hover {
    color: var(--color-hover);
}

.sub-text {
    font-size: 0.8rem !important;
    opacity: 0.6;
}

/* --- MAPA (DERECHA) --- */
.map-container {
    min-height: 500px;
    width: 100%;
    position: relative;
    opacity: 0.6; /* Estado inicial apagado */
    filter: grayscale(30%);
    transition: all 0.5s ease;
}

/* AQUÍ ESTÁ LA CORRECCIÓN: */
/* Cuando el usuario pasa el mouse sobre el contenedor, el mapa se aclara */
.map-container:hover {
    opacity: 1; /* Recupera brillo total */
    filter: grayscale(0%); /* Recupera color total */
}

/* El botón aparece cuando pasas el mouse sobre el contenedor del mapa */
.map-container:hover .map-overlay-btn {
    opacity: 1;
    transform: translateY(5px);
}

.map-overlay-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background-color: var(--color-accent);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0; 
    transition: all 0.3s ease;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 900px) {
    .location-grid {
        grid-template-columns: 1fr; /* Una columna */
    }
    
    .map-container {
        min-height: 350px; /* Mapa más bajito en móvil */
        filter: none; /* En móvil mejor sin filtros raros */
    }
    
    .info-card {
        padding: 40px 20px;
    }

    .map-overlay-btn {
        opacity: 1;
        top: auto;
        bottom: 20px;
        right: 20px;
        font-size: 0.75rem;
    }
}








/* --- FOOTER MEJORADO --- */
.site-footer {
    background-color: #000000; /* Negro puro */
    padding: 50px 0 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Espacio entre elementos */
}

/* --- ICONOS SOCIALES --- */
.footer-social {
    display: flex;
    gap: 25px;
    margin-bottom: 10px;
}

.footer-icon {
    font-size: 1.5rem;
    color: #888; /* Color inicial gris sutil */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); /* Círculo muy sutil de fondo */
    text-decoration: none;
}

/* Efectos Hover (Colores de marca) */
.footer-icon:hover {
    transform: translateY(-3px); /* Flota un poquito */
    background: rgba(255, 255, 255, 0.1);
    color: white; /* El icono se vuelve blanco brillante */
}

.footer-icon.facebook:hover { color: #1877F2; }
.footer-icon.instagram:hover { color: #E1306C; }
.footer-icon.tiktok:hover { color: #00f2ea; text-shadow: 1px 1px 0 #ff0050; }

/* --- LÍNEA SEPARADORA --- */
.footer-divider-line {
    width: 60px;
    height: 2px;
    background-color: var(--color-accent); /* Rojo Amflex */
    margin: 10px 0 20px 0;
    opacity: 0.7;
}

/* --- TEXTOS --- */
.company-legal {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    letter-spacing: 0.5px;
}

.divider-dot {
    color: var(--color-hover); /* Amarillo */
    margin: 0 8px;
}

.dev-credits {
    color: #555;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.6;
}

.dev-link {
    color: #777;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.dev-link:hover {
    color: var(--color-hover); /* Amarillo */
    text-decoration: underline;
}




/* --- SECCIÓN VIDEOS --- */
.projects-video-section {
    background-color: #161616; /* Un tono intermedio entre negro y gris */
    padding: 80px 0;
   
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Adaptable y grande */
    gap: 40px;
    justify-content: center;
}

.video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Formato Cine obligatario */
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border-color: var(--color-hover); /* Borde amarillo al pasar el mouse */
}

/* La Imagen de Portada */
.video-cover {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Oscurecer un poco para que resalte el texto */
    transition: filter 0.3s;
}

.video-card:hover .video-cover img {
    filter: brightness(0.5); /* Más oscuro al pasar el mouse para enfoque */
}

/* Botón PLAY Personalizado */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(229, 57, 53, 0.9); /* Rojo Amflex con transparencia */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
    animation: pulse-red 2s infinite;
    transition: transform 0.3s, background 0.3s;
    z-index: 0;
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--color-accent); /* Rojo sólido */
}

/* Texto sobre el video */
.video-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 0;
    pointer-events: none; /* Para que el clic pase al video */
}

.video-overlay-text h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px black;
}

.video-overlay-text p {
    color: var(--color-hover); /* Amarillo */
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- ESTADO REPRODUCIENDO (Agrega esto al final del CSS) --- */
.video-card.video-playing {
    transform: none !important;     /* Deja de moverse */
    box-shadow: none !important;    /* Quita la sombra gigante */
    border-color: #444 !important;  /* Borde fijo discreto */
    cursor: default;                /* Quita el icono de manito */
}

.video-card.video-playing iframe {
    pointer-events: auto; /* ESTO ES LA CLAVE: Permite clics en el video */
}

/* Animación de latido para el Play */
@keyframes pulse-red {
    0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
    70% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 15px rgba(229, 57, 53, 0); }
    100% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}






/* --- POLITICA DE SEGURIDAD--- */

/* --- SECCIÓN POLÍTICA SST --- */
.policy-section {
    background-color: #0e0e0e;
    padding: 80px 0;
    color: #f5f5f5;
}

/* Header interno (Intro) */
.policy-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.policy-intro {
    font-size: 1.2rem; /* Un poco más grande para ser introductorio */
    line-height: 1.8;
    color: #ddd;
}

/* El párrafo conector ("Para ello...") */
.intro-connector {
    margin-top: 20px;
    color: var(--color-accent); /* Rojo para conectar con las tarjetas */
    font-weight: 600;
}

/* --- GRID DE TARJETAS --- */
.commitments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.commit-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 4px solid var(--color-accent); /* Borde Rojo Izquierdo */
    padding: 30px;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.commit-card:hover {
    transform: translateY(-5px);
    /* Sombra Amarilla sutil */
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.15); 
    border-color: #555;
    /* El borde izquierdo cambia a Amarillo */
    border-left-color: var(--color-hover); 
}

/* Íconos dentro de las tarjetas */
.card-icon {
    font-size: 1.8rem;
    color: var(--color-accent);
    min-width: 40px;
    text-align: center;
}

.card-text h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
}

.card-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #bbb;
    line-height: 1.5;
}

/* Tarjeta ancha */
.commit-card.full-width {
    grid-column: 1 / -1;
}

/* --- PIE DE PÁGINA DE POLÍTICA --- */
.policy-footer {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px dashed #555;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.policy-footer i {
    font-size: 2rem;
    color: #FFC107;
}

.policy-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
    font-style: italic;
}

/* --- BOTÓN DESCARGA --- */
.download-area {
    text-align: center;
}

.btn-download {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: var(--color-hover); 
    border-color: var(--color-hover);
    color: #121212; /* Texto oscuro para leerse bien sobre amarillo */
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4); /* Resplandor */
}


/* =========================================
   ESTILOS NUEVOS: PÁGINA DE PRODUCTO (APOYOS)
   ========================================= */

/* --- FONDOS Y SECCIONES --- */
.section-dark {
    background-color: var(--bg-dark); /* Usa tu variable existente #121212 */
    padding: 60px 0;
    position: relative;
}

.section-gray {
    background-color: #1a1a1a; /* Un tono ligeramente más claro que el bg-dark */
    padding: 80px 0;
    /* Sin bordes, como pediste, para transición limpia */
}

/* --- MAQUETACIÓN FLEXIBLE (ZIG-ZAG) --- */
/* Esto permite poner texto a un lado e imagen al otro */
.flex-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.flex-row.reverse {
    flex-direction: row-reverse;
}

.prod-text-col { flex: 1; color: var(--text-main); }
.prod-img-col { flex: 1; position: relative; display: flex; justify-content: center; }

/* Título alineado a la izquierda (Tu .section-title actual es centrado) */
.section-title-left {
    font-size: 2.5rem;
    color: var(--text-title);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
}

.separator-line {
    width: 80px;
    height: 4px;
    background-color: var(--color-hover); /* Amarillo */
    margin-bottom: 30px;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.prod-text-col p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* --- EFECTOS VISUALES (IMAGEN FLOTANTE) --- */
.glow-effect {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70%; height: 70%;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.2) 0%, transparent 70%);
    z-index: 0;
    filter: blur(50px);
}

.floating-img {
    position: relative;
    z-index: 0;
    max-width: 100%;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- LISTA TÉCNICA (ICONOS) --- */
.image-wrapper {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil */
    box-shadow: 0 10px 30px -10px rgba(229, 57, 53, 0.15);
    transition: all 0.4s ease;
}

.hover-zoom:hover .image-wrapper {
    border-color: var(--color-accent);
    box-shadow: 0 15px 40px -5px rgba(229, 57, 53, 0.3);
}

.hover-zoom img {
    width: 100%; display: block; transition: transform 0.5s ease;
}
.hover-zoom:hover img { transform: scale(1.1); }

.tech-list { list-style: none; padding: 0; margin-top: 30px; }

.tech-list li {
    display: flex; gap: 20px; margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px; border-radius: 8px;
    border-left: 3px solid var(--color-hover); /* Amarillo */
}

.tech-list i {
    font-size: 1.8rem;
    color: var(--color-hover); /* Amarillo */
    margin-top: 5px;
}

/* --- INSTALACIÓN (PASOS) --- */
.mb-50 { margin-bottom: 30px; } /* Ajustado para quitar espacio extra */
.center-text { text-align: center; }

.installation-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.step-card {
    background: linear-gradient(145deg, #1a1a1a, #111);
    padding: 30px; margin-bottom: 25px;
    border-radius: 8px; position: relative;
    padding-left: 90px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, border-color 0.3s;
}

.step-card:hover {
    transform: translateX(10px);
    border-color: var(--color-hover); /* Amarillo al hover */
    background: #1a1a1a;
}

.step-number {
    position: absolute; 
    left: 25px; 
    top: 20px; /* Lo subí un poquito para alinear mejor */
    font-size: 3rem; 
    font-weight: 900;
    
    color: var(--color-hover); /* Amarillo puro */
    opacity: 1; /* CAMBIO: Opacidad al 100% para que sea amarillo real */
    
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Sombra para darle profundidad */
}

.step-card h3 { color: var(--text-title); margin-bottom: 10px; font-size: 1.3rem; }

.install-image {
    position: relative; 
    border-radius: 12px; 
    overflow: hidden;
   
    
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.install-image img { 
    width: 100%; 
    display: block; 
}

/* --- CARACTERÍSTICAS (GRID) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px; margin-top: 40px;
}

.feature-card {
    background: #0e0e0e; padding: 40px 30px; text-align: center;
    border-radius: 8px;
    border-top: 4px solid var(--color-accent); /* Rojo en reposo */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--color-hover); /* Amarillo en hover */
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.15);
}

.feature-card .icon {
    font-size: 3rem; color: #555; margin-bottom: 25px; transition: color 0.3s;
}
.feature-card:hover .icon { color: var(--color-hover); }
.feature-card h3 { color: white; margin-bottom: 15px; font-size: 1.2rem; }

/* --- DESCARGA --- */
.download-block {
    background: linear-gradient(90deg, #1a1a1a 0%, #111 100%);
    border-radius: 12px; border: 1px dashed #444;
    padding: 40px; display: flex; align-items: center;
    gap: 40px; max-width: 900px; margin: 0 auto;
}

.tech-sheet-preview {
    width: 160px; flex-shrink: 0; transform: rotate(-5deg); transition: transform 0.3s;
}
.download-block:hover .tech-sheet-preview { transform: rotate(0deg) scale(1.05); }
.tech-sheet-preview img {
    width: 100%; border-radius: 6px; border: 3px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.download-content h3 { font-size: 1.8rem; color: white; margin-bottom: 10px; }

/* --- SECCIÓN REDES SOCIALES --- */
.social-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

.social-card {
    background: #121212;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Colores Específicos Hover */
.social-card.facebook:hover { border-color: #1877F2; }
.social-card.instagram:hover { border-color: #E1306C; }
.social-card.tiktok:hover { border-color: #00f2ea; }

.social-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    transition: color 0.3s;
}

.social-card.facebook .social-icon { color: #1877F2; }
.social-card.instagram .social-icon { color: #E1306C; }
.social-card.tiktok .social-icon { color: #00f2ea; text-shadow: 2px 2px 0 #ff0050; }

.social-card h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.social-card p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.social-link-text {
    color: var(--color-hover);
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.social-card:hover .social-link-text {
    border-bottom-color: var(--color-hover);
}


/* --- SECCIÓN FEED FACEBOOK --- */
.fb-link-text {
    color: #1877F2; /* Azul Facebook */
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}

.fb-grid {
    display: grid;
    /* Esto crea 3 columnas automáticamente en escritorio */
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    margin-top: 40px;
}

.fb-card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1; /* Hace que sean cuadrados perfectos como Instagram/FB */
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #333;
    cursor: pointer;
}

.fb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar el cuadrado */
    transition: transform 0.5s ease;
}

/* La capa oscura con el icono que aparece al pasar el mouse */
.fb-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(24, 119, 242, 0.85); /* Azul Facebook semitransparente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease;
}

.fb-overlay i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
}

.fb-overlay span {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* EFECTOS HOVER */
.fb-card:hover .fb-overlay {
    opacity: 1; /* Aparece la capa azul */
}

.fb-card:hover img {
    transform: scale(1.1); /* La imagen de fondo hace un zoom sutil */
}

/* --- RESPONSIVE PARA EL FEED --- */
@media screen and (max-width: 900px) {
    .fb-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}

@media screen and (max-width: 600px) {
    .fb-grid {
        grid-template-columns: 1fr; /* 1 columna en móviles */
    }
}


/* --- SECCIÓN DE PROYECTOS --- */
.projects-grid-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columnas */
    gap: 40px; /* Espacio generoso entre proyectos */
}

.project-card {
    background-color: #121212;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column; /* Imagen arriba, texto abajo */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: var(--color-hover); /* Borde Amarillo al pasar el mouse */
}

/* Imagen del Proyecto */
.project-image {
    width: 100%;
    height: 300px; /* Altura fija para uniformidad */
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta para llenar sin deformar */
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1); /* Zoom suave */
}

/* Información del Proyecto */
.project-info {
    padding: 30px;
    flex-grow: 1; /* Para que todas las tarjetas tengan la misma altura */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--color-accent); /* Línea roja debajo del título */
    padding-bottom: 10px;
    display: inline-block;
}

.project-meta p {
    color: #ccc;
    font-size: 0.95rem;
    margin: 10px 0;
    line-height: 1.5;
}

.project-meta i {
    color: var(--color-hover); /* Iconos amarillos */
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.project-meta strong {
    color: white;
}



/* =================================================================
   ESTILOS MÓVILES (COMPLETE REVISION)
   ================================================================= */
@media screen and (max-width: 768px) {

    /* --- 1. AJUSTES GENERALES DE TEXTO Y ESPACIADO --- */
    h1 { 
        font-size: 2rem; 
        padding: 0 15px; 
        line-height: 1.2; 
    }
    
    .hero-subtitle { 
        font-size: 1.1rem; 
        padding: 0 20px; 
    }
    
    /* Reducir padding en todas las secciones principales */
    .section-dark, .section-gray, 
    .intro-section, .projects-video-section, .clients-section,
    .products-section, .location-section {
        padding: 40px 0;
       
    }

    

    /* Compensa la altura del menú fijo para que no tape el contenido */
    .hero-container {
        padding-top: 100px;
    }

    /* OCULTAR MENÚ DESKTOP */
    .menu-links {
        display: none !important;
    }

    

    /* --- 3. BOTÓN HAMBURGUESA --- */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10003;
        padding: 0;
    }
    
    .mobile-menu-toggle .bar {
        width: 25px;
        height: 2px;
        background: white;
        margin: 3px 0;
        transition: 0.3s;
    }

    /* --- 4. OVERLAY Y CONTENEDOR DEL MENÚ --- */
    .mobile-menu-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(0, 0, 0, 0.8);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1; visibility: visible;
    }

    .mobile-menu-container {
        position: fixed;
        top: 0; right: 0;
        width: 85%;
        max-width: 320px; /* Un ancho prudente */
        height: 100vh;
        z-index: 10000;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: #121212;
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    }

    .mobile-menu-container.active {
        transform: translateX(0);
    }

    .mobile-menu {
        width: 100%;
        height: 100%;
        overflow-y: auto; /* Scroll si el menú es muy alto */
    }

    /* Header del menú (Botón Cerrar) */
    .mobile-menu-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: #0e0e0e;
    }

    .close-mobile-menu {
        background: transparent;
        border: 1px solid rgba(255,255,255,0.3);
        color: white;
        font-size: 0.8rem;
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* --- 5. ESTILOS DE LOS ENLACES (UNIFICADOS) --- */
    /* Nivel 1, 2 y 3 comparten esta base para alinearse igual */
    
    .mobile-link, 
    .mobile-dropdown-btn, 
    .mobile-sub-link, 
    .mobile-nested-btn {
        display: flex !important;
        justify-content: space-between !important; /* Texto izq - Icono der */
        align-items: center !important;
        width: 100% !important;
        padding: 16px 20px !important;
        box-sizing: border-box !important;
        
        text-align: left !important;
        color: #eee;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        cursor: pointer;
        transition: background 0.2s, padding-left 0.2s;
    }

    /* Hover General */
    .mobile-link:hover, .mobile-dropdown-btn:hover, 
    .mobile-sub-link:hover, .mobile-nested-btn:hover {
        background-color: #1f1f1f;
        color: var(--color-accent);
        padding-left: 25px !important;
    }

    /* --- 6. NIVELES DE JERARQUÍA (Colores y Sangrías) --- */

    .mobile-menu-list, 
    .mobile-submenu, 
    .mobile-nested-menu {
        list-style: none !important; /* Adiós puntos */
        padding: 0 !important;       /* Adiós espacio izquierdo automático */
        margin: 0 !important;
    }

    /* NIVEL 2: Submenú (Construcción, Minería, etc.) */
    .mobile-submenu {
        background-color: #0a0a0a;
        display: none; /* Oculto por defecto */
    }

    .mobile-sub-link, 
    .mobile-nested-btn {
        padding-left: 40px !important; /* Indentación visual */
        font-size: 0.95rem;
        border-left: 3px solid transparent; /* Para marcar activo */
    }

    /* NIVEL 3: Items Finales (Apoyos, Juntas, etc.) */
    .mobile-nested-menu {
        background-color: #000000;
        display: none; /* Oculto por defecto */
        box-shadow: inset 0 5px 10px rgba(0,0,0,0.5);
    }

    .mobile-nested-menu .mobile-link {
        padding-left: 60px !important; /* Mayor indentación */
        font-size: 0.9rem;
        color: #aaa;
    }

    /* --- 7. LÓGICA DE ACTIVACIÓN (DESPLEGABLES) --- */
    
    /* Mostrar submenús cuando tienen la clase .active */
    .mobile-dropdown.active .mobile-submenu,
    .mobile-nested-dropdown.active .mobile-nested-menu {
        display: block !important;
    }

    /* Rotación de flechas */
    .mobile-dropdown-btn i,
    .mobile-nested-btn i {
        margin-left: 10px;
        transition: transform 0.3s ease;
    }

    .mobile-dropdown.active > .mobile-dropdown-btn i {
        transform: rotate(180deg);
        color: var(--color-hover);
    }

    .mobile-nested-dropdown.active > .mobile-nested-btn i {
        transform: rotate(90deg);
        color: var(--color-hover);
    }
    
    /* Resaltar el botón padre cuando está abierto */
    .mobile-nested-dropdown.active > .mobile-nested-btn {
        background-color: #151515;
        color: white;
        border-left: 3px solid var(--color-accent);
    }

    /* --- 8. AJUSTES DE OTRAS SECCIONES EN MÓVIL --- */

    .products-container {
        flex-direction: column;
        gap: 0;
    }
    
    .products-nav { 
        width: 100%; 
        order: 1; 
    }

    /* Contenedor gris de la derecha */
    .products-content-display { 
        width: 100%; 
        order: 2; 
        height: auto; 
        min-height: 500px; /* Altura mínima para que no se vea aplastado */
        border-radius: 0 0 8px 8px;
        display: flex;       /* NUEVO: Flex para centrar hijos */
        align-items: center; /* NUEVO: Centrar verticalmente */
    }
    
    /* La ficha de producto individual */
    .product-description {
        position: relative; 
        width: 100%; /* Ocupa todo el ancho */
        visibility: visible; 
        opacity: 1; 
        display: none; /* Ocultamos todos por defecto */
        padding: 40px 20px; /* Padding equilibrado */
        text-align: center;
        box-sizing: border-box;
    }
    
    /* Mostrar solo la ficha activa */
    .product-description.active {
        display: flex; 
        flex-direction: column;
        align-items: center; /* Centrar elementos hijos horizontalmente */
        justify-content: center; /* Centrar verticalmente */
    }

    /* --- CORRECCIÓN CRÍTICA DE ALINEACIÓN --- */
    .product-info-content {
        padding-right: 0 !important; /* QUITA EL ESPACIO DE LA DERECHA DEL DESKTOP */
        width: 100%;
        max-width: 100%;
    }

    /* Intro Grid */
    .intro-grid { 
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 40px; 
    }

    /* Centramos el encabezado (Título y Tagline) */
    .intro-header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center; /* Esto es vital para centrar la barra amarilla */
    }

    /* Centramos el contenido de texto */
    .intro-content { 
        border-left: none; /* Quitamos la línea vertical de escritorio */
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea separadora arriba */
        padding-top: 30px; 
        padding-left: 0; /* Quitamos el padding izquierdo */
        text-align: center; /* CENTRADO DE TEXTO */
    }

    /* Opcional: Ajustar tamaño de letra del párrafo destacado en móvil */
    .lead-paragraph {
        font-size: 1.1rem;
    }

    /* Mapa y Ubicación */
    .location-grid { grid-template-columns: 1fr; }
    .map-container { min-height: 300px; }

    /* Videos */
    .video-grid { grid-template-columns: 1fr; }

    .company-legal {
        display: flex;       /* Usamos Flexbox para ordenar */
        flex-direction: column; /* Ponemos uno debajo del otro */
        gap: 5px;            /* Espacio entre el nombre y el RUC */
        line-height: 1.4;
    }

    /* Ocultamos el puntito separador en móvil porque ya estarán en líneas separadas */
    .divider-dot {
        display: none; 
    }

    /* 1. Reset General de Anchos para evitar cortes */
    .container-width {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* 2. Transformar filas en columnas (Texto arriba, Imagen abajo) */
    .flex-row {
        flex-direction: column !important;
        gap: 40px !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* 3. Caso Especial: Sección Composición */
    /* En HTML la imagen está primero. Usamos column-reverse para que el Texto suba y la Imagen baje */
    .flex-row.reverse {
        flex-direction: column-reverse !important;
    }

    /* 4. Centrar Textos y Títulos */
    .prod-text-col, 
    .section-title-left {
        text-align: center !important;
        width: 100% !important;
        padding: 0 !important; /* Quitamos paddings laterales extraños */
    }

    /* Centrar la línea amarilla decorativa */
    .separator-line {
        margin: 0 auto 30px auto !important;
    }

    /* 5. Imágenes (Centradas y seguras) */
    .prod-img-col {
        width: 100% !important;
        display: flex;
        justify-content: center;
        padding: 0 !important;
    }
    
    .floating-img, 
    .image-wrapper img {
        max-width: 100% !important; /* Asegura que no se salga de la pantalla */
        height: auto !important;
    }

    /* 6. Sección Instalación (Dinámica) */
    .installation-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    /* Tarjetas de pasos */
    .step-card {
        text-align: center !important;
        padding: 70px 20px 30px 20px !important; 
        width: 100% !important;
        box-sizing: border-box !important; /* CLAVE para que no se corte */
    }

    /* Centrar el número grande (01, 02) */
    .step-number {
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 20px !important;
    }
    
    .install-image img {
        width: 100% !important;
        border-radius: 8px;
    }

    /* 7. Grid de Características (Iconos) */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* 8. Bloque de Descarga (PDF) */
    .download-block {
        flex-direction: column !important;
        text-align: center !important;
        padding: 30px 20px !important;
        gap: 30px !important;
    }

    .tech-sheet-preview {
        width: 140px !important;
        transform: rotate(0deg) !important; /* Enderezar imagen */
        margin: 0 auto !important;
    }
    

    .projects-grid {
        grid-template-columns: 1fr; /* 1 Columna en Tablet/Móvil */
        gap: 30px;
    }
    
    .project-image {
        height: 250px; /* Un poco más bajita en móvil */
    }
}