html, body {
    /* Desactiva el suavizado nativo para que JS tenga control total */
    scroll-behavior: auto !important; 
    
    /* Mantiene tus estilos previos */
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Roboto', sans-serif; 
    background-color: #000; 
    overflow-x: hidden; 
}
/* =========================================
   RESET Y CONFIGURACIÓN BÁSICA
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; background-color: #000; overflow-x: hidden; }

/* ALTURA TOTAL VIRTUAL (Cards + About + Footer) */
#scroll-spacerD {
    height: 800vh; /* Espacio suficiente para toda la secuencia */
    width: 1px;
    pointer-events: none;
}

/* CONTENEDOR PRINCIPAL FIJO */
#main-containerD {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100dvh;
    overflow: hidden;
}

/* =========================================
   HEADER (Z-Index 1000)
   ========================================= */
#headerD {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 10dvh;
    background-color: #0956f5;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%;
    z-index: 1000; 
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
}
.logo-imgD { height: 4dvh; width: auto; }
.nav-menuD { display: flex; gap: 2vw; }
.nav-linkD {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.8vh;
    font-weight: 400;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    opacity: 0.6; /* Estado inactivo */

    /* RESERVAMOS EL ESPACIO ABAJO: */
    /* Ponemos un borde del mismo grosor pero transparente */
    border-bottom: 2px solid transparent;
    padding-bottom: 4px; 
    
    /* EVITAR SALTO DE NEGRITA: */
    /* En lugar de cambiar el weight, usamos un shadow sutil 
       que simula grosor sin cambiar el ancho de la palabra */
    display: inline-block;
}
.nav-linkD:hover { opacity: 0.8; }

/* =========================================
   HERO SECTION (Fondo y Texto)
   ========================================= */
#heroSectionD {
    position: relative; top: 10dvh;
    height: 90dvh; width: 100%;
}

.video-bgD {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.video-overlayD {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent; z-index: 1;
}

/* Texto Principal (Alineado izquierda, posicionado derecha) */
.hero-contentD {
    position: absolute; top: 50%;
    left: 55%; right: auto; width: auto;
    transform: translateY(-50%);
    z-index: 10;
    text-align: left;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    pointer-events: none;
}
.hero-smallD { font-family: 'Oswald', sans-serif; font-size: 2.5dvh; font-weight: 700; margin-bottom: 0.5dvh; letter-spacing: 2px; text-transform: uppercase; }
.hero-largeD { font-family: 'Oswald', sans-serif; font-size: 11dvh; line-height: 0.9; font-weight: 700; text-transform: uppercase; }
.hero-mediumD { font-family: 'Oswald', sans-serif; font-size: 4dvh; font-weight: 500; margin-top: 1dvh; text-transform: uppercase; color: #e0e0e0; }

.ribbon-imgD {
    position: absolute;
    
    /* CAMBIO 1: Posición Base Segura */
    /* Lo ponemos en 0 y usamos margin para empujar suavemente hacia abajo */
    top: -0.5dvh; 
     /* Espacio de respiración respecto al header */
    margin-top: -0.5dvh;
    left: -2vw;
    width: 45vw; /* Tamaño original para monitores grandes */
    max-width: 700px;
    
    z-index: 999; 
    pointer-events: none;
}

/* AJUSTE PARA NOTEBOOKS (Pantallas con poca altura) */
@media (max-height: 800px) {
    .ribbon-imgD { 
        /* CAMBIO 2: Reducir tamaño */
        /* Al ser más chica, molesta menos visualmente */
        width: 32vw; 
        
        /* CAMBIO 3: Posición Específica */
        /* En pantallas chicas, lo pegamos más arriba pero SIN tocar el header */
        margin-top: 0.5dvh; 
        
        left: -2vw; 
    }
}

/* =========================================
   TARJETAS (Z-Index 30-50)
   ========================================= */
.cards-wrapperD {
    position: absolute; top: 0; right: 0;
    width: 100%; height: 100%; pointer-events: none;
}
.cardD {
    position: absolute;
    top: 7.5dvh; 
    left: 8vw; 
    width: calc(75dvh * 2.2);
    height: 75dvh;
    max-width: 90vw;
    /* CAMBIO CLAVE: Reactivamos los clicks y selección de texto */
    pointer-events: auto; 
    
    background-color: transparent !important;
    box-shadow: none !important;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    will-change: transform;
    transform-origin: 80% 100%;
}
.card-bg-layerD {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: fill; z-index: 1;
    filter: drop-shadow(-10px 10px 20px rgba(0,0,0,0.5));
}
.card-inner-contentD {
    position: relative; z-index: 2;
    width: 45%; margin-left: 10%; 
    color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.card-inner-contentD h2 { font-family: 'Oswald', sans-serif; font-size: 5dvh; text-transform: uppercase; margin-bottom: 2dvh; }
.card-inner-contentD p { font-family: 'Roboto', sans-serif; font-size: 2.2dvh; text-align: justify; }

#card3 .card-bg-layerD {
    /* Escalar al 95% del tamaño */
    transform: scale(0.92);
  }
#card1 { z-index: 30; }
#card2 { z-index: 40; }
#card3 { z-index: 50; }

/* =========================================
   ESTILOS INTERNOS ABOUT US (Responsive DVH)
   ========================================= */

/* Contenedor del texto */
.about-inner-contentD {
    position: absolute;
    z-index: 2;
    
    top: 20%; 
    
    /* CAMBIO 1: Movemos más a la derecha (antes 8%) */
    left: 15%; 
    
    /* CAMBIO 2: Aumentamos el ancho para líneas más largas (antes 50vw) */
    width: 70vw; 
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    
    color: white;
    background: transparent; 
    padding: 0;
}

/* 1. Mini Icono (Color) */
.about-mini-iconD {
    height: 2.2dvh; /* Mismo tamaño que en las tarjetas */
    width: auto;
    margin-bottom: 0.5dvh;
}

/* 2. Título H2 */
.about-inner-contentD h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 7dvh; /* Un poco más grande que las tarjetas para jerarquía */
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 3dvh;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* 3. Párrafo */
.about-inner-contentD p {
    font-family: 'Roboto', sans-serif;
    font-size: 2.1dvh; /* Tamaño legible */
    line-height: 1.5;
    font-weight: 300; /* Letra un poco más fina */
    margin-bottom: 4dvh;
    
    text-align: justify; /* Justificado como pediste */
    width: 100%;
    
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* Sombra para leer sobre la foto */
}

/* Negritas dentro del párrafo */
.about-inner-contentD p b {
    font-weight: 700;
}

/* 4. Botones Wrapper */
.about-btns-wrapperD {
    display: flex;
    gap: 1.5vw;
}

/* Estilo Base Botones About */
.about-btnD {
    border: none;
    border-radius: 10px;
    padding: 1.5dvh 3vw; /* Un poco más anchos */
    font-size: 1.8dvh;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0.6dvh 0 rgba(0,0,0,0.2);
    transition: transform 0.1s, box-shadow 0.1s;
}

.about-btnD:active {
    transform: translateY(0.3dvh);
    box-shadow: 0 0.3dvh 0 rgba(0,0,0,0.2);
}

/* Colores Específicos (Celeste y Azul Oscuro) */
.btn-about-lightD {
    background-color: #4da6ff; /* Celeste vibrante */
    color: white;
}

.btn-about-darkD {
    background-color: #0044cc; /* Azul profundo corporativo */
    color: white;
}

/* 5. Logo SL (Esquina Inferior Derecha) */
.about-sl-logoD {
    position: absolute;
    bottom: 5dvh; 
    right: 5vw;
    
    height: 8dvh; /* Tamaño proporcional en DVH */
    width: auto;
    
    z-index: 2;
    opacity: 0.9;
}
.cta-buttonD {
    padding: 15px 40px; background-color: #0956f5; color: white;
    border: none; font-size: 1.2rem; cursor: pointer;
    font-family: 'Oswald', sans-serif; text-transform: uppercase;
}

/* =========================================
   FOOTER (Z-Index 56)
   ========================================= */
#footerD {
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 42dvh;
    background-color: #333333;
    z-index: 100;
    transform: translateY(100%); will-change: transform;
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 3dvh 5vw 5dvh 5vw; gap: 2vw;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.footer-colD { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    height: 100%;
    align-items: flex-start; 
    justify-content: flex-start; 
}

/* --- COLUMNA 1: MENÚ --- */
.f-itemD { 
    height: 1.5dvh; 
    width: auto;    
    
    margin-bottom: 1.8dvh; 
    display: block; 
    object-fit: contain;
    object-position: left center; 
}
.col-navD .f-itemD:nth-child(1) {
    height: 1.3dvh;
}

.col-navD .f-itemD:nth-child(2) {
    height: 1.3dvh; 
}

.col-navD .f-itemD:nth-child(3) {
    height: 1.3dvh; 
}

.col-navD .f-itemD:nth-child(4) {
    height: 1.7dvh; 
}

.col-navD .f-itemD:nth-child(5) {
    height: 1.6dvh; 
}

.col-navD .f-itemD:nth-child(6) {
    height: 1.3dvh; 
}

.col-navD .f-itemD:nth-child(7) {
    height: 1.3dvh; 
}

/* BOTÓN CANAL DE DENUNCIAS */
.btn-denunciasD {
    margin-top: 1.5dvh; 
    background-color: #ffffff; 
    color: #333333;
    border: none; 
    border-radius: 20px;
    padding: 0.6dvh 1.2vw; 
    width: fit-content; 
    align-self: flex-start;
    font-family: 'Roboto', sans-serif; 
    font-weight: 700; 
    font-size: 1.4dvh;
    cursor: pointer; 
    text-transform: uppercase;
}

.col-navD { 
    margin-right: 4vw; 
}

/* --- COLUMNA 2: CONTACTO (Aquí estaba lo que faltaba) --- */
.f-headerD { 
    height: 1.5dvh; 
    width: auto; 
    margin-top: 1.2dvh; 
    margin-bottom: 0.8dvh;
    display: block; 
        object-fit: contain;
    object-position: left center;  
}
.f-headerD:first-child { margin-top: 0; }
/* 1. ANTOFAGASTA  */
.col-contactD .f-headerD:nth-of-type(1) {
    height: 1.2dvh; /* Base */
}

/* 2. SANTIAGO  */
.col-contactD .f-headerD:nth-of-type(2) {
    height: 1.2dvh; /* Probablemente igual que Antofagasta */
}

/* 3. TELÉFONO */
.col-contactD .f-headerD:nth-of-type(3) {
    height: 1.6dvh; /* Bajamos bastante para igualar grosor */
}

/* 4. CORREO  */
.col-contactD .f-headerD:nth-of-type(4) {
    height: 1.2dvh; /* Bajamos para igualar a Teléfono */
}
/* ESTILO DEL TEXTO (IMPORTANTE: COLOR CLARO) */
.f-text-pD {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8dvh; 
    color: #e0e0e0; /* Gris claro para que se vea sobre el fondo oscuro */
    margin: 0;
    margin-bottom: 0.5dvh;
    line-height: 1.2;
    font-weight: 300;
}

/* CONTENEDOR ICONOS SOCIALES */
.f-socials-wrapperD {
    display: flex;
    gap: 1vw; 
    margin-top: 2dvh;
}

/* ICONOS INDIVIDUALES */
.social-iconD {
    height: 3.5dvh; 
    width: auto;
    transition: transform 0.2s;
    cursor: pointer;
}
.social-iconD:hover { transform: scale(1.1); }

/* -- COLUMNA 3: CERTIFICACIONES -- */
.col-certsD {
    display: flex;
    flex-direction: column;
    
    /* CAMBIO CLAVE: Logos arriba, Copyright abajo */
    justify-content: space-between; 
    align-items: flex-end; /* Todo a la derecha */
}

.logos-rowD {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.combined-logosD {
    height: 9.5dvh; 
    width: auto;
}

/* ESPACIADOR INVISIBLE */
.spacerD {
  display:none;
}

/* COPYRIGHT SVG - SOLUCIÓN DEFINITIVA */
.f-copyrightD {
    height: 3.5dvh; /* Tamaño que pediste */
    width: auto;
    
    /* Aseguramos que sea blanco por si el SVG es negro */
    filter: brightness(0) invert(1); 
    
    opacity: 0.6;
    display: block;
    
    /* Quitamos márgenes extra que puedan empujarlo fuera */
    margin: 0; 
    
    /* BORDE DE PRUEBA: Si después de guardar ves un cuadro rojo abajo, 
       significa que el archivo está ahí. Luego lo borras. */
    /* border: 1px solid red; */ 
}


/* =========================================
   ESTILOS INTERNOS DE TARJETAS (RESPONSIVE DVH)
   ========================================= */

/* Contenedor del texto dentro de la tarjeta */
/* Contenedor del texto dentro de la tarjeta */
.card-inner-contentD {
    position: absolute;
    z-index: 2;
    
    /* POSICIÓN: */
    /* Lo bajamos un poco (de 22% a 26%) para centrarlo mejor en la zona verde */
    top: 26%; 
    /* Lo pegamos más a la izquierda (de 6% a 4.5%) */
    left: 4.5%; 
    
    /* ANCHO (La clave para el párrafo): */
    /* Reducimos de 35vw a 28vw. */
    /* Esto obliga al texto a bajar de línea antes, manteniéndolo "dentro" del ancho del título */
    width: 28vw; 
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: white;
}

/* 1. Mini Icono */
.card-mini-iconD {
    /* Reducimos tamaño (de 4dvh a 2.2dvh) */
    height: 2.2dvh; 
    width: auto;
    
    /* Lo pegamos al título (de 1.5dvh a 0.5dvh) */
    margin-bottom: 0.5dvh; 
}

/* 2. Título H2 */
.card-inner-contentD h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 6dvh; 
    line-height: 0.9;
    text-transform: uppercase;
    
    /* Reducimos separación con el párrafo */
    margin-bottom: 1.5dvh; 
    
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 3. Párrafo */
.card-inner-contentD p {
    font-family: 'Roboto', sans-serif;
    
    /* Un pelín más pequeño para que se vea elegante */
    font-size: 1.9dvh; 
    
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 4dvh;
    text-align: justify;
    text-justify: inter-word; 
    /* Hacemos que el párrafo ocupe el 95% del ancho del contenedor nuevo */
    width: 95%; 
    
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 4. Contenedor Botones */
.card-btns-wrapperD {
    display: flex;
    gap: 1.5vw; /* Separación entre botones */
}

/* Estilo Base Botón */
.card-btnD {
    border: none;
    border-radius: 10px; /* Bordes redondeados suaves */
    
    /* Padding y Fuente en DVH para que el botón también se encoja */
    padding: 1.5dvh 2.5vw; 
    font-size: 1.8dvh;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    
    /* EFECTO RELIEVE (Sombra sólida abajo) */
    box-shadow: 0 0.6dvh 0 rgba(0,0,0,0.2); 
    transition: transform 0.1s, box-shadow 0.1s;
}

/* Efecto Click (Hundirse) */
.card-btnD:active {
    transform: translateY(0.3dvh);
    box-shadow: 0 0.3dvh 0 rgba(0,0,0,0.2);
}

/* =========================================
   COLORES ESPECÍFICOS POR TARJETA
   ========================================= */

/* --- CARD 1 (VERDE - Ya estaba listo) --- */
#card1 .btn-lightD { background-color: #c6f1d6; color: #2d6a4f; }
#card1 .btn-darkD { background-color: #2d6a4f; color: white; }


/* --- CARD 2 (LOGÍSTICA - Celeste/Azul) --- */
/* Botón Claro: Blanco puro con texto azul */
#card2 .btn-lightD { 
    background-color: #ffffff; 
    color: #417ce0; /* Azul similar al botón oscuro para el texto */
}

/* Botón Oscuro: Azul Rey (según mockup) */
#card2 .btn-darkD { 
    background-color: #417ce0; /* Tono azul vibrante */
    color: white; 
}
/* AJUSTE ESPECÍFICO CARD 2: Espacio para tildes en título doble */
#card2 .card-inner-contentD h2 {
    /* Aumentamos de 0.9 a 1.1 para que no se corten los acentos */
    line-height: 1.1; 
    
    /* Como aumentamos el alto, reducimos un poco el margen inferior 
       para que no empuje tanto el párrafo hacia abajo */
    margin-bottom: 1dvh;
}

/* --- CARD 3 (OPERACIÓN MINERA - Naranja) --- */
/* Botón Claro: Amarillo Crema suave */
#card3 .btn-lightD { 
    background-color: #fcecb8; 
    color: #d15b28; /* Color terracota para el texto */
}

/* Botón Oscuro: Naranja Terracota intenso */
#card3 .btn-darkD { 
    background-color: #d15b28; 
    color: white; 
}

/* =========================================
   ESTRUCTURA COMPARTIDA (NO BORRAR)
   ========================================= */
.sliding-sectionD {
    position: absolute;
    top: 10dvh; /* Debajo del header */
    left: 0;
    width: 100%;
    height: 90dvh; /* Altura corregida */
    
    transform: translateX(100%); 
    will-change: transform;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    
    overflow: hidden;
    /* Quitamos el display flex global para permitir posicionamiento libre interno */
    display: block; 
}

/* FONDOS (Para que no se vean transparentes) */
.section-bg-layerD {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Z-INDEX */
#aboutSectionD   { z-index: 70; }
#newsSectionD    { z-index: 80; }
#contactSectionD { z-index: 90; }


/* =========================================
   ESTILOS ESPECÍFICOS: ABOUT US
   ========================================= */
.about-specific-contentD {
    position: absolute;
    z-index: 2;
    
    /* Tu configuración aprobada */
    top: 20%; 
    left: 15%; 
    width: 70vw; 
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: white;
}

/* Elementos internos de About */
.about-mini-iconD { height: 2.2dvh; width: auto; margin-bottom: 0.5dvh; }

.about-specific-contentD h2 {
    font-family: 'Oswald', sans-serif; font-size: 7dvh; line-height: 0.9;
    text-transform: uppercase; margin-bottom: 3dvh;
}

.about-specific-contentD p {
    font-family: 'Roboto', sans-serif; font-size: 2.1dvh; line-height: 1.5;
    font-weight: 300; margin-bottom: 4dvh; text-align: justify;
}

.about-btns-wrapperD { display: flex; gap: 1.5vw; }

/* Logo esquina */
.about-sl-logoD {
    position: absolute; bottom: 5dvh; right: 5vw;
    height: 8dvh; width: auto; z-index: 3; opacity: 0.9;
}

/* Botones About */
.btn-about-lightD { background-color: #4da6ff; color: white; }
.btn-about-darkD { background-color: #0044cc; color: white; }

/* CAPA OSCURA PARA LEER TEXTO */
.dark-overlayD {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Color Negro con 50% de opacidad */
    /* Puedes cambiar el 0.5 a 0.7 si necesitas más oscuridad */
    background-color: rgba(0, 0, 0, 0.4);
    
    z-index: 1; /* Se queda al fondo junto con la imagen */
    pointer-events: none; /* Permite clickear a través de ella si fuera necesario */
}


/* =========================================
   ESTILOS ESPECÍFICOS: CONTACTO (Placeholder)
   ========================================= */
.contact-inner-contentD {
    position: absolute; z-index: 2;
    top: 25%; left: 10%; width: 40%; /* Ejemplo distinto */
    color: white;
}
.contact-inner-contentD h2 { font-family: 'Oswald', sans-serif; font-size: 6dvh; }
/* Z-INDEX ESCALONADO (Para que se tapen una a una) */
#aboutSectionD   { z-index: 70; }
#newsSectionD    { z-index: 80; }
#contactSectionD { z-index: 90; }
#footerD { 
    z-index: 100; /* EL MÁS ALTO (excepto header) */
    background-color: #333333; /* Para que no sea transparente */
}

/* CLASE COMPARTIDA PARA LAS 3 SECCIONES */
.sliding-sectionD {
    position: absolute;
    top: 10dvh; /* Pegado justo debajo del header */
    left: 0;
    width: 100%;
    
    /* ESTO ARREGLA LA ALTURA: */
    height: 90dvh; /* Ocupa todo el resto de la pantalla */
    
    /* Transformación inicial para que aparezcan desde la derecha */
    transform: translateX(100%); 
    will-change: transform;
    
    /* IMPORTANTE: Flex para centrar contenido, pero imagen absoluta */
    display: flex; 
    justify-content: flex-start; 
    align-items: center;
    
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

/* IMAGEN DE FONDO (El arreglo del hueco) */
.section-bg-layerD {
    position: absolute;
    top: 0; 
    left: 0;
    
    /* FORZAMOS A OCUPAR TODO EL CONTENEDOR */
    width: 100%; 
    height: 100%; 
    
    object-fit: cover; /* Para que no se deforme */
    z-index: 1; /* Al fondo */
}}
/* =========================================
   ESTILOS SECCIÓN NOTICIAS (V5 - Alargadas y Curvas)
   ========================================= */

#newsSectionD {
    position: relative;
    background: #0848ba; 
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

/* EL FONDO SÓLIDO */
.news-bg-splitD {
    position: absolute;
    inset: 0;
    background-color: #0848ba;
    z-index: 0; /* Al fondo de todo */
}

/* --- LA TRAMA SVG --- */
.news-pattern-bgD {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Volvemos a cover para que llene siempre el fondo */
    object-fit: cover; 
    z-index: 1; 
    pointer-events: none;

    /* --- EL TRUCO DEL TAMAÑO --- */
    /* Agranda la imagen completa para que los iconos se vean gigantes */
    /* Prueba con 2, 2.5 o 3 hasta que veas el tamaño que te gusta */
    transform: scale(1.2); 
    transform-origin: center;

    /* --- VISIBILIDAD --- */
    /* Subimos la opacidad para que sea notoria (luego puedes bajarla a 0.2 si quieres) */
    opacity: 0.7; 
    
    /* Forzamos a que sea blanco. Si lo quitas se verá del color original del SVG */
    filter: brightness(0) invert(1); 
    
    /* Quitamos el blend-mode por ahora para asegurar que se vea bien */
}

/* ASEGURAR QUE EL CONTENIDO ESTÉ POR ENCIMA */
.news-main-titleD, 
.news-gridD, 
.news-view-all-btnD {
    position: relative;
    z-index: 2; /* Siempre mayor que la trama */
}



/* 2. TÍTULO GIGANTE (Ajustado) */
.news-main-titleD {
    position: absolute;
    top: 8dvh;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: top center;

    width: auto;      /* 👈 clave */
    z-index: 2;

    pointer-events: none;
}
.news-main-titleD img {
    width: 62dvh;     /* 🔥 tamaño inicial razonable */

    height: auto;
    display: block;

    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}
/* 3. GRID DE TARJETAS */
.news-gridD {
    position: relative; z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3vw; 
    width: 100%; 
    height: 55dvh; 
    margin-top: 6dvh; 
}

/* 4. DISEÑO DE TARJETA (Más angostas = Más alargadas) */
.news-card-wrapperD {
    position: relative;
    
    /* CAMBIO: Reducido un 20% (de 25vw a 20vw) */
    width: 20vw; 
    
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Blob de fondo (Curvas pronunciadas) */
.news-blob-bgD {
    position: absolute;
    width: 100%; height: 100%; 
    
    /* CAMBIO: Más redondeado */
    border-radius: 60px; 
    
    z-index: 1;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.news-card-wrapperD:nth-child(1) .news-blob-bgD { transform: rotate(3deg); }
.news-card-wrapperD:nth-child(2) .news-blob-bgD { transform: rotate(-3deg); }
.news-card-wrapperD:nth-child(3) .news-blob-bgD { transform: rotate(3deg); }

/* Tarjeta Blanca (Contenido) */
.news-card-whiteD {
    position: relative; z-index: 2;
    background-color: white;
    
    width: 96%; 
    height: 96%; 
    
    border-radius: 45px; 
    
    /* CAMBIO CLAVE: Quitamos el padding global */
    /* Antes: padding: 1.5dvh; */
    padding: 0; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    
    /* Para que la imagen no se salga de las curvas */
    overflow: hidden; 
}


/* Imagen Destacada */
.news-img-containerD {
    width: 100%;
    height: 68%; /* Ocupa la mitad superior completa */
    
    /* Sin márgenes, pegado a los bordes */
    margin: 0; 
    margin-bottom: 1.5dvh; /* Solo margen abajo para separar del título */
    overflow: hidden; 
    /* No necesitamos border-radius aquí porque el padre tiene overflow: hidden */
}
.news-img-containerD img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Título */
.news-titleD {
    font-family: 'Oswald', sans-serif;
    font-size: 2dvh; 
    color: #0956f5; 
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    margin-bottom: auto;   
    flex-grow: 1; 
    display: flex;
    align-items: center; 
    justify-content: center;
    margin: 0;
    padding: 0 1vw; 
}

/* Botón CTA */
.news-cta-btnD {
    border: none;
    
    /* CAMBIO CLAVE: Ancho automático según el texto + Padding */
    width: auto; 
    min-width: 50%; /* Para que no sea demasiado chico si el texto es corto */
    padding: 1.2dvh 2vw; /* Relleno generoso a los lados */
    
    border-radius: 10px; /* Bordes un poco más curvos */
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 1.5dvh;
    font-weight: 500;
    cursor: pointer;
    
    /* Margen inferior */
    margin-bottom: 2.5dvh; 
    
    /* Aseguramos que el texto nunca se corte */
    white-space: nowrap; 
    overflow: visible;
    
    /* Sombra suave */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    
    text-transform: none; /* Respetar mayúsculas/minúsculas originales */
}

/* Colores */
.cat-general .news-blob-bgD { background-color: #0956f5; }
.cat-general .news-cta-btnD { background-color: #0956f5; }
.cat-eco .news-blob-bgD { background-color: #58ca7b; }
.cat-eco .news-cta-btnD { background-color: #58ca7b; }
.cat-logi .news-blob-bgD { background-color: #7bd0ff; }
.cat-logi .news-cta-btnD { background-color: #7bd0ff; }
.cat-mineria .news-blob-bgD { background-color: #ff8932; }
.cat-mineria .news-cta-btnD { background-color: #ff8932; }

/* 6. BOTÓN VER TODAS */
.news-view-all-btnD {
    position: absolute;
    bottom: 5dvh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #abcdff; 
    border: 2px solid #0956f5;
    color: #0956f5;
    padding: 1dvh 4vw;
    border-radius: 30px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.8dvh;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.news-view-all-btnD:hover {
    background-color: #0956f5;
    color: white;
}
/* =========================================
   ESTILOS SECCIÓN CONTACTO (V.MOCKUP REAL)
   ========================================= */

.contact-containerD {
    position: relative; z-index: 2;
    width: 90%; 
    height: 89dvh; /* Bajamos 1dvh para evitar desbordes */
    margin: 0 auto; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1dvh; 
}

/* Espacio visual izquierdo */
.contact-info-colD { width: 50%; } 

.contact-form-colD {
    width: 45%;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    margin-top: -2dvh;
}

/* 1. TÍTULO (Oswald Bold, Blanco, Compacto) */
.contact-titleD {
    font-family: 'Oswald', sans-serif;
    font-size: 9dvh; /* Tamaño equilibrado */
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -1px; 
    line-height: 1;
    margin-bottom: 1dvh;
    text-transform: uppercase;
}

/* 2. DESCRIPCIÓN (Open Sans) */
.contact-descD {
    font-family: 'Open Sans', sans-serif;
    font-size: 2dvh;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 3dvh;
    line-height: 1.4;
    text-align: left;
}

/* 3. ESTRUCTURA DEL FORMULARIO (Respetando filas) */
.form-groupD { margin-bottom: 1.2dvh; width: 100%; position: relative; }
.form-rowD { display: flex; gap: 1vw; margin-bottom: 1.2dvh; width: 100%; }

/* Contenedor relativo para que los textos NO floten a la esquina */
.input-wrapperD {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* INPUTS TRANSPARENTES (Glassmorphism) */
.form-inputD, .form-selectD, .form-textareaD {
    width: 100%;
    padding: 1.7dvh 1vw;
    border-radius: 8px;
    
    /* Fondo Blanco Transparente al 25% */
    background: rgba(255, 255, 255, 0.15); 
    border: 1px solid rgba(255, 255, 255, 0.5);
    
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5dvh;
    color: #ffffff; /* Texto de escritura blanco */
    outline: none;
    transition: background 0.3s;
}

/* Color de los labels dentro de las cajas */
.floating-placeholderD {
    position: absolute;
    left: 1vw; 
    top: 1.5dvh;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5dvh;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

/* ASTERISCO ROJO */
.required-star, .select-required-starD {
    color: #ff0000 !important;
    font-weight: bold;
}

/* SELECTOR (Flecha Blanca) */
.form-selectD {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%22//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%0-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1vw top 50%;
    background-size: 1.2dvh auto;
}

/* 4. TELÉFONO (Fix Bandera y Prefijo) */
.phone-input-wrapperD {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    width: 100%;
}
.flag-icon-imgD {
    position: absolute; left: 0.5vw;
    height: 2dvh !important; width: auto !important;
}
.prefix-textD {
    position: absolute; left: 3vw;
    font-size: 1.5dvh; color: white;
    font-family: 'Open Sans', sans-serif;
}
.phone-fieldD {
    padding-left: 5vw !important; /* Espacio para bandera/+56 */
    background: transparent !important;
    color: white !important;
    border: none !important;
}

/* 5. BOTÓN ENVIAR (Largo Total y Redondo) */
.form-submit-btnD {
    display: block;
    width: 100% !important; /* ANCHO TOTAL DEL FORMULARIO */
    border-radius: 50px !important; /* TOTALMENTE REDONDEADO */
    
    margin: 1.6dvh auto 0 auto;
    background-color: #0956f5;
    color: white;
    border: none;
    padding: 1.4dvh 0;
    
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.8dvh;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.form-submit-btnD:hover { background-color: #003db3; }

/* 6. UPLOAD Y MENSAJE */
.form-textareaD { height: 12dvh !important; }
/* --- Arreglo de opciones del Selector (Dropdown) --- */
/* Forzamos que las opciones tengan fondo blanco y texto oscuro para que se vean al desplegar */
.form-selectD option {
    color: #333333 !important;
    background-color: #ffffff !important;
    font-family: 'Open Sans', sans-serif;
}

.file-upload-wrapperD {
    position: relative;
    display: flex;
    width: 100%;
    height: 3.5dvh; /* Manteniendo el tamaño aumentado */
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1dvh;
    
    /* CAMBIO CLAVE: Mismo fondo que los otros inputs para que no desentone */
    background: rgba(255, 255, 255, 0.15); 
    border: 1px solid rgba(255, 255, 255, 0.5);
    
    cursor: pointer;
}

.file-upload-btnD {
    /* Le damos un tono ligeramente más fuerte al botón para diferenciarlo, pero manteniendo el vidrio */
    background-color: rgba(255, 255, 255, 0.15) !important; 
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2vw;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5dvh; /* Tamaño ajustado */
    font-weight: 600;
    min-width: 12vw;
    border-right: 1px solid rgba(255, 255, 255, 0.3); /* Línea divisoria suave */
    z-index: 1;
}

.file-upload-infoD {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 1.5vw;
    /* Fondo transparente porque ya toma el del wrapper */
    background-color: transparent !important; 
    z-index: 1;
}

.file-upload-infoD span {
    /* Blanco con buena opacidad para que se lea */
    color: rgba(255, 255, 255, 0.85) !important; 
    font-family: 'Open Sans', sans-serif;
    font-size: 2.0dvh; 
    pointer-events: none;
}

/* El nombre del archivo cuando ya se seleccionó */
.file-upload-infoD span.file-selectedD {
    color: #0956f5 !important; 
    font-weight: 700 !important;
}


/* EL INPUT REAL (DEBE SER INVISIBLE Y ESTAR ENCIMA) */
.file-input-hiddenD {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* CAMBIO CRÍTICO: 100% invisible pero funcional */
    opacity: 0 !important; 
    cursor: pointer;
    
    /* ESTO ASEGURA QUE ESTÉ ENCIMA DE TU DISEÑO */
    z-index: 10; 
}

/* Estilo del nombre del archivo (JS) */
.file-upload-infoD span {
    color: rgba(255, 255, 255, 0.7) !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5dvh;
    pointer-events: none; /* El clic debe pasar al input */
}

.file-upload-infoD span.file-selectedD {
    color: white !important; /* Tu azul */
    font-weight: 700 !important;
}

/* --- 2. Checkbox Estilo Mockup --- */
.form-checkD {
    display: flex;
    align-items: flex-start; /* Alineado con el inicio del texto */
    gap: 1vw;
    margin-top: 2dvh;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3dvh;
    cursor: pointer;
}

/* Estilizamos el cuadrado del checkbox */
.form-checkD input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 2.2dvh;
    height: 2.2dvh;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 5px; /* Bordes redondeados como la imagen */
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

/* Marca de "Check" cuando se activa */
.form-checkD input[type="checkbox"]:checked {
    background-color: #0956f5;
    border-color: #0956f5;
}
.form-checkD input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 1.5dvh;
    left: 50%; top: 45%;
    transform: translate(-50%, -50%);
}

/* --- 3. Fix Asterisco Opción 7 (Selector) --- */
#group-extra-selectsD .input-wrapperD {
    position: relative !important;
    display: block !important;
}

.select-required-starD {
    position: absolute;
    right: 3vw; 
    top: 50%;
    transform: translateY(-50%);
    color: #ff0000 !important;
    font-weight: bold;
    z-index: 5;
}

/* Utilidades de JS y Animación */
.hidden-fieldsD { display: none; opacity: 0; }
.visible-fieldsD { display: block; animation: fadeInForm 0.4s forwards; }
.full-width-rowD { flex: 0 0 100% !important; }
@keyframes fadeInForm { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- FIX: OCULTAR PLACEHOLDER AL ESCRIBIR --- */

/* 1. Cuando el input tiene el cursor puesto (Focus) */
.form-inputD:focus + .floating-placeholderD,
/* 2. Cuando el input NO está vacío (Gracias al placeholder=" ") */
.form-inputD:not(:placeholder-shown) + .floating-placeholderD,
/* 3. Clase de seguridad por si el JS falla */
.form-inputD.has-contentD + .floating-placeholderD {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(10px);
    transition: all 0.2s ease;
}

/* Asegurar que el texto que escribe el usuario esté por encima del label */
.form-inputD {
    position: relative;
    z-index: 2;
}

.floating-placeholderD {
    z-index: 1; /* El label se queda atrás */
}
/* ESTILO PARA EL MENÚ DESTACADO */
.nav-linkD.activeD {
    opacity: 1 !important; /* Resalta sobre el resto */
    font-weight: 700;
    /* Subrayado elegante */
    border-bottom: 2px solid white;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}


/* botones custom temporales*/
/* Botón Economía Circular – Brochure */
.btn-ec-brochureD {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 26px;
  border-radius: 999px; /* pill / redondeado total */

  background-color: #379b4c; /* Idle */
  color: #ffffff; /* Texto */

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-ec-brochureD:hover {
  background-color: #268c40; /* Hover */
  transform: translateY(-1px);
}

.btn-ec-brochureD:active {
  transform: translateY(0);
}

/* Botón Logística e Ingeniería – Brochure */
.btn-log-brochureD {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 26px;
  border-radius: 999px;

  background-color: #66b9ff; /* Idle */
  color: #ffffff; /* Texto */

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-log-brochureD:hover {
  background-color: #449bff; /* Hover */
  transform: translateY(-1px);
}

.btn-log-brochureD:active {
  transform: translateY(0);
}

/* Botón Operación Minera – Brochure */
.btn-om-brochureD {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 26px;
  border-radius: 999px;

  background-color: #ff6f0d; /* Idle */
  color: #ffffff; /* Texto */

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-om-brochureD:hover {
  background-color: #eb621a; /* Hover */
  transform: translateY(-1px);
}

.btn-om-brochureD:active {
  transform: translateY(0);
}
.btn-ec-brochureD,
.btn-log-brochureD,
.btn-om-brochureD {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700; /* negrita */
}
.cardD p {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}
.about-specific-contentD p {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}
/* Botón Sobre Nosotros - Brochure */
.btn-about-brochureD {
  background-color: #0956f5; /* Idle */
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.btn-about-brochureD:hover {
  background-color: #0848ba; /* Hover */
  transform: translateY(-1px);
}

.btn-about-brochureD:active {
  transform: translateY(0);
}

/* contenido popup1*/
/* --- ENLACE EN EL FOOTER --- */
.footer-law-linkD {
    display: block;
    margin-top: 1.5dvh;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2dvh;
    color: #888; /* Gris discreto */
    text-decoration: none;
    transition: color 0.3s;
}
.footer-law-linkD:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- MODAL OVERLAY --- */
.law-modal-overlayD {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px); /* Desenfoque de fondo */
    display: none; /* Escondido por defecto */
    justify-content: center;
    align-items: center;
    z-index: 3000; /* Por encima de TODO */
    padding: 20px;
}

/* --- CAJA DEL POPUP --- */
.law-modal-boxD {
    background: #ffffff;
    width: 100%;
    max-width: 700px;
    padding: 5dvh;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalAppearD 0.4s ease-out;
}

@keyframes modalAppearD {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- BOTÓN CERRAR --- */
.law-modal-close-btnD {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    font-size: 40px; color: #333;
    cursor: pointer;
    line-height: 1;
}

/* --- TEXTOS INTERNOS --- */
.law-modal-titleD {
    font-family: 'Oswald', sans-serif;
    color: #0956f5;
    font-size: 3.5dvh;
    margin-bottom: 3dvh;
    text-transform: uppercase;
}

.law-modal-textD {
    font-family: 'Open Sans', sans-serif;
    color: #444;
    font-size: 1.8dvh;
    line-height: 1.6;
    margin-bottom: 4dvh;
}

/* --- BOTONES CTA MODAL --- */
.law-modal-btnsD {
    display: flex;
    flex-direction: column;
    gap: 1.5dvh;
    margin-bottom: 4dvh;
}

.law-ctaD {
    display: block;
    background: #0956f5;
    color: white;
    text-align: center;
    padding: 1.5dvh;
    border-radius: 10px;
    font-family: 'Oswald', sans-serif;
    text-decoration: none;
    font-size: 1.8dvh;
    transition: background 0.3s;
}
.law-ctaD:hover { background: #003db3; }

/* --- TEXTO INFERIOR MODAL --- */
.law-modal-footer-textD {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4dvh;
    color: #999; /* Gris suave */
    text-align: center;
    margin-top: 2dvh;
}
.law-modal-footer-textD a {
    color: inherit;      
    font-weight: inherit; 
    text-decoration: none; 
    cursor: default;     
}
.law-modal-footer-textD a:hover {
    color: #888;
}