/* ======================================== */
/* === ARCHIVO BASE (app.css) === */
/* ======================================== */

/* --- RESET Y ESTILOS GLOBALES --- */
:root {
    --color-principal-oscuro: #7C8583;
    --color-principal-claro: #8A9492;
    --color-fondo-claro: #FFFFFF;
    --color-texto-oscuro: #343A40;
    --color-texto-claro: #FFFFFF;
    --color-dorado: #c9a86b;
    --color-enlace-footer: #90ee90;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-texto-oscuro);
    background-color: var(--color-fondo-claro);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2 {
    font-weight: 600;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.5;
    max-width: 896px;
    margin: 0 auto 40px auto;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--color-texto-oscuro);
    color: var(--color-texto-claro);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #555;
    transform: translateY(-2px);
}

/* --- 1. HEADER (COMPARTIDO) --- */
.main-header {
    background-color: #495B4A;
    padding: 24px 180px;
    border-bottom: 0.5px solid #FFFFFF;
    z-index: 1000;
    position: relative;
    /* CORRECCIÓN: Clave para el menú móvil */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    text-decoration: none;
    margin-left: 80px;
}

.logo img {
    /* height: 135px; */
    width: auto;
    display: block;
}

.main-nav {
    /* Estilos de la navegación de escritorio */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
}

.main-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 12px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    right: 12px;
    height: 1px;
    background-color: #FFFFFF;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.hamburger-menu {
    display: none;
    font-size: 1.8rem;
    color: #FFFFFF;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- 6. CERTIFICACIONES (COMPONENTE COMPARTIDO) --- */
.certifications {
    background: linear-gradient(180deg, #698772 4.33%, #6C8976 29.33%, #73907E 49.52%, #698772 78.85%);
    padding: 40px 0 32px 0;
    overflow: hidden;
}

.certifications .container {
    max-width: 1440px;
    padding: 0 180px;
}

.certifications .section-title {
    color: #FFFFFF;
    font-size: 24px;
}

.certifications .section-title strong {
    font-weight: 500;
}

.certifications-slider {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.swiper-slide img {
    height: 147px;
    width: auto;
    padding: 2px;
    min-width: 180px;
}

.slider-controls {
    width: 100%;
    max-width: 896px;
    margin: 40px auto 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    padding: 0 180px;
    box-sizing: border-box;
}

.swiper-button-prev,
.swiper-button-next {
    position: static;
    width: 48px;
    height: 48px;
    margin: 0;
    background-color: rgba(73, 91, 74, 0.35);
    border-radius: 50%;
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(73, 91, 74, 0.6);
}

.swiper-button-prev {
    background-image: url('../images/ep_arrow-left-bold.png');
}

.swiper-button-next {
    background-image: url('../images/ep_arrow-right-bold.png');
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

/* --- 8. FOOTER (COMPARTIDO) --- */
.main-footer {
    background-color: #495B4A;
    color: var(--color-texto-claro);
    padding: 60px 0 30px 0;
    font-family: 'Montserrat', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    margin-bottom: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.footer-col p,
.footer-col a {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    line-height: 1.8;
}

.footer-col a.green-link {
    color: var(--color-enlace-footer, #8DE39B);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-icons a {
    color: var(--color-texto-claro);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #ccc;
    transform: scale(1.1);
}

.copyright {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* --- MODALES (COMPARTIDOS) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
}

.close-button {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #ccc;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.modal-image {
    display: block;
    max-width: 90%;
    max-height: 85vh;
    margin: auto;
    object-fit: contain;
}

.modal-card {
    background-color: #FFFFFF;
    color: #495B4A;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: zoomIn 0.3s ease-out;
}

.modal-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #8DE39B;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-card-icon svg {
    width: 40px;
    height: 40px;
}

.modal-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 15px;
}

.modal-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555;
}

.modal-card .btn {
    background-color: #495B4A;
    color: #FFFFFF;
    font-weight: 500;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ======================================== */
/* === ESTILOS ADICIONALES PARA EL FOOTER === */
/* ======================================== */

/* Ajusta el tamaño de las imágenes en los enlaces de redes sociales */
.social-icons a img {
    height: auto;
    transition: transform 0.3s ease;
    /* Añade una transición suave */
}

/* Efecto hover para los íconos de imagen */
.social-icons a:hover img {
    transform: scale(1.1);
    /* Agranda un poco el icono al pasar el mouse */
}

/* Estilo para que los enlaces de teléfono y correo no cambien de color */
.footer-col a[href^="tel:"],
.footer-col a[href^="mailto:"] {
    color: inherit;
    /* Hereda el color del texto del párrafo */
    text-decoration: none;
    /* Quita el subrayado */
}


/* === DISEÑO RESPONSIVO (COMPARTIDO) === */
@media (max-width: 1200px) {

    .main-header,
    .certifications .container,
    .slider-controls {
        padding-left: 60px;
        padding-right: 60px;
    }

    .logo {
        margin-left: 0;
    }
}

@media (max-width: 992px) {
    .main-header {
        padding: 0 40px;
    }

    .logo img {
        height: 110px;
        width: auto;
    }

    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .certifications .container,
    .slider-controls {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .main-header {
        padding: 10px 20px;
    }

    .logo img {
        height: 85px;
        width: auto;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #495B4A;
        flex-direction: column;
        padding: 10px 0;
        z-index: 999;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 15px;
        text-align: center;
        border: 0;
    }

    .main-nav a:hover {
        background-color: #5a6f5f;
    }

    .main-nav a::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .certifications .container,
    .slider-controls {
        padding-left: 20px;
        padding-right: 20px;
    }
}