/* Reset básico */
* {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Añadido para mejor control del modelo de caja */
}
/* Variables CSS para colores principales */
:root {
    --primary-orange: #ff6600; /* Un tono de naranja principal */
    --text-color-dark: #333; /* Color oscuro para el texto principal */
    --text-color-medium: #666; /* Nuevo: Color medio para texto secundario */
    --button-bg-color: #FFA500; /* Un naranja para el fondo del botón (considera usar --primary-orange) */
    --primary-blue: #003366;
    --background-blue-shape: #2b5585; /* Color específico de la forma azul de la imagen original "Acerca de" */
    --page-background: #f0f0f0; /* Color de fondo general de la página */

    /* Variables de la primera generación, ajustadas para no duplicar */
    --blue-background: var(--primary-blue); /* Mapeado a primary-blue */
    --orange-button: var(--primary-orange); /* Mapeado a primary-orange */
    --white-text: #ffffff;
    --dark-text: var(--text-color-dark); /* Mapeado a text-color-dark */
    --navbar-height: 70px; /* Altura del navbar por defecto */
    --navbar-padding: 10px 20px; /* Padding del navbar por defecto */
}

/* Estilos generales del cuerpo */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif, 'Poppins'; /* Asegúrate de que Poppins esté aquí si lo usas en HTML */
    overflow-x: hidden; /* Oculta solo el desbordamiento horizontal si ocurre */
    overflow-y: scroll; /* Permite el scroll vertical */
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Apila las secciones verticalmente */
    background-color: var(--page-background); /* Usar la variable */
    position: relative;
}

/* --- CAMBIOS CLAVE PARA EL OVERLAY GRIS OSCURO --- */
/* Creamos una capa pseudo-elemento ::before que cubrirá todo el body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

body.overlay-active::before {
    opacity: 1;
    visibility: visible;
}

/* Opcional: Impedir el scroll del body cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}

/*----------------------------- NAV BAR ----------------------------------*/
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10000; /* Asegura que la navbar esté por encima de todo */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--navbar-padding);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 2px solid #ccc;
    height: var(--navbar-height);
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.logo-container {
    flex: 0 0 auto;
}

.overlay-image { /* Posiblemente no se use con el nuevo CSS del modal, pero se mantiene */
    max-width: 130px;
    height: auto;
    cursor: pointer;
}

/* Forzar que el logo y cualquier imagen del navbar no excedan la altura del navbar (desktop) */
.navbar .logo img,
.logo img,
.navbar .overlay-image,
.navbar img {
    max-height: calc(var(--navbar-height) - 12px);
    height: auto;
    display: block;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--primary-orange);
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
}

.nav-links a.active {
    color: #ff6600;
}

.nav-links a:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.2);
    color: #003366;
}

.nav-links li.contacto a {
    color: white;
    padding: 8px 15px;
    transition: color 0.3s ease;
}

.navbar.scrolled {
    background-color: #003366;
    border-bottom-color: #001a33;
}

.nav-links li.contacto a:hover {
    background-color: #e67e00;
    color: white;
    transform: none;
}

.contacto {
    background-color: var(--primary-blue);
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.contacto a {
    color: white;
    padding: 8px 15px;
}

.contacto a:hover {
    background-color: #e67e00;
    color: white;
    transform: none;
}

main {
    margin-top: var(--navbar-height); /* Asegura que el contenido no se oculte detrás de la navbar */
    background-color: var(--page-background);
}

/* Estilos básicos para el contenedor del desplegable */
.has-dropdown {
    position: relative;
    z-index: 1001; /* Más alto que el overlay, pero por debajo de la navbar */
}

/* --- ANIMACIÓN PARA EL REBOTE --- */
@keyframes bounceInDownFromTop {
    0% {
        opacity: 0;
        transform: translateY(-80px) scale(0.7); /* Empieza 80px arriba, más pequeño (más atrás) */
    }
    60% {
        opacity: 1;
        transform: translateY(10px) scale(1.05); /* Baja más allá del final y se agranda un poco (primer rebote) */
    }
    75% {
        transform: translateY(-5px) scale(0.98); /* Sube ligeramente y se encoge un poco */
    }
    90% {
        transform: translateY(2px) scale(1.01); /* Baja de nuevo y se agranda casi al final */
    }
    100% {
        transform: translateY(0) scale(1); /* Posición y tamaño final */
    }
}


.dropdown-menu {
    display: block;
    visibility: hidden;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 20px 48px 46px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    top: 100%; /* Posición inicial relativa al padre */
    right: 0;
    left: auto;
    opacity: 0;
    transition: background-color 0.3s ease-in-out;
    border-radius: 5px;
}

.dropdown-menu.show {
    visibility: visible;
    animation: bounceInDownFromTop 0.8s ease forwards;
}

.dropdown-menu.scrolled {
    background-color: var(--primary-blue);
}


/* Estilo para los enlaces del menú desplegable */
.dropdown-menu li a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.dropdown-menu li a:hover {
    background-color: rgba(0,0,0,0.2);
}

.dropdown-menu.scrolled li a {
    color: white;
}

.has-dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s; /* Elimina el retraso al mostrar */
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 0.8em;
}

/* Estilos para el botón de hamburguesa */
.hamburger-button {
    display: none; /* Ocultar por defecto en pantallas grandes */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.hamburger-icon {
    width: 30px; /* Ajusta el tamaño de tu imagen */
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* --- Media Query para dispositivos móviles y tabletas --- */
@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        align-items: center;
        height: 60px;
        padding: 10px 15px;
    }

    /* Oculta el menú de navegación por defecto */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 45px; /* Alinea el menú debajo del navbar */
        left: 0;
        background-color: var(--primary-blue, #003366);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 10000;
        padding: 0;
    }

    /* Muestra el menú cuando tiene la clase 'active' */
    .nav-links.active {
        display: flex;
    }

    /* Muestra el botón de hamburguesa en pantallas pequeñas */
    .hamburger-button {
        display: block;
    }

    .nav-links li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        color: white; /* Color de los enlaces en el menú móvil */
        text-align: left;
        padding: 15px 20px;
        font-size: 16px;
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/*------------------------------- HERO ---------------------------------------- */

/* Mobile menu: textos blancos y submenú con fondo azul (copiado de Contacto) */
@media (max-width: 768px) {
    /* Asegurar que los enlaces del menú móvil sean blancos */
    .nav-links a {
        color: #ffffff !important;
    }
    /* Fondo del panel del menú (cuando se despliega) */
    .nav-links {
        background-color: var(--primary-blue) !important;
    }
    .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.06) !important; }

    /* Submenú: fondo azul y texto blanco. Oculto por defecto en mobile. */
    .nav-links .dropdown-menu {
        background-color: var(--primary-blue) !important;
        box-shadow: none !important;
        position: static !important;
        width: 100% !important;
        left: 0 !important;
        top: auto !important;
        display: none !important; /* oculto por defecto */
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.22s ease-in-out;
    }
    .nav-links .dropdown-menu li a {
        color: #ffffff !important;
        padding: 12px 16px !important;
        display: block !important;
        text-align: left !important;
    }
    .nav-links .dropdown-menu li a:hover {
        background-color: rgba(255,255,255,0.06) !important;
        color: #ffffff !important;
    }

    /* Mostrar submenú solo cuando se agrega la clase de abierto/activo */
    .has-dropdown.open > .dropdown-menu,
    .has-dropdown.active > .dropdown-menu,
    .nav-links .dropdown-menu.show {
        display: block !important;
        max-height: 1000px !important;
        overflow: visible !important;
    }
}

.hero-section {
    background-color: #FFFFFF; /* Fondo blanco arriba */
    color: var(--text-color-dark);
    padding: 0px 0px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;

    /* AUMENTAMOS LA ALTURA PARA QUE SEA MÁS DE LA MITAD DE LA PANTALLA INICIAL */
    height: 650px; /* AJUSTA ESTE VALOR SEGÚN NECESITES */

    /* AUMENTAMOS SIGNIFICATIVAMENTE EL BORDER-TOP-RIGHT-RADIUS */
    margin-top: var(--navbar-height);
}

.hero-section::before {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 45%; /* La parte naranja sigue ocupando la mitad inferior */
background: linear-gradient(to left, #fff 18%, #07477D 50%);
z-index: 0;
}

/* Pseudo-elemento para la curva inferior (si todavía lo necesitas) */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Altura de la curva */
    border-top-right-radius: 140% 200px; /* Radio horizontal y vertical para la curva */
    transform: translateY(-260%); /* Mover abajo para que la curva sea visible */
    z-index: 1; /* Por encima del pseudo-elemento naranja pero debajo del contenido principal */
}

.hero-content {
    flex: 1;
    max-width: 50%;
    z-index: 5; /* Asegura que el contenido esté sobre los fondos */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Para que el z-index de h1 y p funcione si están por encima */
    padding-top: 50px; /* Ajusta este padding para el espacio superior del texto */
    padding-left: 20px; /* Ajusta el padding para el contenido */
    padding-right: 20px;
    height: 100%; /* Asegura que ocupe la altura del hero-section para alinear bien el contenido */
    justify-content: center; /* Centra el contenido verticalmente en hero-content */
}

/* Nuevo contenedor para h1 y p */
.hero-content .text-container {
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px; 
    line-height: 1.2;
    z-index: 3; /* Más alto que los fondos */
    position: relative;
    /* Cambia el color del texto si ahora estará sobre blanco */
    color: var(--primary-blue); /* O el color oscuro que uses para el texto */
}

.hero-content h1 span {
    color: var(--primary-orange); /* Color naranja para resaltar */
}

.hero-content p {
    font-size: 2em; 
    line-height: 1.6;
    margin-bottom: 0px; 
    z-index: 3; /* Más alto que los fondos */
    position: relative;
    /* Cambia el color del texto si ahora estará sobre blanco */
    color: #fff; /* O el color oscuro que uses para el texto */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start; /* Alinea la imagen en la parte superior */
    z-index: 1; /* Mantener la imagen por debajo del contenido */
    position: absolute; /* Posicionamos absolutamente respecto a hero-section */
    top: 0; /* Pega la imagen al tope del hero-section */
    right: 0; /* Pega la imagen al lado derecho del hero-section */
    width: 50%; /* Ocupa la mitad del ancho de hero-section */
    height: 100%; /* Ocupa toda la altura de hero-section */
    overflow: hidden; /* Importante para que la imagen no se salga si es muy grande */
}

.hero-image img {
    max-width: 100%;
    height: 100%; /* Para que la imagen cubra todo el contenedor */
    object-fit: cover; /* Para que la imagen cubra el área sin distorsionarse */
    transform: scaleX(-1); /* Ya lo tenías, si quieres voltearla */
    object-position: center right; /* Ajusta si la imagen no se ve bien centrada a la derecha */
}

/* Ajustes para que la imagen hero se muestre correctamente en móviles */
@media (max-width: 768px) {
    .hero-image {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    .hero-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 60vh !important; /* limitar altura visible para mantener jerarquía */
        object-fit: cover !important; /* cubrir el ancho, recortando si es necesario */
        object-position: center bottom !important; /* mostrar la parte inferior de la imagen */
        transform: none !important; /* neutralizar cualquier flip en webviews */
        display: block !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .hero-section { height: auto !important; }
    .hero-image img {
        max-height: 50vh !important; /* más conservador en pantallas muy pequeñas */
        object-fit: contain !important; /* mostrar la imagen completa si cabe */
        object-position: center bottom !important;
    }
}

/* ----------------------------- OPERACIONES -------------------------------- */
.info-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 80px;
    gap: 40px;
    background-color: #fff;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.text-and-boxes-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.intro-text-column {
    font-family: 'Roboto', sans-serif; /* Usar Roboto */
    font-size: 1.9em;
    line-height: 1.6;
    color: var(--text-color-dark);
    margin: 0;
}

.intro-text-column strong {
    color: var(--primary-orange);
    font-weight: 700;
}

.info-boxes {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-decoration: none;
}

/* Para que la primera caja ocupe dos columnas (si es el diseño deseado) */
.info-boxes .info-box-link:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}
.info-boxes .info-box-link:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}
.info-boxes .info-box-link:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}


.info-box-link {
    background-color: #f0f0f0;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif; /* Usar Roboto */
}

.info-box-link:hover {
    background-color: #e0e0e0;
    cursor: pointer;
}

.info-box-link .arrow-icon {
    font-size: 1.5em;
    color: var(--primary-orange);
}

/* Media Query para Responsividad de Info Section */
@media (max-width: 768px) {
    .info-section {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 30px;
    }

    .truck-icon-column {
        padding-top: 0;
        margin-bottom: 20px;
    }

    .truck-icon-column img { /* Ajustado para la imagen del camión */
        max-width: 100px; /* Un poco más pequeño en móvil */
        height: auto;
    }

    .text-and-boxes-column {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .info-boxes {
        grid-template-columns: 1fr;
        width: 100%;
    }

    /* Resetear las propiedades de grid para todos los enlaces en móvil */
    .info-boxes .info-box-link {
        grid-column: auto;
        grid-row: auto;
        text-align: left;
    }
}

/*----------------------------- CADA MINUTO CUENTA ----------------------------------*/

/* Sección "Cada minuto cuenta" */
.section-cada-minuto {
    background: linear-gradient(90deg, #07477D 35%, #0D81E3 100%);
    color: var(--white-text);
    padding: 60px 20px;
    display: flex;
    align-items: center;
    min-height: 300px;
}

.container-cada-minuto {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.content-left-minuto {
    flex: 1;
    max-width: 50%;
    padding-right: 20px;
}

.content-left-minuto h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--white-text);
}

.text-right-minuto {
    flex: 1;
    max-width: 50%;
    padding-left: 20px;
}

.text-right-minuto p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--white-text);
}

.button-minuto {
    display: inline-block;
    background-color: var(--orange-button); /* Usa la variable mapeada */
    color: var(--white-text);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    border-radius: 18px
}

.button-minuto:hover {
    background-color: #e65c00;
}

/* Sección "Mantiene tu producción en movimiento" */
.section-mantiene-produccion {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--page-background); /* Usar la variable general de fondo */
    color: var(--dark-text);
}

.container-mantiene-produccion {
    max-width: 900px;
    margin: 0 auto;
}

.section-mantiene-produccion h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    margin-bottom: 30px;
    font-weight: bold;
    color: var(--dark-text);
}

.button-mantiene {
    display: inline-block;
    background-color: var(--orange-button); /* Usa la variable mapeada */
    color: var(--white-text);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.button-mantiene:hover {
    background-color: #e65c00;
}

/* Media Queries para responsividad de las nuevas secciones */
@media (max-width: 768px) {
    .section-cada-minuto .container-cada-minuto {
        flex-direction: column;
        text-align: center;
    }

    .content-left-minuto,
    .text-right-minuto {
        max-width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }

    .text-right-minuto p {
        margin-top: 20px;
    }

    .content-left-minuto h2 {
        font-size: 2em;
    }

    .section-mantiene-produccion h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .content-left-minuto h2 {
        font-size: 1.8em;
    }

    .text-right-minuto p {
        font-size: 1em;
    }

    .button-minuto,
    .button-mantiene {
        padding: 12px 25px;
        font-size: 1em;
    }

    .section-mantiene-produccion h2 {
        font-size: 1.4em;
    }
}

/* Centrar botón Descargar en vista móviles */
@media (max-width: 480px) {
    .download-catalog-section .container-dwl {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .download-button {
        margin: 12px auto 0;
        display: inline-block;
    }
}

/*-------------------------------- DESCARGAR PRODUCTOS ------------------------*/

.download-catalog-section {
    width: 100%;
    height: 200px;
    max-width:100%; /* Adjust max-width as needed */
    background: linear-gradient(90deg, #0D81E3 0%, #07477D 61%);
    padding: 80px 150px; /* Adjust padding for desired spacing */
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.download-catalog-section .container-dwl {
    display: flex;
    justify-content: space-between; /* Puts text on left, button on right */
    align-items: center; /* Vertically centers items */
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    gap: 40px; /* Space between text and button */
}

.download-catalog-section p {
    color: #ffffff; /* White text color */
    font-size: 2.2em; /* Large font size for the text */
    font-weight: 700; /* Bold font weight */
    margin: 0; /* Remove default paragraph margin */
    flex-grow: 1; /* Allows text to take up available space */
    text-align: left; /* Align text to the left */
}

.download-button {
    background-color: var(--primary-orange); /* Orange button background color */
    color: #ffffff; /* White text color */
    padding: 15px 30px; /* Padding for the button */
    border: none; /* No border */
    border-radius: 25px; /* Highly rounded corners for the button */
    font-size: 1.2em; /* Font size for the button text */
    font-weight: 500; /* Medium font weight */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effects */
    flex-shrink: 0; /* Prevent button from shrinking */
}

.download-button:hover {
    background-color: var(--primary-orange); /* Slightly darker orange on hover */
    transform: translateY(-6px); /* Slight lift effect on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .download-catalog-section {
        padding: 25px 25px;
    }

    .download-catalog-section .container {
        flex-direction: column; /* Stack items vertically on small screens */
        text-align: center;
    }

    .download-catalog-section p {
        font-size: 1.8em; /* Adjust font size for smaller screens */
        text-align: center; /* Center text when stacked */
        margin-bottom: 15px; /* Add space below text */
    }

    .download-button {
        width: 100%; /* Make button full width */
        max-width: 200px; /* Limit button max width */
    }
}

@media (max-width: 480px) {
    .download-catalog-section {
        padding: 20px 15px;
        border-radius: 5px;
    }

    .download-catalog-section p {
        font-size: 1.5em;
    }

    .download-button {
        padding: 12px 25px;
        font-size: 1em;
    }
}


/*----------------------------- Products Section (EXISTENTE) ----------------------------------*/
.products-section {
    text-align: center;
    padding: 80px;
    background-color: #f8f8f8; /* Considera usar --page-background */
}

.products-section h2 {
    font-family: 'Poppins', sans-serif; /* Usar Poppins */
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

.products-section .subtitle {
    font-family: 'Roboto', sans-serif; /* Usar Roboto */
    font-size: 1.1em;
    color: var(--text-color-medium);
    margin-bottom: 50px;
}

.product-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: left;
    width: 280px;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--primary-blue);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-family: 'Poppins', sans-serif; /* Usar Poppins */
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

.product-card p {
    font-family: 'Roboto', sans-serif; /* Usar Roboto */
    font-size: 0.9em;
    color: #777; /* Considera usar --text-color-medium */
    margin-bottom: 20px;
}

.product-card .button {
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

.button-producto {
    display: inline-block;
    background-color: var(--orange-button); /* Usa la variable mapeada */
    color: var(--white-text);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    border-radius: 18px
}

.button-producto:hover {
    transform: translateY(-8px);
    background-color: var(--primary-blue);
    color: #fff;
}

/* Responsive Design General (Ajustes a tu media queries existentes) */
@media (max-width: 1200px) {
    /* Tu CSS ya tenía esto, fusionado con nuevas secciones */
    .hero-section, .info-section, .products-section,
    .section-cada-minuto, .section-mantiene-produccion {
        padding: 40px 50px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 900px) {
    /* Tu CSS ya tenía esto, fusionado con nuevas secciones */
    .hero-section {
        flex-direction: column;
        height: auto;
        padding: 30px 40px;
    }

    .hero-content, .hero-image-container { /* Renombrado de .hero-image */
        max-width: 100%;
        text-align: center;
    }

    .hero-main-image { /* Renombrado de .hero-image img */
        position: static;
        transform: none;
    }

    .tag, .white-circle, .dotted-line {
        position: relative; /* Asegura que se posicionen correctamente si la imagen no es absoluta */
        right: auto;
        left: auto;
        top: auto;
        bottom: auto;
        margin: 10px auto; /* Centrar elementos si es posible */
    }

    .info-section {
        flex-direction: column;
        align-items: center;
        padding: 40px;
    }

    .info-text { /* Esta clase no estaba en tu HTML para .info-section */
        max-width: 100%;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .products-section .product-cards { /* Añadido .product-cards para especificar */
        flex-direction: column;
        align-items: center;
    }

    .product-card {
        width: 90%;
        max-width: 350px;
    }
}

@media (max-width: 600px) {
    /* Tu CSS ya tenía esto, fusionado con nuevas secciones */
    .hero-section, .info-section, .products-section,
    .section-cada-minuto, .section-mantiene-produccion {
        padding: 20px 20px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .intro-text-column p { /* Ajustado para que apunte al párrafo */
        font-size: 1em;
    }

    .info-box-link { /* Ajustado para el enlace */
        font-size: 1em;
        padding: 15px;
    }
}

/*----------------------------- CADA MOVIMIENTO CUENTA ----------------------------------*/

/* Sección "Cada minuto cuenta" */
.section-cada-movimiento {
    background: #fff;
    text-align: center;
    color: var(--white-text);
    display: flex;
    align-items: center;
    min-height: 500px;
}

.container-cada-movimiento {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.content-left-movimiento {
    flex: 1;
    max-width: 100%;
    padding-right: 0px;
}

.content-left-movimiento strong {
    color: var(--primary-orange);
    font-weight: 700;
}

.content-left-movimiento h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-color-dark);
}

.button-movimiento {
    background-color: var(--orange-button); /* Usa la variable mapeada */
    color: var(--white-text);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    border-radius: 18px
}

.button-movimiento:hover {
    background-color: var(--primary-blue);
}

.button-mantiene:hover {
    background-color: #e65c00;
}

/* Media Queries para responsividad de las nuevas secciones */
@media (max-width: 768px) {
    .section-cada-movimiento .container-cada-movimiento {
        flex-direction: column;
        text-align: center;
    }

    .content-left-movimiento,
    .text-right-movimiento {
        max-width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }

    .text-right-movimiento p {
        margin-top: 20px;
    }

    .content-left-movimiento h2 {
        font-size: 2em;
    }

    .section-mantiene-produccion h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .content-left-movimiento h2 {
        font-size: 1.8em;
    }

    .text-right-movimiento p {
        font-size: 1em;
    }

    .button-movimiento,
    .button-mantiene {
        padding: 12px 25px;
        font-size: 1em;
    }

    .section-mantiene-produccion h2 {
        font-size: 1.4em;
    }
}

/*-------------------------------- FOTOS E INFO -------------------------------*/
/* Contenedor principal de la sección fija */
.scroll-section {
  height: 100vh;
  position: relative;
}

.container {
  display: flex;
  position: sticky;
  top: 0;
  height: 90%;
  background-color: #000;
  z-index: 1;
}

/* Estilos para la columna izquierda del hover */
.left-column {
    width: 40%;
    padding: 20px;
    background-color: #000;
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%; /* Ocupa toda la altura del contenedor sticky */
    overflow-y: auto; /* Permite hacer scroll en contenido largo */
    -webkit-overflow-scrolling: touch; /* Mejora el scroll en iOS */
    padding-right: 18px; /* Espacio para la barra de scroll */
}

.left-column h3 span {
  color: #00b4ff; /* Estilo para el span dentro del h3 */
}

.left-column h3 {
  color: #fff;
  margin-bottom: 0px;
}

.left-column p {
  color: #ccc;
  margin-bottom: 0px;
}

/* Estilos para la imagen del hover */
#hover-img {
    position: static; /* Cambiado de absolute para fluir con el texto */
    transform: none; /* Quitamos la transformación de centrado */
    max-width: 100%;
    height: auto;
    max-height: 50vh; /* Limita altura relativa a la ventana para evitar desbordes */
    opacity: 0;
    transition: opacity 0.35s ease-in-out; /* Transición para que aparezca suavemente */
    z-index: 10;
    pointer-events: none; /* No interactuable para el ratón cuando oculto */
    margin-top: 10px; /* Espacio entre el texto y la imagen */
}

#hover-img.visible {
    opacity: 1; /* Hace la imagen visible */
}

/* Estilos para el contenedor del texto cambiante */
#text-content-wrapper {
    opacity: 1; /* Por defecto visible */
    transition: opacity 1.5s ease-in-out; /* Transición suave para el texto */
    width: 100%; /* Asegura que el contenedor ocupe el ancho disponible */
}

#text-content-wrapper.hidden {
    opacity: 0; /* Clase para ocultar el texto antes de cambiarlo */
    pointer-events: none; /* Evita interacciones mientras está oculto */
}

/* Estilo para el span dentro del párrafo cambiante */
#oracion-azul-p1 {
    color: var(--primary-blue); /* Color distintivo para tu palabra clave */
    font-weight: bold;
    text-decoration: none;
}


#hover-title {
    font-size: 1.5em;
    color: #fff; /* Blanco */
    font-weight: bold;
}

#hover-subtitle {
    color: #00b4ff;
    font-weight: normal;
}

#hover-paragraph-1,
#hover-paragraph-2 {
    font-size: 1.1em;
    color: #fff;
    line-height: 1.4;
}

.divider-line {
  width: 2px;
  background-color: white;
  height: 100%;
  opacity: 0.4;
}

/* Columna derecha con scroll */
.right-column {
  width: 60%;
  padding: 20px 40px;
  overflow-y: auto;
  height: 100%;
  scroll-behavior: smooth;
}

.info-block {
  margin-bottom: 40px;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.info-block h4 {
  color: #ff7f00;
  margin-bottom: 10px;
}

.info-block p {
  color: #eee;
}

/* --- Estilos para ocultar la barra de desplazamiento --- */
#scrolling-content {
    overflow-y: scroll;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    &::-webkit-scrollbar {
        display: none;
    }
    flex-grow: 1;
    padding-left: 20px; 
    padding-right: 20px; 
}

/* Contenido siguiente de la página */
.after-section {
  background: #111;
  padding: 0px 40px;
}

/*----------------------------- PIE DE PÁGINA ----------------------------------*/
footer {
    background-color: var(--primary-blue); /* Usar variable para el color */
    color: #ffffff;
    padding: 20px;
    text-align: center;
    margin-top: 50px; /* Margen para separar del contenido superior */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    padding: 0 20px;
}

/* Define las columnas del pie de página */
.footer-content .logo,
.footer-content .contact-info,
.footer-content .quick-links {
    flex: 1;
    min-width: 280px;
    max-width: 33%;
    text-align: left;
    padding: 0 10px;
}

.footer-content .logo p {
    font-size: 0.9em;
    line-height: 1.4;
    margin-top: 10px;
}

.contact-info p {
    margin-bottom: 5px;
    font-size: 0.9em;
}

/* --- CAMBIOS AQUÍ para Enlaces Rápidos --- */
.quick-links {
    /* El padre de los enlaces ahora será un flex container */
    display: flex;
    flex-direction: row; /* Asegura que los ítems se coloquen en fila */
    flex-wrap: wrap; /* Permite que los enlaces se envuelvan si no hay suficiente espacio horizontal */
    gap: 10px; /* Espacio entre los enlaces */
}

.quick-links p { /* Estilo para el título "Enlaces Rápidos:" */
    width: 100%; /* Asegura que el título ocupe su propia línea */
    margin-bottom: 10px; /* Espacio después del título */
    font-weight: bold; /* Hacer el título más visible */
    text-align: left; /* Asegura que el título se alinee con los enlaces */
}

.quick-links a {
    display: inline-block; /* O puedes quitarlo y se comportarán como inline, pero inline-block permite padding/margin vertical */
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 2px 5px; /* Pequeño padding para los enlaces si son inline-block */
    border-radius: 3px; /* Pequeños bordes redondeados */
}

.quick-links a:hover {
    color: var(--primary-orange); /* Usar variable */
}
/* --- FIN CAMBIOS para Enlaces Rápidos --- */


.sco {
    margin-top: 10px;
    display: flex;
    list-style: none;
    padding: 0;
}

.sco li {
    margin-right: 15px;
}

.sco li a {
    color: #ccc;
    font-size: 2em;
    transition: color 0.3s ease;
}

.sco li a:hover {
    color: var(--primary-orange); /* Usar variable */
}

/* Estilos para el texto de copyright del footer */
.footer-copyright-text {
    margin-top: 20px;
    font-size: 0.9em; /* Aproximadamente 14.4px si el font-size base es 16px */
    color: #ffffff; /* Texto blanco para todo el párrafo */
}

/* Estilos para los enlaces dentro del texto de copyright */
.footer-copyright-text a {
    color: #ffffff; /* Por defecto, los enlaces también serán blancos */
    text-decoration: none; /* Elimina el subrayado por defecto si no lo quieres */
    transition: color 0.3s ease; /* Transición suave para el cambio de color */
}

/* Estilo cuando el mouse pasa por encima del enlace */
.footer-copyright-text a:hover {
    color: var(--primary-orange, #FF6600); /* Naranja cuando el mouse pasa por encima */
    /* Usamos una variable CSS si la tienes definida, o un color hexadecimal directo */
}

/* Si aún tienes estilos en línea en el footer principal, deberías moverlos aquí también */
/* Por ejemplo: */
footer {
    background-color: #003366;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}
/* Estilo para la línea divisoria del footer */
footer > div:nth-of-type(2) { /* Selecciona el segundo div directo dentro del footer */
    border-bottom: 1px solid #ffffff;
    margin-top: 20px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}


/*---------------------------------- Media Queries ------------------------------*/

@media (max-width: 992px) {
    .nav-links ul li {
        margin-left: 20px;
    }
    .hero-section {
        flex-direction: column; /* Apila el contenido y la imagen */
        height: auto; /* La altura se ajustará automáticamente */
        padding: 50px 20px 40px; /* Ajusta el padding para la nueva disposición */
        /* border-top-right-radius: 150px; */ /* Quita esto si lo maneja el pseudo-elemento */
        margin-top: var(--navbar-height); /* Asegura que la sección hero empiece debajo del navbar */
    }

    .hero-section::before { /* La parte naranja en pantallas pequeñas */
        height: 60%; /* Ajusta la altura de la parte naranja */
        border-top-right-radius: 80px; /* Mantén el radio o ajusta */
    }

    .hero-content {
        max-width: 100%; /* Ocupa todo el ancho */
        padding-top: 30px; /* Menos padding superior */
    }

    .hero-content h1 {
        font-size: 2.5em; /* Ajusta el tamaño de la fuente */
    }

    .hero-content p {
        font-size: 1.8em;
    }

    .hero-image {
        position: relative; /* Vuelve a ser relativo */
        width: 100%; /* Ocupa todo el ancho */
        height: auto;
        top: auto; /* Resetea la posición absoluta */
        right: auto; /* Resetea la posición absoluta */
        margin-top: 30px; /* Espacio entre el texto y la imagen */
        justify-content: center; /* Centra la imagen horizontalmente */
        align-items: center; /* Centra verticalmente si es necesario */
    }

    .hero-image img {
        max-width: 100%; /* Reduce el tamaño máximo de la imagen */
        height: auto;
        object-fit: contain; /* Para que se vea completa */
    }
        .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-content .logo,
    .footer-content .contact-info,
    .footer-content .quick-links {
        min-width: unset;
        width: 100%;
        margin-bottom: 20px;
    }
    .footer-content .logo p, .contact-info p {
        text-align: center;
    }
    .quick-links p { /* Asegura que el título de enlaces rápidos se centre */
        text-align: center;
    }
    .quick-links a {
        /* Para que los enlaces se centren cuando se apilan */
        width: 100%;
        text-align: center;
    }
    .sco {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links {
        width: 100%;
        margin-top: 15px;
    }
    .nav-links ul {
        justify-content: center;
    }
    .nav-links ul li {
        margin: 0 10px;
    }
    .contact-btn, .language-switcher {
        margin-top: 15px;
    }

    .hero-section {
        padding: 40px 15px 30px;
    }

    .hero-section::before {
        height: 55%; /* Ajusta la altura de la parte naranja */
        border-top-right-radius: 60px; /* Ajusta el radio */
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1.4em;
    }

    .hero-image img {
        max-width: 90%;
    }
    .footer-content .logo p, .contact-info p, .quick-links p, .quick-links a {
        text-align: center; /* Asegura que todos los textos del footer se centren en móvil */
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 30px;
    }
    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }
    .nav-links ul li {
        margin: 10px 0;
    }
   .hero-section {
        padding: 30px 10px 20px;
    }

    .hero-section::before {
        height: 50%; /* Ajusta la altura de la parte naranja */
        border-top-right-radius: 40px; /* Ajusta el radio */
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .hero-image img {
        max-width: 100%;
    }
        .footer-content .logo p, .contact-info p, .quick-links p, .quick-links a {
        text-align: left; /* Asegura que todos los textos del footer se centren en móvil */
    }
}

/* Ajuste responsive para scroll-section en móviles y tabletas */
@media (max-width: 992px) {
    .scroll-section .container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        padding: 0; /* quitar padding lateral para ocupar todo el ancho */
        box-sizing: border-box;
        margin: 0; /* asegurar sin offset */
    }
    .scroll-section .left-column,
    .scroll-section .right-column {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 0 5px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .scroll-section .left-column h3,
    .scroll-section .left-column p,
    .scroll-section .right-column h4,
    .scroll-section .right-column p {
        font-size: 1em;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .scroll-section img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 600px) {
    .scroll-section .container {
        padding: 5px;
    }
    .scroll-section .left-column,
    .scroll-section .right-column {
        padding: 0 2px;
        font-size: 0.95em;
    }
}

/* ------------------------ Acordeón móvil para la sección de scroll ------------------------ */
@media (max-width: 992px) {
    /* Apilar columnas en móvil (ya se hace), pero mejorar UX: convertir items en acordeones */
    .container {
        display: block;
        position: relative;
        height: auto;
        padding: 0 8px;
    }

    .left-column {
        width: 100%;
        max-height: 36vh; /* Mostrar resumen alto razonable */
        overflow: hidden;
        padding: 16px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        margin-bottom: 8px;
    }

    .left-column.expanded {
        max-height: none;
    }

    .left-toggle {
        display: block;
        text-align: center;
        margin: 10px auto 0;
        color: var(--primary-orange);
        font-weight: 700;
        cursor: pointer;
    }

    .divider-line { display: none; }

    .right-column {
        width: 100%;
        padding: 8px 12px 30px 12px;
        box-sizing: border-box;
        max-height: none;
    }

    .right-column .info-block {
        margin-bottom: 12px;
        padding: 12px 10px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        background: transparent;
        transition: background-color 0.18s ease;
    }

    .right-column .info-block h4 {
        color: var(--primary-orange);
        font-size: 1.05em;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .right-column .info-block p {
        color: #ddd;
        margin: 6px 0 0 0;
        max-height: 3.6em; /* Mostrar aproxim. 3 líneas como resumen */
        overflow: hidden;
        text-overflow: ellipsis;
        transition: max-height 0.25s ease;
    }

    .right-column .info-block .expanded-content {
        display: none;
        color: #ccc;
        margin-top: 8px;
        line-height: 1.45;
    }

    .right-column .info-block.open p {
        max-height: none;
    }

    .right-column .info-block.open .expanded-content {
        display: block;
    }

    .expand-indicator {
        color: #ddd;
        font-size: 0.9em;
        margin-left: 12px;
        opacity: 0.95;
    }

    /* Mejor separación entre items en móvil para facilitar toque */
    .right-column .info-block + .info-block { margin-top: 6px; }
}

/* Asegurar que el footer quede siempre después del contenido en móvil
     y evitar que el área de scroll solapé el footer. */
@media (max-width: 992px) {
    .scroll-section {
        height: auto !important;
        min-height: 40vh;
        position: relative !important;
    }

    .container {
        display: block !important;
        position: static !important; /* quitar sticky en móvil */
        top: auto !important;
        height: auto !important;
    }

    .left-column,
    .right-column {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #scrolling-content {
        overflow: visible !important;
        height: auto !important;
        -webkit-overflow-scrolling: auto;
    }

    footer {
        position: relative;
        z-index: 1002; /* por encima de contenido no interactivo */
        margin-top: 12px;
    }
}

@media (max-width: 992px) {
    footer,
    .footer-content,
    .footer-content > * {
        text-align: center !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
}

/* Sombra por letra (móviles): reemplaza el fondo rectangular por text-shadow bajo cada carácter */
@media (max-width: 900px) {
    .hero-content p,
    .hero-content .text-container p {
        display: inline;
        background: none;
        color: #ffffff !important;
        /* sombra principal situada debajo de las letras */
        text-shadow: 0 4px 8px rgb(8, 8, 8), 0 1px 0 rgba(247, 244, 244, 0.556);
        line-height: 1.3;
        z-index: 22;
    }

    /* Mantener el h1 separado (sin fondo), si lo deseas puedes ajustar su color aquí */
    .hero-content h1 {
        color: var(--primary-blue) !important;
        text-shadow: none;
        margin-bottom: 10px;
    }
}

/* Correcciones específicas para pantallas muy estrechas (ej. 360x740) */
@media (max-width: 380px) {
    /* Evitar cualquier overflow horizontal residual */
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    /* Forzar contenedores a ocupar 100% sin padding lateral */
    .container,
    .scroll-section,
    .hero-section,
    .products-section,
    .download-catalog-section,
    footer {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    /* Asegurar que la navbar no cree offset lateral */
    .navbar {
        left: 0 !important;
        right: 0 !important;
    }

    /* Pseudo-elementos que usan transform pueden generar overflow; limítalos */
    .hero-section::before,
    .hero-section::after {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
    }

    /* Imágenes: asegurar que nunca excedan el ancho */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
}

/* Force footer content centered on phones */
@media (max-width: 768px) {
    footer {
        text-align: center;
        padding-left: 12px;
        padding-right: 12px;
        width: 100%;
    }
    footer .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 0;
        max-width: 100%;
        margin: 0 auto;
    }
    footer .footer-content .logo,
    footer .footer-content .contact-info,
    footer .footer-content .quick-links {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        padding: 0 6px;
        text-align: center;
    }
    footer .footer-content .logo img {
        display: block;
        margin: 0 auto 8px auto;
        max-width: 920px;
        height: auto;
    }
    footer .quick-links a {
        display: block;
        margin: 8px 0;
        width: auto;
    }
    footer .sco {
        justify-content: center;
        margin-top: 6px;
    }
    .footer-copyright-text {
        text-align: center;
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    footer .footer-content .logo img { max-width: 180px; }
    footer .footer-content .logo,
    footer .footer-content .contact-info,
    footer .footer-content .quick-links { padding-left: 8px; padding-right: 8px; }
}

/* ------------------------ Ajustes específicos: evitar logo/SVG gigante en móviles OEM ------------------------ */
.logo img,
.overlay-image,
.hero-image img,
.hero-image svg {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-height: 120px; /* límite conservador por defecto */
}

/* Móviles muy estrechos: reducir más el alto y neutralizar transformaciones que provocan overflow */
@media (max-width: 480px) {
    .logo img,
    .overlay-image,
    .hero-image img,
    .hero-image svg {
        max-height: 48px; /* tamaño seguro para dispositivos pequeños */
        width: auto; /* mantener proporción */
    }

    .hero-image {
        overflow: hidden; /* evita que piezas del SVG sobresalgan */
        z-index: 5; /* asegúrate que no tape contenido crítico */
    }

    .hero-image img { transform: none !important; } /* neutraliza flips/escales problemáticos en webviews */
}

/* Asegurar que SVGs no excedan contenedor en casos extraños */
.hero-image svg {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

/* End adjustments */

/* ------------------------ Refinamiento adicional para OEM webviews (Huawei/Oppo) ------------------------ */
@media (max-width: 480px) {
    /* Forzar tamaño máximo del logo y del icono de la derecha */
    .navbar .logo img,
    .logo img,
    .overlay-image,
    .hamburger-icon,
    .navbar img {
        max-height: 44px !important;
        height: auto !important;
        width: auto !important;
        display: block !important;
        object-fit: contain !important;
    }

    /* Si el gear viene como SVG inline, forzarlo también */
    .overlay-image svg,
    .hamburger-icon svg {
        max-height: 44px !important;
        width: auto !important;
    }

    /* Aumentar el espacio superior del hero para evitar que el header lo tape */
    .hero-section {
        margin-top: 92px !important; /* reserva espacio para header en casos donde webview reporta distinto height */
    }

    /* Ajuste del navbar para que no empuje contenido ni cambie altura inesperadamente */
    .navbar {
        height: auto !important;
        min-height: 52px !important;
        padding: 8px 12px !important;
        align-items: center !important;
    }

    /* Neutralizar transformaciones que en algunos webviews escalan imágenes fuera del contenedor */
    .hero-image img,
    .hero-image svg,
    .logo img,
    .overlay-image {
        transform: none !important;
    }
}

/* Marca final: si todavía hay algún elemento muy grande, aplicar selector aún más específico */
@media (max-width: 480px) {
    header .logo img, header .overlay-image, .navbar .overlay-image {
        max-height: 40px !important;
    }
}

/* Desktop-specific: asegurar proporciones de la imagen hero en pantallas grandes */
@media (min-width: 992px) {
    .hero-section { height: 650px; }
    .hero-image {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 40% !important; /* espacio a la derecha para la imagen */
        height: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        overflow: hidden !important;
    }
    .hero-image img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important; /* ocupa todo el contenedor proporcionalmente */
        object-position: center right !important;
        transform: scaleX(-1) !important;
    }
}