*{
    box-sizing: border-box;
}
body{
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}


h1{ font-size: 3em;}
h2{font-size: 2em;}
h3{ font-size: 1.5em;}
h4{ font-size: 1.5em;}
p{ font-size: 0.2em;}

html, body{
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
  
}
.container{
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 0;
    margin: 0 auto;
}

/*  header ---------------------------------------------------------------------------------------------  */ 

header{
    position: fixed;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 20vh;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

header .container{
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding: 20px;
}

header nav{
    display: flex;
    width: 100%;
    height: 10vh;
    background-color: rgba(234, 244, 250, 0.3);
    mix-blend-mode: overlay;
    align-items: center;
    font-size: 0.9rem;
    text-align: center;   
    position: absolute;
    z-index: 2;
               
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
}

.navbar a {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    box-shadow: 3px 3px 10px #fff;
    color: #333;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.4);
    
}

.navbar img{
    width: 1.5vw;
    box-shadow: #ebebeb;
    filter: invert(100%);    
}


header .logo{
    display: flex;
    flex-direction: column;
    height: 25vh;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 3;
    object-fit: cover;
}  

header .logo img:hover{
    filter: sepia(35%);
    transition: 0.4s;
}


header .homeIcon{
    align-items: center;
    text-decoration: none;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
    justify-items: center;
    padding: 3px;
}

header .homeIcon:hover{
    background-color: rgb(52, 231, 255);
    color: #12191b;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
    box-shadow: 2px 2px 20px rgb(52, 231, 255);
    padding-top: 5px;
    padding-bottom: 5px;
}

header .aboutIcon{
    align-items: center;
    text-decoration: none;
    justify-items: center;
    margin-right: 110px;
    padding: 3px
}

header .aboutIcon:hover{
    background-color: rgb(52, 231, 255);
    color: #12191b;
    box-shadow: 2px 2px 20px rgb(52, 231, 255);
    padding-top: 5px;
    padding-bottom: 5px;
}

header .galleryIcon{
    align-items: center;
    text-decoration: none;
    justify-items: center;
    padding: 3px;
    margin-left: 130px;
}

header .galleryIcon:hover{
    background-color: rgb(52, 231, 255);
    color: #12191b;
    box-shadow: 2px 2px 20px rgb(52, 231, 255);
    padding-top: 5px;
    padding-bottom: 5px;
}

header .contactIcon{
    align-items: center;
    text-decoration: none;
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
    justify-items: center;
    margin-right: 0px;
    padding: 3px;
}

header .contactIcon:hover{
    background-color: rgb(52, 231, 255);
    color: #12191b;
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 2px 2px 20px rgb(52, 231, 255);
    padding-top: 5px;
    padding-bottom: 5px;
}



.capa{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.3);
    mix-blend-mode: overlay;
    z-index: -2;
}

header a{
    text-decoration: none;
    font-size: 1.2em;
    color: #ffffff;
}

/* hero  -------------------------------------------------------------------------------------------------------------- */

#hero{
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    text-align: center;
    align-items: center;
}

#hero video{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -4;
}

#hero .welcome{
    display: flex;
    flex-direction: column;
    padding-top: 10vh;
    text-shadow: 1px 1px 5px rgba(24, 24, 24, 0.4);
    align-items: center;
    font-size: 4rem;
    color: #ebebeb;
    position: center;
    margin-top: 20px;
    
} 

#hero .where{
    font-size: 6vh;
    font-family: 'Great Vibes', cursive;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ebebeb;
    text-shadow: 0.8px 0.8px 2px rgba(83, 83, 83, 0.4);
    display: flex;
    justify-content: center;
    padding-bottom: 30px;
    padding-right: 20px;
    margin-top: 0;
}

#hero a{
    font-size: 2em;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 21px;
    border-radius: 30px;
    border: 2px solid #000;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    transition: 0.4s;
    outline-width: 10px;
}
#hero a:hover{
    background-color: rgb(52, 231, 255);
    color: #12191b;
    box-shadow: 2px 2px 40px rgb(52, 231, 255);
}

/* home ----------------------------------------------------------------------------------------------------  */ 

#home{
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    text-align: center;
    background-image: url("img/Bg_llelow_blue.png");
    width: 100%;
    height: 100vh;
    object-fit: cover;
    margin-top: 0;
    padding-top: 20vh;
    padding-bottom: 5vh;
}

#home .container{
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 80vh;
    position: relative;
   
}

#home .text-titleHome{
    padding-top: 5px;
    padding-bottom: 10rem;
    margin-bottom: 5rem;
    margin-top: 22vh;


}

#home .video-trigger{
    object-fit: cover;
    width: 30vw;
    
    
}


#home .containerhome{
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 0px;
    width: 70vw;
    height: 60vh;
    position: relative;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    border: 10px rgb(255, 255, 255) solid;
    border-radius: 10px;
    background-color: rgb(234, 226, 216)  
}

#home .homeP{
    text-align: justify;
    margin: 05px 10px;
    font-size: 1.05rem;
    color: #381e1e;
}
#home .homeT{
    margin: 5px;
    color: #381e1e;
}
#home .whereT{
    font-size: 4vh;
    font-family: 'Great Vibes', cursive;
    margin: 10px;
    text-shadow: 0.5px 0.5px 0 rgba(83, 83, 83, 0.4);
    color: #ffffff;
    padding: 0.5px;
}
#home .container{
    display: flex;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;

}    
video{
    height: 100%;
    width: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
}  

#home .containerGalleryHome{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    border-radius: 12px;
    display: inline-block;
    width: 100%;
    height: auto;
    overflow: hidden;
    object-fit: cover;
    
}

#home .containerGalleryHome video{
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: inline-block;
    border-radius: 10px;
}

/*  about----------------------------------------------------------------------------------------------------------------- */

#about{
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    text-align: center;
    background-image: url("img/Bg_llelow_blue.png");
    width: 100%;
    height: 100vh;
    object-fit: cover;
    margin-top: 0;
    padding-top: 20vh;
    padding-bottom: 5vh;
}

#about .container{
    display: flex;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
   
}

#about .containerAbout{
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 0px;
    width: 70vw;
    height: 60vh;
    position: relative;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    border: 10px rgb(255, 255, 255) solid;
    border-radius: 10px;
    background-color: rgb(234, 226, 216)     
}

#about .aboutP{
    text-align: justify;
    margin: 05px 10px;
    font-size: 1.05rem;
    color: #381e1e;
}
#about .aboutT{
    margin: 5px;
    color: #381e1e;
}
#about .whereT{
    font-size: 4vh;
    font-family: 'Great Vibes', cursive;
    margin: 10px;
    text-shadow: 0.5px 0.5px 0 rgba(83, 83, 83, 0.4);
    color: #ffffff;
    padding: 0.5px;
}
#about .container{
    display: flex;
    width: 100%;
    height: auto;
    margin: 0;
} 

#about .text-titleAbout{
    padding-top: 5px;
    padding-bottom: 10rem;
    margin-bottom: 5rem;
    margin-top: 22vh;


}

#about .video-trigger{
    object-fit: cover;
    width: 30vw;
    
    
}

video{
    height: 100%;
    width: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
}  

#about .containerGalleryAbout{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    border-radius: 12px;
    display: inline-block;
    width: 100%;
    height: auto;
    overflow: hidden;
    object-fit: cover;
}

#about .containerGalleryAbout video{
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: inline-block;
    border-radius: 10px;
}

/* gallery ----------------------------------------------------------------------------------------------------------  */

#gallery{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    text-align: center;
    background-image: url("img/Bg_llelow_blue.png");
    width: 100%;
    height: 100vh;
    object-fit: cover;
    margin-top: 0;
    padding-top: 18vh;
}

#gallery .whereT{
    font-size: 5vh;
    font-family: 'Great Vibes', cursive;
    color: #fff;
    margin-bottom: 10px;

}

#gallery .galleryT{
    color: #381e1e;
    padding-bottom: 0;
    text-align: center;
    font-size: 1.5rem;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 5px;
}

#gallery .slide-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    max-width: 1500px;
    width: 75%;
    height: 67vh;
    margin: 0 auto; /* <-- centrado horizontal */
    background-color: rgb(234, 226, 216);
    padding: 0px 3vw;
    border-radius: 10px;
    border: 10px solid #ffffff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.slide-content{
    overflow: hidden;
    border-radius: 10px;
    height: 72vh;
    margin: 0;

}

#gallery .card-wrapper{
    display: flex;
    width: 80%;
    height: 50vh;
}

#gallery .card{
    width: 50%;
    height: 50%;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.video-thumbnail .card-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 12px 16px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* para que el clic pase a la imagen/enlace */
}

.video-thumbnail:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/*  card -----------------------------------------------------------------------------------------------------------  */

.card-content{
    display: flex;
    height: 15vh;
    border: 5px solid #ffffff;
    background-color: #5ff1d9;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 2rem 1rem;
}


.card-image{
    position: relative;
    height: 40vh;
    border-radius: 10px;
    background: #fff;
    padding: 0px;
}

.card-image .card-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 4px solid #ffffff;
}

/* Imagen normal y responsive */
.card-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}


.name{
    font-size: 1.2rem;
    color: #532d2d;
    margin: 0;
    padding: 6px;
    width: 40vw;
}

.description{
    font-size: 16px;
    color: #246b77;
    padding: 0;
    margin: 0;
}


.swiper-navBtn:hover{
    color: #7bc7d4;
}

/* boton de play */

.more{
    border: none;
    font-size: 1rem;
    color: #fff;
    padding: 8px 16px;
    background-color: #246b77;
    border-radius: 6px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.more:hover{
    background:rgb(52, 188, 212);
    color: #000;
}

/* contactos------------------------------------------------------------------------------------------------------------------- */
#contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    scroll-snap-align: start;
    background-image: url("img/Bg_pink_blue.png");
    width: 100%;
    height: 100vh;
    margin-top: 0;
    padding: 0;
}


#contact .container-form{
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); 
    padding: 5px 10px 5px 10px;
    box-sizing: border-box;
    margin-bottom: 3rem;
    margin-top: 25vh;
    width: 75vw;
    max-width: 900px; /* ancho máximo en desktop */
    height: 70vh;
    position: relative;
    border: 10px rgb(255, 255, 255) solid;
    border-radius: 10px;
    background-color: rgb(234, 226, 216)  
}

#contact .text-contact{
    display: flex;
    flex-direction: column;
    width: 40vw;
    height: 15vh;
}

#contact h3{
    margin: 2px;
}

#contact p{
    margin: 5px;
}

#contact .llenar-formulario{
    width: 70%;
    padding: 10px;
    height: 40vh;
    margin: 2rem;
    background-color: rgba(150, 180, 182, 0.2);
    border-radius: 10px;
}


#contact .container h3,
#contact .container p{
    text-align: center;
    margin-bottom: 15px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 5px; /* separación entre campos */
}

label {
    font-weight: bold;
}

input[type="text"],


textarea{
    width: 100%;           /* Ocupa todo el ancho disponible */
    max-width: 60vw;      /* Límite máximo para pantallas grandes */
    min-width: 20vh;      /* Límite mínimo para pantallas pequeñas */
    
    min-height: 2vh;      /* Altura mínima */
    padding: 0.5rem;         /* Espaciado interno */
    
    box-sizing: border-box;/* Incluye padding y borde en el cálculo del ancho */
    resize: vertical;      /* Solo permitir redimensionar verticalmente */
    font-size: 1rem;       /* Tamaño de texto adaptado */
    
    border: 1px solid #ccc;
    border-radius: 5px;
}


input[type="submit"] {
    background-color: #ff69b4;
    color: white;
    border: none;
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #ff4c91;
}

/* Responsivo en pantallas pequeñas */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    input[type="text"],
    textarea {
        font-size: 0.9rem;
    }
}

/*  footer------------------------------------------------------------------------------------------------   */

footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 12vh;
    margin: 0%;
    background-color: rgba(255, 255, 255, 0.4);
}

/* Bloquea el fondo */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

/* Modal contenedor general---------------------------------------------------------------------------------------------------- */
#videoModal.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

body.modal-open {
    padding-right: 15px; /* ajusta según el scroll del navegador */
}

/* Contenedor interior del modal */
.modal-content {
    position: relative;
    width: 90%;
    min-width: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
}

/* Animación de zoom */
@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* Estilo general para el video */
#videoPlayer {
    width: 100%;
    height: auto;
    max-height: 80vh; /* que no se salga de la pantalla */
    object-fit: contain; /* mantiene proporción sin recortes */
    display: block;
    margin: 0 auto;
}

/* Botón de cerrar */
.close-btn {
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

/* Asegúrate de que el contenedor de imagen sea relativo */
.video-thumb {
    position: relative;
    display: inline-block;
    width: 100%;
}


/* Botón de play encima de la imagen */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Ajusta SVG para que sea completamente responsive */
.play-button svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* nuevo agregado para los botones de avanzar  */

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background-color: rgba(0,0,0,0.4);
    border: none;
    cursor: pointer;
    z-index: 10000;
    padding: 10px;
    border-radius: 50%;
}

.modal-arrow.left {
    left: 10px;
}

.modal-arrow.right {
    right: 10px;
}

#replayButton {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 1rem;
    z-index: 10;
    position: relative;
    transition: background-color 0.3s;
}

#replayButton:hover {
    background-color: rgba(255, 255, 255, 1);
}


/* Responsive Video Modal */

/* Estilos básicos para modal */



.close {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.modal-content video {
    max-width: 100%;
    max-height: 100%;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: white;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.modal-arrow.left {
    left: -50px;
}

.modal-arrow.right {
    right: -50px;
}

#replayButton {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


#modalVideo {
    width: 100%;
    height: auto;
}

#videoModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#videoModal .modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.1)
       
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.4);
    display: block;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 2rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: rgba(97, 97, 97, 0.8);
  
}

.close-text {
    font-size: 1rem;
    color: white;
}
/*  a lo ancho no permite que el texto se salga */
@media (min-width: 768px) {
    #home .text-titleHome{
        padding-bottom: 15vh;
        width: 50vw;
        padding-top: 5px;
    }
    #home .containerhome{
        display: flex;
        align-items: center;
        overflow: hidden;
        flex-direction: row;
        padding: 0px;
        width: 55vw;
        height: 60vh;
        position: relative;  
    }

    #home .whereT{
        font-size: 2.3rem;
    }


    #home .container{
        overflow: hidden;
    }


    #about .containerAbout{
        display: flex;
        align-items: center;
        overflow: hidden;
        flex-direction: row;
        padding: 0px;
        width: 55vw;
        height: 60vh;
        position: relative; 
    }

    #about .text-titleAbout{
        padding-bottom: 15vh;
        width: 50vw;
        padding-top: 5px;
    }

    #about .whereT{
        font-size: 2.3rem;
    }
} 

/* media queries para moviles----------------------------------------------------------------------------------------------- */

@media (max-width: 600px) {
    #replayButton {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .navbar {         
        align-items: center;
        gap: 10px;
        padding: 10 10px;
        color: #7bc7d4;
    }

    .navbar a {
        font-size: 0.8rem;
    }

    .navbar img {
        width: 20px;
        height: 15px;
    }
}

@media (max-width: 600px) {
    .close-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}



/* Responsive controls */
@media screen and (max-width: 768px) {
    .modal-arrow {
        font-size: 2rem;
        padding: 8px;
    }

    #replayButton {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .close-btn {
        font-size: 2rem;
    }
}



@media (max-width: 768px) {
    header nav{
        margin-top: 30vh;
        min-width: 500px;
        height: 40px;
        display: flex;
        flex-direction: row;

    }
    header .aboutIcon{
        margin-right: 1px;

    }
    header .galleryIcon{
        margin-left: 0px;
        margin-right: 0px;
    }

    header .homeIcon{
        margin-right: 0;
    }
    header .contactIcon{
        margin-left: 0;
        
    }
}    



@media (max-width: 768px){
    #home{
        padding-top: 30vh;
    }

    #home .container{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 15vh;
    }

    #home .containerhome{
        width: 90%;
        padding-bottom: 20vh;
        height: 50vh;
        margin-right: 1px;
        margin-left: 1px;
        padding-top: 2px;
        margin-top: 0%;
        margin-bottom: 30vh;
        overflow: hidden;
    }

    #home .text-titleHome{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 0;
        margin-top: 0;
        padding-bottom: 1%;
        margin-bottom: 0;
        padding-top: 2px;
        margin-top: 0%;
    }

    #home .video-trigger{
        object-fit: cover;
        width: 70vw;
        margin-bottom: 20vh;

    }


    #home .whereT{
        margin-bottom: 0;
        margin-top: 8vh;
        padding-right: 2rem;
        font-size: 1.7rem;
    }

    #about{
        padding-top: 30vh;
    }

    #about .container{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 15vh;
        
    } 
    


    #about .text-titleAbout{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 0;
        margin-top: 0;
        padding-bottom: 1%;
        margin-bottom: 0;
        padding-top: 2px;
        margin-top: 0%;
    }

    #about .video-trigger{
        object-fit: cover;
        width: 65vw;
        margin-bottom: 20vh;

    }

    #about .containerAbout{
        width: 90%;
        padding-bottom: 20vh;
        height: 50vh;
        margin-right: 1px;
        margin-left: 1px;
        padding-top: 2px;
        margin-top: 0%;
        margin-bottom: 30vh;
        overflow: hidden;
    }

    #about .whereT{
        margin-bottom: 0;
        margin-top: 8vh;
        padding-right: 2rem;
        font-size: 1.7rem;
    }
    #contact .container-form{
        display: flex;
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: max(250px, 20vh)
    }
    #contact .llenar-formulario{
        width: 90%;
    }
}




/* Para pantallas pequeñas, aprovecha altura */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }

    #videoPlayer {
        width: 100%;
        height: auto;
        max-height: 80vh;
    }
}

/* media queries para moviles */
/*  a lo ancho no permite que el texto se salga */
@media (max-width: 1000px){
    #about .text-titleAbout{
        display: flex;
        flex-direction: column;
        align-items: center;
    
    }
}




@media (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.5em; }

    #hero .welcome {
        font-size: 2rem;
    }

    .card-content {
        height: auto;
        padding: 0;
        font-size: 0.5em;
    }


    .slide-content {
        height: auto;
    }

    .containerhome, .containerAbout {
        width: 95%;
        height: auto;
    }

    #gallery{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 28vh;
        padding-top: 28vh;
        padding-left: 0px;
    }

    #gallery .slide-content{
        margin-top: 0px;
        padding-top: 0;
    }

    #gallery h2{
        font-size: 1rem;
    }

    #gallery p{
        font-size: 0.9rem;
    }

    #gallery .galleryT{
        margin-top: 0;
        padding-top: 0px;
    }

    #gallery .whereT{
        font-size: 2.3rem;
        margin-right: 6vw;
    }

    #gallery .slide-container{
        padding-bottom: 5vh;
        height: 60vh;
        width: 90%;
        margin: 0 auto; /* <-- centrado horizontal */
    }

    .card-image{
        position: relative;
        height: 35vh;
        border-radius: 8px;
        background: #fff;
        padding: 0px;
    }

    .card-content{
        display: flex;
        height: 15vh;
        font: 0.5rem;
        border: 5px solid #ffffff;
        background-color: #5ff1d9;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem 1rem 2rem 1rem;
    }

    #contact .container-form{
        display: flex;
        margin-top: 32vh;
        margin-bottom: 3%;
        padding: 5px;
        padding-top: 2rem;

    }

    #contact .llenar-formulario{
        width: 90%;
    }

    #contact .text-contact{
        font-size: 0.8rem;
    }
} 



