/* Estilos Generales */
:root {
    --primary-color: #C0AD9D;
    --dark-bg: #141414; /* Color oscuro actualizado */
    --light-gray-bg: #ffffff; /* Color claro actualizado */
    --light-gray-bg-alt: #f0f0f0; /* Nuevo gris claro para fondos */
    --text-dark: #141414;
    --text-light: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--text-light);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    font-weight: 700;
}

h1 { font-size: 2.25rem; } /* 36px */
h2 { font-size: 1.875rem; } /* 30px */
h3 { font-size: 1.5rem; } /* 24px */
p { 
    font-size: 1.125rem; /* 18px */
    font-weight: 400;
}

.highlight-text {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 100px;
    padding: 10px 40px;
    font-size: 1.25rem;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-bg);
    color: var(--text-light);
    border-color: var(--dark-bg);
}

/* Animación de Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Botones Sociales Flotantes */
.social-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1030;
    display: flex;
    flex-direction: column;
}

.social-container a {
    margin-bottom: 5px;
}

.social-container img {
    border-radius: 8px 0 0 8px;
    transition: transform 0.3s ease;
}

.social-container img:hover {
    transform: scale(1.1);
}

/* Barra de Navegación */
.menu {
    background-color: var(--dark-bg); /* Fondo oscuro actualizado */
    min-height: 100px;
    box-sizing: border-box;
    padding: 0px 20px 0px 40px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    background-color: transparent; /* Fondo del logo eliminado */
    padding: 20px 0px;
    border-radius: 0;
}

.navbar-brand img {
    height: 70px;
}

.navbar-nav .nav-link-simple {
    color: var(--text-light);
    font-weight: 400;
    padding: 8px 5px;
    margin: 0 15px; /* Aumento de separación */
    transition: color 0.3s ease;
    opacity: 0;
    animation: menuIn 0.6s ease-in-out forwards;
    position: relative;
    white-space: nowrap;
}

.navbar-nav .nav-link-simple::after {
    content: '|';
    color: var(--text-light);
    position: absolute;
    right: -20px; /* Ajuste de posición del divisor */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

/* Ocultar el divisor del último elemento simple */
.navbar-nav .nav-link-simple:last-child::after {
    content: '';
}


.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Se eliminó .nav-link-wrapper porque ya no se usa en el menú */

/* Delay para animación de links */
#link-0 { animation-delay: 0.2s; }
#link-1 { animation-delay: 0.3s; }
#link-2 { animation-delay: 0.4s; }
#link-ub { animation-delay: 0.5s; }
#link-3 { animation-delay: 0.6s; }
#link-4 { animation-delay: 0.7s; }

@keyframes menuIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Encabezado Principal */
.masthead {
    height: 800px;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding-bottom: 40px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background-color: var(--dark-bg); /* Fallback color */
}

.masthead video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
}

.masthead .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

.masthead-content {
    position: relative;
    z-index: 2;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0; /* Estado inicial para la animación */
    animation: mastheadFadeInUp 1s ease-out 1.5s forwards; 
}
.masthead-text{
    width: 60%;
}

@keyframes mastheadFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.masthead-content p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-top: 20px;
}

.masthead-content .btn-quote {
    background: var(--text-light);
    color: var(--text-dark);
    border: none;
    border-radius: 100px; /* Bordes redondeados */
    font-weight: 700;
    font-size: 1.2rem; /* Botón grande */
    padding: 15px 40px; /* Botón grande */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.masthead-content .btn-quote:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}


/* Secciones Generales */
section {
    padding: 80px 0;
}

/* Sección Necesidades */
.necesidades-container {
    padding: 100px 15px;
    background-color: var(--light-gray-bg); /* Revertido a fondo claro */
}
.necesidades-container h1 {
    margin-bottom: 80px;
    color: var(--text-dark); /* Revertido a texto oscuro */
}
.necesidades-icon-container {
    background-color: var(--dark-bg);
    border-radius: 20px;
    padding: 35px 20px 20px 20px;
    width: 180px; /* Tamaño reducido */
    height: 180px; /* Tamaño reducido */
    margin: 10px; /* Separación entre tarjetas */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Sombra para resaltar */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}
.necesidades-icon-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.necesidades-icon-container img {
    max-width: 70px; /* Icono más pequeño */
    height: auto;
}
.necesidades-icon-container p {
    margin-top: 15px;
    width: 100px;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
}
#necesidades-icon-1 { transition-delay: 0.2s; }
#necesidades-icon-2 { transition-delay: 0.4s; }
#necesidades-icon-3 { transition-delay: 0.6s; }
#necesidades-icon-4 { transition-delay: 0.8s; }
#necesidades-icon-5 { transition-delay: 1s; }

/* Sección Cotización */
.cotizacion-container {
    background-image: url('../img/background/cotizacion-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 15px 300px 15px;
    color: var(--text-light);
}
.cotizacion-container .btn-primary {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-radius: 100px;
    border-color: var(--text-light);
    font-weight: 700;
}
.cotizacion-container .btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}
.cotizacion-text {
    max-width: 600px;
    margin-top: 30px;
}
.cotizacion-subtitulo {
    margin-top: 80px;
}
.tabla-cotizacion {
    margin-top: 30px;
}
.tabla-titulo {
    background-color: var(--dark-bg);
    padding: 20px;
    color: var(--text-light);
    font-weight: 700;
    text-align: center;
}
.tabla-contenido {
    background-color: var(--light-gray-bg-alt);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-dark);
    border: 2px solid var(--dark-bg);
    border-top: none;
}
.tabla-row-titulo .tabla-titulo:first-child { border-radius: 10px 0 0 0; }
.tabla-row-titulo .tabla-titulo:last-child { border-radius: 0 10px 0 0; }
.tabla-cotizacion .row .tabla-contenido:first-child { border-radius: 0 0 0 10px; }
.tabla-cotizacion .row .tabla-contenido:last-child { border-radius: 0 0 10px 0; }

.tabla-contenido img {
    margin-bottom: 20px;
    height: 60px;
}
.tabla-contenido p {
    margin-top: 15px;
    font-size: 1rem;
}

/* Sección Alianza */
.alianza-container {
    margin-top: -200px;
    padding-bottom: 80px;
    background: transparent;
}
.alianza-container h1 {
    color: var(--text-light);
    margin-bottom: 30px;
}
.alianza-icon-container {
    background-color: var(--dark-bg);
    border-radius: 20px;
    padding: 20px;
    min-height: 180px; /* Altura mínima para consistencia */
    width: 180px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}
.alianza-icon-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.alianza-icon-container img {
    max-width: 70px;
    height: auto;
    margin-bottom: 15px;
}
.alianza-icon-container p {
    color: var(--text-light);
    font-weight: 600;
    text-align: center; /* Asegura que el texto que se envuelve permanezca centrado */
}
#alianza-icon-1 { transition-delay: 0.2s; }
#alianza-icon-2 { transition-delay: 0.4s; }
#alianza-icon-3 { transition-delay: 0.6s; }
#alianza-icon-4 { transition-delay: 0.8s; }
#alianza-icon-5 { transition-delay: 1s; }

/* Sección Compromiso */
.compromiso-container {
    padding: 80px 15px;
}
.compromiso-info {
    margin-top: 50px;
}
.compromiso-map-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.compromiso-map-container .img-fluid {
    max-width: 80%;
    height: auto;
}
.compromiso-text img {
    float: left;
    height: 80px;
    margin-right: 25px;
    margin-bottom: 15px;
}

/* Sección Certificación */
.certification-section {
    padding: 80px 15px;
    background-color: var(--light-gray-bg-alt);
}

.certification-section h2 {
    font-size: 2.25rem;
    color: var(--text-dark);
}

.hr-certification {
    background-color: var(--primary-color);
    height: 3px;
    width: 100%;
    margin: 20px 0;
    border: none;
    opacity: 1;
}

.certification-section p {
    font-size: 1.125rem;
    color: #6c757d;
}

.certification-logo {
    max-width: 380px;
    height: auto;
}


/* Sección Industria */
.industria-container {
    padding: 80px 15px;
}
.industria-titulo {
    margin-bottom: 50px;
}
.industria-icon-container {
    background-color: var(--light-gray-bg-alt);
    padding: 30px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.industria-icon-container p {
    margin-top: 30px;
}
.industria-icon-container img {
    height: 80px;
}
#industria-icon-1 { transition-delay: 0.1s; }
#industria-icon-3 { transition-delay: 0.2s; }
#industria-icon-4 { transition-delay: 0.3s; }
#industria-icon-5 { transition-delay: 0.4s; }
#industria-icon-6 { transition-delay: 0.5s; }
#industria-icon-7 { transition-delay: 0.6s; }
#industria-icon-8 { transition-delay: 0.7s; }
#industria-icon-9 { transition-delay: 0.8s; }


/* Sección Contacto Rápido */
.contacto-container {
    padding: 60px 15px;
    background-color: #212121;
    margin-top: 0;
    color: var(--text-light);
}

.contacto-container h2 {
    margin: 0;
}
/* Estilo específico para el botón de contacto en esta sección */
.contacto-container .btn-primary:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-color: var(--text-light);
}

/* Footer */
.footer-container {
    background-color: #303030;
    padding: 50px 15px;
    color: #999999;
}
.footer-logo {
    height: 120px; /* Ajuste de tamaño */
}
.footer-nav .nav-link {
    color: white;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}
.footer-nav .nav-link:hover {
    color: var(--primary-color);
}
.hr-footer {
    background-color: white;
    margin: 20px 0 30px 0;
}
.footer-info h3 {
    color: #999999;
    margin-bottom: 10px;
}
.footer-info p {
    font-size: 1rem;
}
.footer-info a {
    color: #999999;
    transition: color 0.3s;
}
.footer-info a:hover {
    color: white;
}

/* Media Queries para Responsividad */
@media (max-width: 1024px) {
    .navbar-brand {
        padding-left: 15px;
        padding-right: 15px;
        margin-right: 0;
    }
}

@media (max-width: 991.98px) {
    .menu {
        min-height: auto; /* Permite que el menu crezca */
    }
    .navbar-collapse {
        background-color: var(--dark-bg);
        padding: 15px;
        text-align: center;
        border-top: 1px solid #444;
    }
    .navbar-nav .nav-link-simple::after {
        content: ''; /* Ocultar divisores en vista móvil */
    }
    .cotizacion-container {
        background-image: url('');
        background-color: var(--dark-bg);
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    p { font-size: 1rem; }

    .masthead {
        height: 600px;
    }
    .masthead video {
        display: none; /* Oculta el video en pantallas pequeñas */
    }
    .masthead-text{
        width: 100%;
    }
    .masthead {
        /* Muestra una imagen de fondo como alternativa */
        background-image: url('../img/background/masthead-bg-mobile.png');
        background-size: cover;
        background-position: center;
    }
    .masthead-content .btn-quote {
        font-size: 1.2rem;
        padding: 12px 50px;
    }
    
    .masthead-content p {
        font-size: 1.2rem;
        padding: 0 20px;
    }

    .necesidades-container .row, .alianza-container .row.g-2 {
        justify-content: center;
    }
    .necesidades-icon-container, .alianza-icon-container {
        width: 150px;
        height: 150px;
        margin: 5px;
    }

    .cotizacion-container {
        padding: 40px 15px;
    }
    .tabla-contenido {
        border-radius: 0 !important;
        margin-bottom: 10px;
        border: 2px solid var(--text-dark);
    }
    .tabla-cotizacion .row.g-1 .tabla-contenido {
        border-radius: 1rem !important;
    }
    .tabla-contenido strong {
        display: block;
        margin-bottom: 15px;
        font-size: 1.2rem;
        color: var(--primary-color);
    }

    .alianza-container {
        margin-top: 0;
        padding: 40px 15px;
    }
    .alianza-container h1 {
        color: var(--text-dark);
    }
    .alianza-icon-container {
        border-radius: 20px !important;
    }

    .compromiso-info .compromiso-map-container .img-fluid {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .compromiso-text {
        text-align: center;
    }
    .compromiso-text img {
        float: none;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .certification-section .text-center {
        margin-top: 30px;
    }

    .industria-row .industria-icon-container {
        border-radius: 20px !important;
        margin-bottom: 1rem;
    }

    .contacto-container {
        margin-top: 0;
        padding: 40px 15px;
    }
    .contacto-container .row {
        flex-direction: column;
    }
    .contacto-container h2 {
        margin-bottom: 1rem;
    }

    footer .text-center {
        margin-bottom: 30px;
    }
    .footer-nav {
        flex-direction: column;
        align-items: center;
    }
    .footer-info {
        text-align: center;
        margin-bottom: 20px;
    }
}