*{
    box-sizing: border-box;
}

html{
   scroll-behavior: smooth; 
}

body{
    margin: 0;
    font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header{
    background-color: rgb(6, 10, 74);
}

.logo{
    height: 15vh;
}

.container{
    max-width: 1400px;
    margin: auto;
}

#galeria{
    padding: 80px 12px;
}

#galeria h1{
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    color: #D91E1E;
    padding-bottom: 50px;
}

.galeria-seccion{
    margin-bottom: 80px;
}

.galeria-seccion h2{
    text-align: center;
    font-size: 1.8em;
    color: rgb(6, 10, 74);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #D91E1E;
}

.galeria-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.galeria-item{
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.galeria-item:hover{
    transform: scale(1.05);
}

.galeria-item img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    display: block;
}

/* Lightbox styles */
.lightbox{
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active{
    display: flex;
}

.lightbox img{
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close{
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover{
    color: #D91E1E;
}

.lightbox-prev,
.lightbox-next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    z-index: 10000;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link{
    color: white !important;
    font-weight: 500;
}

.lightbox-prev{
    left: 20px;
}

.lightbox-next{
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover{
    color: #D91E1E;
}

footer{
    width: 100%;
    background: linear-gradient(135deg, rgb(6, 10, 74) 0%, rgb(15, 25, 100) 100%);
    padding: 50px 0 25px;
}

footer .container{
    width: 95%;
    max-width: 1000px;
    margin: auto;
    padding: 0 15px;
}

footer .container .row{
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
}

footer .container .row > div{
    flex: 1;
    min-width: 280px;
}

footer .container h4{
    color: white;
    margin-bottom: 25px;
    font-size: 1.3em;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

footer .container h4::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #D91E1E;
    border-radius: 2px;
}

footer li{
    list-style-type: none;
}

footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover{
    color: #D91E1E;
}

footer .contact-info{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

footer .contact-item{
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

footer .contact-item:hover{
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

footer .contact-item i{
    font-size: 22px;
    color: #D91E1E;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(217, 30, 30, 0.1);
    border-radius: 50%;
}

footer .contact-item span{
    color: white;
    font-size: 0.95em;
}

footer .social-links{
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

footer .social-links a{
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 22px;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

footer .social-links a:hover{
    background: #D91E1E;
    border-color: #D91E1E;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(217, 30, 30, 0.3);
}

footer .derechos{
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .derechos small{
    display: block;
    margin-bottom: 5px;
}

@media (min-width:720px){
    #galeria{
        padding: 130px 12px;
    }

    #galeria h1{
        font-size: 3.5em;
    }

    .galeria-seccion h2{
        font-size: 2.2em;
    }

    .galeria-grid{
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .galeria-item img{
        height: 250px;
    }

    footer .container .row{
        gap: 40px;
    }

    footer .container h4{
        text-align: left;
    }

    footer .container h4::after{
        left: 0;
        transform: none;
    }

    footer .social-links{
        justify-content: flex-start;
    }

}
