/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Forzar que el submenú permanezca visible en móviles cuando el padre tenga .open
   Esto sobrescribe animaciones/transiciones que podrían ocultarlo inmediatamente */
@media (max-width: 768px) {
    .has-dropdown.open > .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
        position: static !important;
        max-height: none !important;
        z-index: 10002 !important;
        background-color: var(--primary-blue, #003366) !important;
    }

    .has-dropdown.open > .dropdown-menu li a {
        color: #ffffff !important;
    }
}
/* Mobile tweak: enlarge & flip hero image */
@media (max-width: 600px) {
    .hero-image-container {
        position: absolute !important;
        right: -10px !important;
        top: 12% !important;
        width: 60% !important;
        max-width: 320px !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }
    .hero-main-image {
        position: absolute !important;
        right: -24px !important;
        top: 50% !important;
        transform: translateY(-50%) scaleX(-1) !important;
        height: 150% !important;
        width: auto !important;
        object-fit: cover !important;
        object-position: center right !important;
        max-width: none !important;
        border-radius: 8px !important;
    }
    /* Final stronger override: asegurar flip y tamaño mayor en móviles */
    .hero-image-container {
        position: absolute !important;
        right: -5px !important;
        top: 10% !important;
        width: 100% !important;
        max-width: 520px !important;
        z-index: 4 !important;
        pointer-events: none !important;
    }
    .hero-main-image {
        position: absolute !important;
        right: -30px !important;
        top: 50% !important;
        transform: translateY(-50%) scaleX(-1) !important;
        height: 260% !important;
        width: auto !important;
        object-fit: cover !important;
        object-position: center right !important;
        max-width: none !important;
        border-radius: 8px !important;
        z-index: 4 !important;
    }
}

/* 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 */
}

/* 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: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 2px solid #ccc;
    height: 70px;
    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: 150px;
    height: auto;
    cursor: pointer;
}

.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: 18px;
    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: 70px; /* 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: 35px; /* 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: 60px; /* 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 SECTION ----------------------------------*/
.button {
    display: inline-flex; /* CAMBIO CLAVE: Usa inline-flex para habilitar Flexbox */
    justify-content: space-between; /* Distribuye el espacio entre el texto y la flecha */
    align-items: center; /* Centra verticalmente el texto y la flecha */

    background-color: var(--primary-blue);
    color: #fff;
    padding: 10px 20px; /* Puedes ajustar este padding si la separación de 'space-between' no es suficiente */
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    width: 200px; /* Mantén el ancho fijo si lo deseas */
    font-family: 'Roboto', sans-serif;
}

.button:hover {
    background-color: #ff6600;
}

/* Estilos para la flecha dentro del botón */
.arrow-right {
    /* Elimina el margin-left si `justify-content: space-between;` ya te da suficiente espacio */
    margin-left: 8px; /* Puedes mantenerlo si quieres un espacio mínimo fijo además de space-between */
    font-size: 1.2em;
    vertical-align: middle; /* Esto ya no es tan crítico con flexbox, pero no hace daño */
    transition: transform 0.3s ease;
    color: inherit;
}

/* Efecto hover específico para la flecha (opcional) */
.button:hover .arrow-right {
    transform: translateX(51px);
    color: #fff;
}

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 600px;
    width: 100%;
    background: linear-gradient(to top, var(--primary-orange) 80%, #FFFFFF 80%);
}

.hero-content {
    flex: 1;
    max-width: 95%;
    background-color: transparent;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 80px;
    box-sizing: border-box;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif; /* Usar Poppins */
    font-size: 3em;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-content p {
    font-family: 'Roboto', sans-serif; /* Usar Roboto */
    font-size: 1.2em;
    margin-bottom: 30px;
}

.hero-image-container {
    flex: 1;
    max-width: 45%;
    position: relative;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-main-image {
    position: absolute;
    right: 0px;
    top: 90px;
    transform: translateY(-30%) scaleX(-1);
    height: 110%;
    width: auto;
    max-width: none;
    object-fit: cover;
    object-position: right center;
    z-index: 1;
}

.tag {
    position: absolute;
    top: 250px;
    right: 450px;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    font-family: 'Roboto', sans-serif; /* Usar Roboto */
    z-index: 3;
}

.white-circle {
    position: absolute;
    bottom: 230px;
    right: 550px;
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    z-index: 3;
}

.dotted-line {
    position: absolute;
    bottom: 250px;
    right: 555px;
    width: 2px;
    height: 40px;
    background-image: linear-gradient(to bottom, #fff 50%, transparent 50%);
    background-size: 100% 10px;
    transform: rotate(15deg);
    transform-origin: bottom right;
    z-index: 3;
}

/*-------------------------- Info Section ---------------------------------*/
.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);
}

.truck-icon-column {
    flex: 0 0 auto;
    padding-top: 100px;
}

.truck-icon { /* Si es un ícono de fuente */
    font-size: 5em;
    color: var(--primary-orange);
    line-height: 1;
    display: block;
    margin: 0 auto;
}

.truck-icon-column img { /* Si es una imagen */
    max-width: 450px; /* Ajusta según el tamaño real de tu SVG/imagen */
    height: auto;
}

.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 {
    width: 100%;
    text-align: center;
    position: relative; /* permitir posicionar el botón y el texto sobre la imagen */
    color: var(--dark-text);
    overflow: hidden;
}

.container-mantiene-produccion {
    max-width: 900px;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-mantiene-produccion h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    margin-bottom: 30px;
    font-weight: bold;
    color: #e0e0e0;
}

.button-mantiene {
    display: flex;
    max-width: 200px;
    margin-top: 100px;
    background-color: var(--orange-button);
    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;
}

/* Nueva clase para la imagen en la sección: ocupa ancho completo y mantiene proporción */
.section-mantiene-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Asegurar que el h2 y botón estén sobre la imagen y sean legibles */
.section-mantiene-produccion h2 {
    margin: 0 16px 12px;
    color: #ffffff; /* mantener color (se añadió text-shadow antes) */
    z-index: 6;
}

.button-mantiene:hover {
    background-color: var(--primary-blue);
}

/* 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;
    }

    /* Ajustes para que la imagen muestre el personal y el botón quede centrado abajo */
    .section-mantiene-produccion {
        /* Eliminar espacio superior y asegurar la imagen ocupa toda la sección */
        background-position: center bottom !important;
        min-height: auto !important;
        padding: 0 16px 8px !important; /* quitar padding-top */
        margin-top: 0 !important;
        background-repeat: no-repeat !important;
        background-size: cover !important; /* cover evita áreas blancas al rellenar la sección */
        background-attachment: scroll !important;
    }

    .section-mantiene-produccion h2 {
        color: #ffffff !important;
    }

    .section-mantiene-produccion .button-mantiene {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 0px !important;
        margin: 0 !important;
        max-width: 220px !important;
        z-index: 6 !important;
    }
}

@media (max-width: 430px) {
    .section-mantiene-produccion {
        /* Eliminar espacio superior y usar cover para evitar huecos */
        background-position: center bottom !important;
        min-height: auto !important;
        padding: 0 0px 8px !important; /* eliminar espacio superior */
        margin-top: 0 !important;
        background-repeat: no-repeat !important;
        background-size: 100% auto !important; /* fill the section, no white gap */
        background-color: #fff !important;
    }

    .section-mantiene-produccion .button-mantiene {
        bottom: 8px !important;
        padding: 10px 22px !important;
        font-size: 1em !important;
    }
}

/* Hacer visible el h2 en móviles sin cambiar su color: sombra y prioridad de z-index */
@media (max-width: 600px) {
    .section-mantiene-produccion h2 {
        position: relative !important;
        z-index: 7 !important;
        text-shadow: 0 2px 6px rgba(0,0,0,0.75) !important;
    }
}

@media (max-width: 430px) {
    .container-mantiene-produccion h2 {
        position: relative !important;
        z-index: 8 !important;
        text-shadow: 0px 3px 8px rgba(0,0,0,0.85) !important;
        line-height: 1.05 !important;
    }
}

@media (max-width: 480px) {
    .content-left-minuto h2 {
        font-size: 1.8em;
    }

    .text-right-minuto p {
        font-size: 1em;
    }

/* Final mobile override: garantizar layout correcto de hero en teléfonos */
@media (max-width: 600px) {
    .hero-section {
        display: block !important;
        position: relative !important;
        padding: 24px 16px !important;
        min-height: 360px !important;
        background: var(--primary-orange) !important;
        overflow: visible !important;
    }

    .hero-content {
        max-width: 62% !important;
        width: 62% !important;
        padding: 8px 6px !important;
        box-sizing: border-box !important;
        z-index: 3 !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .hero-content h1 {
        font-size: 26px !important;
        line-height: 1.05 !important;
        color: #ffffff !important;
        margin: 0 0 10px 0 !important;
    }

    .hero-content p {
        font-size: 14px !important;
        color: #ffffff !important;
        margin: 0 0 14px 0 !important;
    }

    .hero-content .button {
        display: inline-flex !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }

    .hero-image-container {
        position: absolute !important;
        right: 8px !important;
        top: 18% !important;
        width: 36% !important;
        max-width: 240px !important;
        height: auto !important;
        z-index: 2 !important;
        display: block !important;
        pointer-events: none !important;
    }

    .hero-main-image {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        transform: none !important;
        border-radius: 6px !important;
    }

    /* Evitar que la info-section suba debajo del hero: separar con padding */
    .info-section {
        margin-top: 24px !important;
        padding-top: 12px !important;
    }
}

    .button-minuto,
    .button-mantiene {
        padding: 12px 25px;
        font-size: 1em;
    }

    .section-mantiene-produccion h2 {
        font-size: 1.4em;
    }
}


/*----------------------------- 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;
    /* Ajustes: adaptar hero-section en móviles para que se vea similar a la vista de PC */
    .hero-section {
        position: relative;
        display: block;
        background: var(--primary-orange);
        color: #ffffff;
        padding: 28px 18px;
        overflow: visible;
        min-height: 320px;
    }

    .hero-content {
        width: 100%;
        max-width: 60%;
        z-index: 3;
        position: relative;
        padding: 10px 6px;
        box-sizing: border-box;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.02;
        color: #ffffff;
        margin-bottom: 12px;
    }

    .hero-content p {
        color: #fff;
        font-size: 14px;
        margin-bottom: 16px;
    }

    .hero-content .button {
        width: auto;
        display: inline-flex;
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Posicionar la imagen a la derecha, parcialmente visible como en desktop */
    .hero-image-container {
        position: absolute;
        right: 8px;
        top: 18px;
        width: 40%;
        max-width: 260px;
        height: auto;
        z-index: 2;
        display: block;
        pointer-events: none;
    }

    .hero-main-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        border-radius: 8px;
    }

    /* Ajustes de los elementos decorativos (tag, circle, dotted line) para que queden visibles */
    .tag {
        position: absolute;
        right: calc(40% + 12px);
        top: 24px;
        z-index: 4;
        transform: translateX(6px);
    }

    .white-circle {
        position: absolute;
        right: 28px;
        bottom: 24px;
        z-index: 4;
    }

    .dotted-line {
        position: absolute;
        right: 44px;
        bottom: 60px;
        z-index: 4;
    }
        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;
    }
}

/* HERO SECTION: Optimización para móviles y tabletas */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        height: auto;
        min-height: 350px;
        padding: 30px 10px;
        align-items: center;
        justify-content: flex-start;
    }
    .hero-content {
        max-width: 100%;
        padding: 20px 10px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }
    .hero-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .hero-image-container {
        max-width: 100%;
        height: 220px;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .hero-main-image {
        position: static;
        width: 100%;
        max-width: 320px;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
        top: auto;
        right: auto;
        transform: none;
    }
    .tag, .white-circle, .dotted-line {
        position: static;
        margin: 10px auto;
        display: block;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: 15px 5px;
        min-height: 220px;
    }
    .hero-content {
        padding: 10px 2px;
    }
    .hero-content h1 {
        font-size: 1.3em;
    }
    .hero-content p {
        font-size: 0.95em;
    }
    .hero-image-container {
        height: 140px;
    }
    .hero-main-image {
        max-width: 180px;
    }
}

/*----------------------------- 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;
}

/* Ajustes Responsivos para pantallas más pequeñas (tabletas y monitores pequeños) */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 15px;
    }
    .nav-links li {
        margin: 0 10px;
    }
    .nav-links a {
        font-size: 16px;
        padding: 6px 10px;
    }
    .hero {
        height: auto; /* Permite que el hero se ajuste al contenido en mobile */
        min-height: 80vh; /* Ajusta el min-height del hero */
        padding-top: 80px; /* Ajusta el padding para el navbar */
        padding-bottom: 50px;
    }
    .video_inicio {
        width: 90%; /* Ajusta el ancho para el texto en mobile */
        margin: 0 auto; /* Centra el contenido del video_inicio */
    }
    .video_inicio h1 {
        font-size: 48px;
        line-height: 1.1;
    }
    .video_inicio p {
        font-size: 16px;
    }
    .hero-button-primary {
        padding: 10px 20px;
        font-size: 18px;
        height: auto;
    }

    .main-container {
        flex-direction: column; /* Apila las secciones de imagen y texto verticalmente */
        height: auto;
        max-width: 90%;
    }
    .image-section {
        height: 250px;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        margin-bottom: 10px;
        border-radius: 10px; /* Asegura bordes redondeados */
    }
    .image-left, .image-middle {
        margin-left: 0; /* Asegura que no haya margen izquierdo en responsive */
        margin-right: 0;
    }

    .text-content-section {
        padding: 15px;
        padding-top: 30px; /* Menos padding superior en responsive */
        height: auto;
    }
    .headline {
        font-size: 1.8em;
    }
    .sub-headline {
        font-size: 1em;
    }

    .container {
        width: 95%; /* Ajusta el ancho del carrusel */
        height: 500px; /* Ajusta la altura para tabletas */
    }

    /* ACERCA DE (Imagen Original) */
    .about-us-image-section {
        height: auto; /* Permite que la altura se ajuste en móviles */
        max-width: 95%; /* Ocupa más ancho en tabletas */
        padding: 40px 15px; /* Ajusta el padding */
        margin: 30px auto; /* Ajusta margen */
    }
    .about-us-image-section .main-title {
        font-size: 2em;
    }
    .about-us-image-section .subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .background-blue-shape {
        width: 100%; /* Asegura que la forma azul siga extendiéndose */
        height: 40%; /* Un poco menos de alto para la forma azul en tabletas */
        transform: translateY(30%); /* Ajusta si es necesario */
    }


    /* Responsivo para la Sección de Socio Estratégico */
    .strategic-partner-section {
        height: 500px; /* Ajusta la altura para tabletas */
        padding-bottom: 40px;
    }
    .strategic-partner-section .title {
        font-size: 2.5em;
    }
    .strategic-partner-section .subtitle {
        font-size: 1.2em;
    }
    .strategic-partner-section .button-action {
        padding: 12px 25px;
        font-size: 1em;
    }


    .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;
    }
}

/* Ajustes Responsivos para pantallas muy pequeñas (teléfonos móviles) */
@media (max-width: 600px) {
    .navbar {
        padding: 8px 10px;
    }
    .overlay-image {
        max-width: 120px;
    }
    .nav-links {
        display: none; /* Podrías implementar un menú hamburguesa aquí */
    }

    .hero {
        padding-left: 20px;
        padding-right: 20px;
        min-height: 60vh; /* Reduce aún más el min-height del hero */
    }
    .video_inicio h1 {
        font-size: 36px;
    }
    .video_inicio p {
        font-size: 14px;
    }
    .hero-button-primary {
        padding: 8px 15px;
        font-size: 16px;
    }

    .headline {
        font-size: 1.5em;
    }
    .sub-headline {
        font-size: 0.9em;
    }
    .button-primary {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .container {
        height: 400px; /* Ajusta la altura para móviles */
    }
    .container .slide .item {
        width: 150px; /* Ajusta el tamaño de los elementos del slider */
        height: 250px;
    }
    /* Adapta las posiciones de los items del slider si es necesario */

    /* ACERCA DE (Imagen Original) */
    .about-us-image-section {
        padding: 30px 10px;
        margin: 20px auto;
    }
    .about-us-image-section .main-title {
        font-size: 1.8em;
    }
    .about-us-image-section .subtitle {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .background-blue-shape {
        height: 30%; /* Menos alto para la forma azul en móviles */
        transform: translateY(20%); /* Ajusta si es necesario */
    }

    /* Responsivo para la Sección de Socio Estratégico */
    .strategic-partner-section {
        height: 400px; /* Ajusta la altura para móvil */
        padding-bottom: 30px;
    }
    .strategic-partner-section .title {
        font-size: 1.8em;
    }
    .strategic-partner-section .subtitle {
        font-size: 1em;
    }
    .strategic-partner-section .overlay-gradient {
        height: 70%; /* Aumenta la altura del gradiente para móvil */
    }

    .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 */
    }
}

/* Fuerza escala extra en móviles muy pequeños (ej. 412px) */
@media (max-width: 430px) {
    .hero-image-container {
        overflow: visible !important;
        right: -0px !important;
        max-width: none !important;
    }
    .hero-main-image {
        /* Escalado visual: flip horizontal + aumento */
        transform: translateY(70%) scaleX(-1) scale(1.2) !important;
        width: 100% !important;
        height: auto !important;
        right: 45px !important;
        top: 50% !important;
        object-fit: cover !important;
        object-position: center right !important;
        max-width: none !important;
        z-index: 6 !important;
    }
}

/* Fix: evitar franja derecha en móviles; forzar sin overflow horizontal y ajustar transform sin ampliar layout */
/* Restaurar overflow-x para permitir que los contenedores recorten internamente */
@media (max-width: 430px) {
    html, body {
        overflow-x: visible !important;
    }

    /* Mantener el contenedor de la imagen dentro del ancho del hero y recortar internamente */
    .hero-image-container {
        position: absolute !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important; /* Anclar al fondo del hero */
        width: 70% !important;
        max-width: 520px !important;
        height: 48% !important; /* ocupa la porción inferior del recuadro naranja */
        overflow: hidden !important; /* recorta la imagen sin ampliar el layout */
        z-index: 3 !important;
        pointer-events: none !important;
    }

    /* La imagen puede crecer dentro del contenedor pero no expandirá el ancho de la página */
    .hero-main-image {
        position: absolute !important;
        right: -10px !important; /* desplaza visualmente parte fuera del contenedor */
        top: auto !important;
        bottom: 0 !important; /* pegar al fondo del contenedor */
        transform: translateY(0) scaleX(-1) scale(1.6) !important;
        height: 120% !important;
        width: auto !important;
        object-fit: cover !important;
        object-position: center right !important;
        max-width: none !important;
        z-index: 4 !important;
    }
}

/* Solución 1: ocultar overflow del hero en móviles pequeños para evitar franja derecha */
@media (max-width: 430px) {
    .hero-section {
        overflow: hidden !important;
    }
}

/* Mover la etiqueta debajo del botón en móviles y ajustar su estilo */
@media (max-width: 430px) {
    .hero-content .tag {
        position: static !important;
        display: inline-block !important;
        margin-top: 12px !important;
        background-color: var(--primary-blue) !important;
        color: #fff !important;
        padding: 8px 14px !important;
        border-radius: 18px !important;
        font-size: 0.9em !important;
        font-weight: 600 !important;
        align-self: flex-start !important;
    }
}

/* Eliminación definitiva de la franja derecha en móviles pequeños */
@media (max-width: 430px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    .hero-section,
    .info-section,
    main,
    footer {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
}

/* Centrar el círculo y la línea decorativa en móviles */
@media (max-width: 430px) {
    .white-circle {
        right: auto !important;
        left: 50% !important;
        transform: translateY(100%) translateX(-450%) !important;
        bottom: 40px !important;
        width: 18px !important;
        height: 18px !important;
        z-index: 6 !important;
    }

    .dotted-line {
        right: auto !important;
        left: 50% !important;
        transform: translateX(-6050%) rotate(485deg) !important;
        transform-origin: center bottom !important;
        bottom: 72px !important;
        height: 48px !important;
        width: 2px !important;
        background-size: 100% 10px !important;
        z-index: 6 !important;
    }
}

/* Ajustes de escritorio: reducir imagen y posicionar botón al fondo de la imagen */
@media (min-width: 993px) {
    .section-mantiene-img {
        width: auto;
        max-width: 900px;
        margin: 0 auto;
        display: block;
    }
    .section-mantiene-produccion {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .container-mantiene-produccion {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        padding-bottom: 28px;
        pointer-events: none;
        z-index: 6;
    }
    .container-mantiene-produccion h2 {
        pointer-events: auto;
        margin-bottom: 12px;
        text-align: center;
        color: #ffffff;
    }
    .button-mantiene {
        pointer-events: auto;
        margin-top: 0;
        position: relative;
        z-index: 8;
    }
}

/* --- Footer: replicar vista móvil desde Contacto/style.css --- */
@media (max-width: 768px) {
    footer {
        padding: 20px 12px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0 10px;
    }

    .footer-content .logo,
    .footer-content .contact-info,
    .footer-content .quick-links {
        max-width: 100%;
        width: 100%;
        padding: 8px 0;
        text-align: left !important;
    }

    .footer-content .logo img {
        width: 200px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .quick-links {
        flex-direction: column;
        gap: 6px;
        align-items: left;
    }

    .quick-links a {
        display: inline-block;
        padding: 6px 8px;
    }

    .sco {
        justify-content: center;
        margin-top: 8px;
    }

    .footer-copyright-text {
        text-align: center;
        font-size: 0.9em;
        margin-top: 14px;
    }

    footer > div:nth-of-type(2) {
        width: 90%;
    }
}

/* ===== Forzar colores menú y submenú SOLO en teléfonos (<=480px) ===== */
@media (max-width: 480px) {
    /* Panel principal del nav (mobile) */
    .nav-links {
        background-color: var(--primary-blue, #003366) !important;
    }

    /* Enlaces del nav: blancos */
    .nav-links a,
    .nav-links .has-dropdown > a,
    .nav-links .dropdown-arrow {
        color: #ffffff !important;
    }

    /* Forzar fondo azul y texto blanco en submenú */
    .nav-links .dropdown-menu {
        background-color: var(--primary-blue, #003366) !important;
        box-shadow: none !important;
    }

    .nav-links .dropdown-menu li a {
        color: #ffffff !important;
    }

    /* Asegurar contraste del enlace de contacto */
    .nav-links li.contacto a {
        color: #ffffff !important;
        background-color: rgba(0,0,0,0.06) !important;
    }
}
