/* ____________________________________________Reset_______________________________*/
* {
    margin: 0;
    padding: 0;
    font-family: 'Sansation', sans-serif;
}



.gallery {
    background-color: #00551e;
    padding: 100px 0px;
}

/* ___________________________________Galeria___________________________________*/

.gallery-container {
    padding: 40px 0;
}


.gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
    display: block;
}

.gallery img:hover {
    transform: scale(1.1);
    /* Zoom solo al pasar el mouse */
    opacity: 1;
}

.gallery .col-md-3 {
    overflow: hidden;
    /* Evita que la imagen crezca fuera del contenedor */
}

.gallery h2 {
    text-align: center;
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 30px;
}


/*____________________________________________Titulos_____________________________________*/

.title {
    color: #0b6e4f;
    font-weight: bold;
    text-align: center;
    margin: 80px 0px 60px 0px;
}

/* __________________________________________Header_______________________________________*/

#video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.overlay {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: black;
    background: rgba(255, 255, 255, 0.6);
    padding: 20px 0 0;
    /* Reducimos padding inferior */
    border-radius: 10px;
    display: none;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.color-bar {
    height: 10px;
    width: 100%;
    display: flex;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
    margin-top: 0px;
    /* sin separación con el contenido */
}

.color-bar::before {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, #cdbe00, #cdbe00, #00551e, #00551e);
}

/* Texto del overlay */
.overlay h1 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 800;
    color: #dcdcdc;
}

.overlay p {
    font-size: 1.2em;
}

/* Botón del overlay */
#video-container .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #ffffff;
    color: #0b6e4f;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
    margin-bottom: 1rem;
}

#video-container .btn:hover {
    background: #0b6e4f;
    color: #fff;
}

/* Estilos del header y navbar */
#menu {
    position: fixed;
    width: 100%;
    transition: background-color 0.3s ease-in-out;
    font-size: 18px;
    z-index: 1000;
}

#menu.transparent {
    background-color: transparent !important;
}

#menu.scrolled {
    background-color: white !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar y enlaces */
#menu .navbar {
    margin-inline: auto;
    padding-left: 10%;
}

#menu .collapse {
    margin-inline: auto;
    padding-left: 50%;
}

#menu .navbar-brand,
#menu .nav-link {
    color: white !important;
    position: relative;
    margin: 0 20px;
    transition: color 0.3s ease-in-out;
}

/* Hover con subrayado animado */
#menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #cdbe00;
    transition: width 0.3s ease-in-out;
}

#menu .nav-link:hover::after {
    width: 100%;
}

#menu .nav-link:hover {
    color: #cdbe00 !important;
}

/* Enlaces al hacer scroll (fondo blanco) */
#menu.scrolled .navbar-brand,
#menu.scrolled .nav-link {
    color: black !important;
}

#menu.scrolled .nav-link:hover {
    color: #00551e !important;
}

#menu.scrolled .nav-link::after {
    background-color: #00551e;
}

/* Ajustes generales del contenido */
.content {
    padding: 100px 10px;
    text-align: center;
}

.content h1,
.content h2 {
    color: #00551e;
}

.content p {
    font-size: 18px;
}

/* Logo */
a img {
    width: 95px;
}


.videoyoutube {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    padding-top: 25px;
    height: 0;
}

.videoyoutube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


#blanco {
    margin: 20px 0px;
    background: #fff;
    color: #fff;
}

/* ____________________________________________Footer_______________________________*/
.footer {
    background: #cdbe29;
    background: url('../Img/2.JPG') center/cover no-repeat;
    color: white;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.footer-overlay {
    background-color: rgba(100, 111, 3, 0.7);
    /* Un verde más sólido y elegante */
    padding: 50px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 30px;
}

.footer-logo {
    max-width: 130px;
    height: auto;
}

.footer-info {
    flex: 1;
}

.footer-title {
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-divider {
    width: 50px;
    border: 2px solid #f8c146;
    margin: 10px 0 20px;
}

.footer a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.footer a:hover {
    color: #f8c146;
}

.footer-bottom {
    background-color: #003814;
    padding: 15px 0;
    font-size: 14px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer .social-icon {
    color: #ffffff;
    font-size: 22px;
    transition: color 0.3s, transform 0.3s;
}

.footer .social-icon:hover {
    color: #f8c146;
    transform: scale(1.2);
}



@media (min-width: 420px) and (max-width: 900px) {

    #menu .collapse {
        margin-inline: auto;
        padding-left: 0%;
    }

    .overlay {
        display: block;
        position: relative;
        margin-top: 40%;
        bottom: 0%;
    }
}