/* Hace que el div principal ocupe toda la pantalla */
* {
    margin:0;
    padding:0;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    user-select: none;
}

html, body {
    margin: 0;
    font-family: "Inter", sans-serif;
    text-align: center;
    font-size: 1.25vw;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    min-height: 100vh; /* Ensure the body extends to at least the full viewport height */
    position: relative;
}

.main-container-1 {
    min-height: 100vh; /* Ensure it expands to at least the full viewport height */
    width: 100vw;
    display: flex;
    flex-direction: column;
    background-image: url('../imagenes/route1-background.jpeg');
    background-repeat: no-repeat;
    background-position-y: bottom;
    background-position-x: 60%;
    background-attachment: fixed;
    background-size: cover;
    position: relative;
}

/* Main container for mobile */
.main-container-1-mobile {
    min-height: 100vh;
    width: 100vw;
    display: none;
    flex-direction: column;
    background-image: url('../imagenes/route1-background-mobile.jpeg');
    background-repeat: no-repeat;
    background-position-y: bottom;
    background-position-x: center;
    background-size: cover;
    position: relative;
}

h1 {
    user-select: none; /* Standard syntax */
    color: #ffff;
    text-shadow: 4px 3px #d4d4d4;
    font-family: "New Amsterdam"; 
}

.location {
    display: flex;
    flex-direction: row;
    align-items: end;

    justify-content: right;
    padding-bottom: 0; /* Agrega esta propiedad */
}

.location img , .nav-bar-location img {
    height: 2.5vw;
    margin-inline: 10px;
}

.location div , .nav-bar-location div {
    text-align: right;
    color: #ffff;
    font-family: "New Amsterdam"; 
    font-size: 2.5vw;

    height: 1.5vw;
    line-height: 1.5vw;
    text-shadow: 1px 0 10px #7f7f7f;
}

.nav-bar-location {
    display: none;
}

.title {
    margin-left: 3%;
    position: absolute;
    left: 0;
    opacity: 0; /* Make the element invisible by default */
    animation: slideFadeIn 1s forwards;
    top:23%;    
    
}

#SDC {
    text-align: right;
    
    font-weight: 200;
    font-size: 7vw;
    margin: 0;
    height: 5vw;
    line-height: 5vw;
}

#name {
    text-align: right;
    
    font-weight: 200;
    font-size: 9vw;
    height: 8vw;
    line-height: 8vw;
    margin: 0;
    margin-bottom: 15px;
}



#info {
    display: none;
}

.basic-info{
    margin-inline: 20px;
    text-align: justify;
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    gap: 3vw;
}

.inscription {
    border: 2px solid rgb(255, 255, 255); /* Añade un borde negro de 2px */
    background-color: #ffff;
    color: #000000;
    box-sizing: border-box; /* Asegura que el borde y el padding no afecten el tamaño total del elemento */
    border-radius: 50px;
    transition: 0.3s ease;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 1vw 1.2vw;
    width: 50%;
    font-weight: 500;
}

.inscription:hover {
    cursor: pointer;
    border: 2px solid rgb(166, 166, 166); /* Añade un borde negro de 2px */
    background-color: rgb(166, 166, 166);
    color: #000000;
}

.more-info {
    border: 2px solid rgb(255, 255, 255); /* Añade un borde negro de 2px */
    color: #ffff;
    box-sizing: border-box; /* Asegura que el borde y el padding no afecten el tamaño total del elemento */
    border-radius: 50px;
    transition: 0.3s ease;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 1vw 1.2vw;
    width: 50%;
}

.more-info:hover {
    cursor: pointer;
    background-color: rgb(255, 255, 255);
    color: #000000;
}



#bottom-logo {
    position: absolute;
    bottom:  3%;
    left: 2%;
    width: 13vw;
}

@media (max-width: 958px) {   
    .location {
        display: flex;
        flex-direction: row;
        align-items: end;
    
        justify-content: right;
        padding-bottom: 0; /* Agrega esta propiedad */
    }
    
    .location img , .nav-bar-location img {
        height: 2.5vw;
        margin-inline: 10px;
    }
    
    .location div {
        font-size: 4vw;
        height: 3vw;
        line-height: 3vw;
    }
    .buttons div {
        font-size: 2vw;
    }
    #SDC {
        font-size: 11vw;
        height: 9vw;
        line-height: 9vw;
    }

    #name {
        font-size: 13vw;
        height:11vw;
        line-height: 11vw;
    }

    #bottom-logo {
        width: 20vw;
    }
}

@media (max-width: 768px) {
    .section {
        flex-direction: column;
        align-items: center; /* Alinea los elementos en el centro */
    }

    .image {
        order: 1; /* La imagen se coloca primero */
        width: 100%; /* Ocupa el 100% del ancho en móviles */
    }

    .text {
        margin-top: 1vh;
        order: 2; /* El texto se coloca después de la imagen */
        max-width: 100%; /* Ocupa el 100% del ancho en móviles */
        text-align: justify; /* Centra el texto en pantallas pequeñas */
    }
    .text h2 {
        font-size: 6vw; /* Ajusta el tamaño del texto */
    }
    .text p {
        font-size: 3vw; /* Ajusta el tamaño del texto */
    }
}


@media (max-width: 458px) {    
    html {
        overflow-x: hidden;
    }
    .main-container-1 {
        display: none;
    }

    .main-container-1-mobile {  
        display: flex;

        background-image: url('../imagenes/route1-background-mobile.jpeg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position-y: bottom;
        background-position-x: center;
    }

    h1 {
        color: #ffffff;
        text-shadow: 1px 0 5px #444444;
    }

    .buttons {
        margin-top: 2vh;
    }
    .buttons div {
        font-size: 4vw;
    }

     body {
        font-size: 4vw;
        font-weight: 500;
    }
    .nav-bar-location {
        display: flex;
        position: absolute;
        top: 3.3vh;
        float: left;

        align-items: center;
        justify-content: right;
        padding-bottom: 0; /* Agrega esta propiedad */
    }

    .nav-bar-location img {
        height: 2vh;
        margin-inline: 10px;
    }
    
    .nav-bar-location div {
        font-size: 6vw;
        height:  4vw;
        line-height: 4vw;
        text-shadow: 1px 3px 5px #292929;
    }

    .title {
        margin: 5vw;
        left: 0;
        right: 0; 
    }
    
    .title {
        margin-left: 3%;
        position: absolute;
        left: 0;
        opacity: 0; /* Make the element invisible by default */
        animation: slideFadeIn 1s forwards;
        top: 0%;
    }

    #SDC {
        text-align: left;


        margin-left: 2px;
        font-size: 16vw;
        height: 14vw;
        line-height: 14vw;

        margin-top: 20vh
        
    }

    #name1 {
        font-family: "New Amsterdam"; 
        font-weight: 500;

        text-align: left;

        font-size: 25vw;
        height: 18vw;
        line-height: 18vw;
        margin: 0;

    }

    #name2 {
        font-family: "New Amsterdam"; 
        font-weight: 500;

        text-align: right;

        font-size: 25vw;
        height: 18vw;
        line-height: 18vw;
        margin: 0;
        margin-bottom: 15px;
    }

    #bottom-logo {
        position: absolute;
    
        bottom: 4vw;
        left: 50%;
        transform: translate(-50%, -50%);
    
        width: 36vw;
    }


}


/* Animations */ 

/* Define the keyframes for the slide and fade animation */
@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateX(100%); /* Start from the right */
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* End at the original position */
    }
}

/* Estilos generales */
.mas-informacion {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Espacio entre secciones */
    margin: 5%;
}

.section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    margin-top: 7%;
    align-items: center;
}

.section h2 {
    margin-bottom: 7%;
}

.image, .text {
    box-sizing: border-box;
}

.image {
    width: 50%;
    height: auto;
    border-radius: 20px;
}

.text h2 {
    font-size: 3.5vw; /* Ajusta el tamaño del texto */
    line-height: 3vw;
    height: 3vw;
    color: rgb(0, 0, 0);
    font-weight: 400;
    font-family: "New Amsterdam", serif;
}
.text p {
    font-size: 1.3vw; /* Ajusta el tamaño del texto */
    font-weight: 500;
}

.text {
    max-width: 45%; /* Asegura que el texto no exceda el 45% del contenedor */
    margin: 0;
    padding: 10px;
    text-align: justify;
}

/* Media queries para pantallas pequeñas */
@media (max-width: 768px) {
    .section {
        flex-direction: column;
        align-items: center; /* Alinea los elementos en el centro */
    }

    .image {
        order: 1; /* La imagen se coloca primero */
        width: 100%; /* Ocupa el 100% del ancho en móviles */
    }

    .text {
        margin-top: 1vh;
        order: 2; /* El texto se coloca después de la imagen */
        max-width: 100%; /* Ocupa el 100% del ancho en móviles */
        text-align: justify; /* Centra el texto en pantallas pequeñas */
    }
    .text h2 {
        font-size: 8vw; /* Ajusta el tamaño del texto */
    }
    .text p {
        font-size: 4vw; /* Ajusta el tamaño del texto */
    }
}

/* GALERIA */

.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10vh;
    text-align: center;
    margin: 3px
}

.gallery h1 {
    color: #000;
    font-size: 7vw;
    font-weight: 300;
    text-shadow: none;
}

/* Grid layout para las imágenes */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas por fila en pantallas grandes */
    gap: 3px; /* Espacio entre imágenes */
    width: 100%;
}

/* Estilo para las imágenes */
.grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
}

/* Lightbox actualizado (ocupará toda la pantalla) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9); /* Fondo negro más oscuro */
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain; /* Mantener proporción de la imagen */
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* Prevención de scroll en body */
body.no-scroll {
    overflow: hidden;
}

/* Media Query para pantallas móviles */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(1, 1fr); /* 2 columnas por fila en pantallas pequeñas */
    }
}
