/* =====================================================
   VARIABLES CSS - PALETA DE COLORES
   (Variables globales para todo el proyecto)
===================================================== */
:root {
    --primary: #000000;
    --secondary: #facc15;
    --accent: #eab308;
    --bg: #ffffff;
    --text: #334155;
    --muted: #94a3b8;
}

/* =====================================================
   RESET Y ESTILOS BASE
   (Estilos base del documento)
===================================================== */
body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;

}

/* =====================================================
   HEADER - NAVEGACIÓN PRINCIPAL
   (Estilos personalizados para el header - NO Bootstrap)
===================================================== */
.header__container {
    height: 64px;
    background: var(--primary);
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    height: 10vh;
}

.header__nav__link {
    color: #fff;
    margin: 0 12px;
    text-decoration: none;
    cursor: pointer;
}

.header__nav__link.active {
    color: var(--secondary);
    position: relative;
}

.header__nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
}

.header__btn__menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
}

/* =====================================================
   SIDEBAR - MENÚ MÓVIL
   (Estilos personalizados para el sidebar móvil - NO Bootstrap)
===================================================== */
.sidebar__container {
    position: fixed;
    top: 64px;
    left: -50%;
    width: 50%;
    height: 100vh;
    background: var(--primary);
    transition: 0.3s;
    z-index: 999;
    padding-top: 20px;
}

.sidebar__container.active {
    left: 0;
}

.sidebar__link {
    display: block;
    padding: 16px 20px;
    color: #fff;
    text-decoration: none;
}

/* =====================================================
   MAIN - CONTENEDOR PRINCIPAL
   (Estilos personalizados para el contenedor principal - NO Bootstrap)
===================================================== */
.main__container {
    margin-top: 64px;
}

/* =====================================================
   HERO - SECCIÓN DE VIDEO
   (Estilos personalizados para el video hero - NO Bootstrap)
===================================================== */
.hero__video__container {
    height: 90vh;
    position: relative;
}

.hero__video__container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__video__btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--secondary);
    border: none;
    padding: 12px 14px;
    border-radius: 50%;
}

/* =====================================================
   COLABORACIONES - SLIDER DE LOGOS
   (Estilos personalizados para la sección de colaboraciones - NO Bootstrap)
===================================================== */
.colaboraciones__section {
    background: linear-gradient(180deg, 100%);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.colaboraciones__section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.colaboraciones__section .container {
    padding: 0;
    max-width: 100%;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg);
    border-radius: 2px;
}

/* Animación del slider */
@keyframes scroll__animation {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 12));
    }
}

.slider__container {
    background: transparent;
    height: 120px;
    margin: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.slider__container::before,
.slider__container::after {
    background: linear-gradient(to right, transparent 100%);
    content: "";
    height: 120px;
    position: absolute;
    width: 150px;
    z-index: 2;
    top: 20px;
}

.slider__container::after {
    right: 0;
    top: 20px;
    transform: rotateZ(180deg);
}

.slider__container::before {
    left: 0;
    top: 20px;
}

.slide__track {
    animation: scroll__animation 40s linear infinite;
    display: flex;
    width: calc(250px * 24);
    gap: 0;
}

.slide__item {
    height: 120px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex-shrink: 0;
}

.slide__item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.slide__item:hover img {
    filter: grayscale(0%) brightness(1.2);
    opacity: 1;
    transform: scale(1.05);
}

/* =====================================================
   MÉTRICAS - SECCIÓN DE ESTADÍSTICAS
   (Estilos personalizados para la sección de métricas - NO Bootstrap)
===================================================== */
.metrics__section {
    padding: 60px 0;
}

.metrics__card {
    text-align: center;
}

.metrics__number {
    font-size: 42px;
    color: var(--accent);
}

/* =====================================================
   NOSOTROS - SECCIÓN ACERCA DE
   (Estilos personalizados para la sección nosotros - NO Bootstrap)
===================================================== */
.about__card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

/* =====================================================
   GALERÍA - GRID DE IMÁGENES
   (Estilos personalizados para la galería - NO Bootstrap)
===================================================== */
.gallery__grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
}

.image__container {
    position: relative;
    overflow: hidden;
}

.overlay__effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image__container:hover .overlay__effect {
    opacity: 1;
}

/* =====================================================
   Galeria de Arboles - GRID DE IMÁGENES
   (Estilos personalizados para la galería de árboles - NO Bootstrap)
===================================================== */

#galeria {
    scroll-margin-top: 10vh;
    /* solicion al scroll de mrd jajaajaja */
}

.seccion__galeria {
    padding: 20px;
}

.gallery-img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
    border: 3px solid #8b6914;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.2);
}

.gallery-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
    border-color: #2d5016;
}

.gallery-title {
    font-style: italic;
    font-size: 1rem;
}

.modal__element__contenedor {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    width: 100%;
}

.boton__responsive {
    color: red;

}

.modal__element__uno {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    /* para cortar el exceso de imagen si se sale */
}

#modalImagen {
    width: 100%;
    height: 50vh;
    /* o la altura que desees, como 60vh si prefieres más */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.modal__title {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-align: center;
    color: #2d5016;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 1px;
}


.modal__title::after {
    /* linea divisoria del titulo*/
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: #8b6914;
    margin: 12px auto 0;
    margin-bottom: 8px;
}

.modal__liena__divisioria::after {
    /* linea divisoria del titulo*/
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: #8b6914;
    margin: 12px auto 0;
    margin-bottom: 8px;
}

.modal__indices {
    font-size: 0.85rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    color: #2c2416;
}

.modal__indices .info-linea {
    display: flex;
    gap: 5px;
    margin-bottom: 4px;
    line-height: 1.6;
}

.modal__indices .info-linea strong {
    font-weight: 600;
    font-style: italic;
    color: #3d4a35;
    font-family: 'Playfair Display', serif;
}

.modal__ubicacion {
    font-size: 0.85rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    color: #2c2416;
}

.modal__ubicacion .info-linea_ubicacion {
    gap: 5px;
    margin-bottom: 4px;
    text-align: center;
    line-height: 1.6;
}

.modal__ubicacion .info-linea_ubicacion strong {
    font-weight: 600;
    font-style: italic;
    color: #3d4a35;
    font-family: 'Playfair Display', serif;
}

.modal__iconos_ambientales {
    /*iconos */
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    font-size: 1.8rem;
    color: #5a6b4a;
    filter: drop-shadow(0 2px 4px rgba(90, 107, 74, 0.3));
}





/* =====================================================
   FOOTER - PIE DE PÁGINA
   (Estilos personalizados para el footer - NO Bootstrap)
===================================================== */
#footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #13151b;
    padding: 20px 0 20px;
    backdrop-filter: blur(3px);
}

.footer__container {
    max-width: 1170px;
    margin: auto;
}

.footer__row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.footer__title__utb {
    color: #fff;
    margin: 0;
    margin-left: 15px;
}

.footer__ul {
    list-style: none;
    padding: 0 !important;
}

.footer__li {
    list-style-type: none !important;
}

.footer__col {
    width: 21%;
    padding: 0 15px;
}

.footer__col h4 {
    font-size: 18px;
    color: #ffffff;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 500;
    position: relative;
}

.footer__col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: #ffb700;
    height: 2px;
    box-sizing: border-box;
    width: 50px;
}

.footer__col .footer__ul .footer__li:not(:last-child) {
    margin-bottom: 10px;
}

.footer__col .footer__ul .footer__li .footer__link {
    font-size: 16px;
    text-transform: capitalize;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    color: #bbbbbb;
    display: block;
    transition: all 0.3s ease;
}

.footer__col .footer__ul .footer__li .footer__link:hover {
    color: #ffffff;
    padding-left: 8px;
}

.footer__col .social-links .footer__link {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.5s ease;
}

.footer__col .social-links .footer__link:hover {
    color: #24262b;
    background-color: #ffffff;
}

.footer__header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.footer__header img {
    height: 30px;
    padding-left: 15px;
}

.footer__copyright {
    margin: 0;
    margin-right: 20px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    text-align: end;
}

.icon__fontawesome {
    margin: 7px;
    font-weight: 600;
}

/* =====================================================
   MEDIA QUERIES - DISEÑO RESPONSIVE
   (Ajustes para diferentes tamaños de pantalla)
===================================================== */

/* Tablet y pantallas medianas */
@media (max-width: 992px) {

    .slider__container::before,
    .slider__container::after {
        width: 80px;
    }

    .header__logo {
        height: 7vh;
    }
}

/* Móvil y pantallas pequeñas */
@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .colaboraciones__section {
        padding: 50px 0;
    }

    .slider__container {
        height: 100px;
        padding: 15px 0;
    }

    .slide__item {
        width: 200px;
        height: 100px;
        padding: 0 15px;
    }

    .slide__item img {
        max-height: 60px;
    }

    .slider__container::before,
    .slider__container::after {
        width: 60px;
        height: 100px;
        top: 15px;
    }

    .modal__element__contenedor {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .footer__col {
        width: 50%;
        margin-bottom: 30px;
    }
}

/* Móvil pequeño */
@media (max-width: 576px) {
    .colaboraciones__section {
        padding: 40px 0;
    }

    .slider__container {
        height: 80px;
        padding: 10px 0;
    }

    .slide__item {
        width: 150px;
        height: 80px;
        padding: 0 10px;
    }

    .slide__item img {
        max-height: 50px;
    }

    .slider__container::before,
    .slider__container::after {
        width: 40px;
        height: 80px;
        top: 10px;
    }

    .slide__track {
        width: calc(150px * 24);
    }

    .footer__col {
        width: 100%;
    }
}

/* Móvil extra pequeño */
@media (max-width: 574px) {
    .header__logo {
        height: 6vh;
    }

    .footer__col {
        width: 100%;
    }
}