* {
    box-sizing: border-box;
}

body, html {
  overflow-x: hidden;
}

body.menu-abierto {
  overflow: hidden;
  height: 100vh;
}


body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    line-height: 1.6;
    font-family: "Montserrat", sans-serif;
}

header {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-image: url('assets/images/fondo.jpg');
    background-size: cover;       /* que cubra todo el header */
    background-position: center;  /* centrado */
    background-repeat: no-repeat; /* sin repetir */
}



.contenedor_logo {
    display: flex;
    gap: 1rem;
    background-color: transparent;
    position: relative; 
    z-index: 1; 
}


@keyframes flotar {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.logo {
    width: 200px;
    height: auto;
    background-color: transparent;
    margin-bottom: 1rem;
    animation: flotar 3s ease-in-out infinite;
}

@media(min-width: 600px){
    .logo {
        width: 300px;
    }
}

@media(min-width: 1300px){
    .logo {
        width: 400px;
    }
}

.barra_navegacion {
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    width: 100%;

}

/* Paso 1: el <ul> se organiza en columna por defecto en móviles */
nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Paso 2: el <li> ocupa todo el ancho y centra su contenido */
nav li {
    width: 100%;
    height: 100%;
    text-align: center;
}

/* Paso 3: el <a> ocupa todo el espacio y centra el texto */
nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0rem;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    text-transform: capitalize;
    transition: all 0.3s ease;
    color: #333;
}

a:hover {
    color: #3498db;
}

a:active {
    color: #e74c3c;
}


/*BOTON NAVEGACION DISPOSITIVOS MOVILES
/* Estilos base para el botón de hamburguesa */
.menu-toggle {
    display: flex; /* Por defecto está oculto (solo aparece en móviles) */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

/* Cada línea del icono hamburguesa */
.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: black;
    display: block;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center; 
}

.menu-toggle.active span {
    background-color: #e74c3c; /* cambia el color */
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 4px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -4px);
}


.barra_navegacion {
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
        flex-direction: column;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.9);
        position: absolute;
        top: 0px;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        z-index: 999;
        backdrop-filter: none; /* sin difuminado */
    }

.barra_navegacion.active{
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        display: flex;
        z-index: 999;/*agruegue este tambien pensando que tal vez se quitaba pero no funciona*/
    }

.contenedor_logo.active{
    z-index: 1001;/* agregue esto para mandar el contenedor logo arriba de la barra de navegacion*/
}




@media(min-width: 600px){
    nav ul {
        flex-direction: row;
    }

    nav li {
        width: auto;           /* Ya no necesitamos 100% en horizontal */
        text-align: center;
    }

    nav a {
        width: auto;
        padding: 1.5rem;
        font-size: 1rem;
    }

    .menu-toggle{
        display: none;
    }

    .barra_navegacion {
        opacity: 1;                  
        transform: translateY(0);    
        pointer-events: auto;       
        position: static;           
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .barra_navegacion ul li a{
        font-size: 2rem;
        text-transform:uppercase;
    }
}


@media(min-width: 1300px){

    .barra_navegacion ul li a{
        font-size: 2.5rem;
        text-transform:uppercase;
    }
}

@keyframes pulse {
  0% { background-color: #6a00ff; }
  50% { background-color: #9c27b0; }
  100% { background-color: #6a00ff; }
}

.marquesina {
    animation: pulse 6s infinite;
    color: white;
    padding: 0rem;
    white-space: nowrap;
    
}


.texto {
  display: inline-block;
  padding-left: 100%; 
  animation: mover 10s linear infinite;
  font-size: 1.2rem;
}

@keyframes mover {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}





/*INICIO.html********************************************************************************************************************************/
.video_index {
  width: 100%;
  height: 150px;        /* altura deseada para que quede más rectangular */
  overflow: hidden;     /* corta cualquier parte del video que sobresalga */
  position: relative;
}

.video_index video {
  width: 120%;          /* un poco más ancho para poder moverlo */
  height: auto;
  object-fit: cover;    /* asegura que el video llene el contenedor sin deformarse */
  position: absolute;   /* para mover libremente sin afectar otros elementos */
  top: -50px;           /* mueve el video hacia arriba */
  left: -30px;          /* mueve el video hacia la izquierda */
  filter: brightness(60%);
}

@media(min-width: 600px){
    .video_index {
        width: 100%;
        height: 300px;        
        overflow: hidden;     
        position: relative;
    }

    .video_index video {
        width: 120%;          
        height: auto;
        object-fit: cover;    
        position: absolute;   
        top: -50px;           
        left: -60px;          
        filter: brightness(60%);
    }
}

@media(min-width: 1300px){
    .video_index {
        width: 100%;
        height: 600px;        
        overflow: hidden;     
        position: relative;
    }

    .video_index video {
        width: 120%;          
        height: auto;
        object-fit: cover;    
        position: absolute;   
        top: -50px;           
        left: -90px;          
        filter: brightness(60%);
    }
}

.gif-talleresMensuales{
    width: 100%;
    overflow: hidden;     /* corta cualquier parte del video que sobresalga */
    position: relative;
    padding: 0 25% 0 25%;
    
}

.gif-talleresMensuales img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;

}



.talleres-container{
    text-transform: uppercase;
    display: flex;
    flex-direction: column;

}

.section-talleres-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    padding: 1rem 1rem 6rem 1rem;
    text-align: center;
}

.section-talleres-container a{
    text-decoration: none;
    border-radius: 5rem;
    background-color: white;
    padding: 0.2rem;
    color: black;
    

}

.section-talleres-container h2{
    font-size: 2rem;
    width: 100%;
}
.section-talleres-container h3{
    font-size: 1.5rem;
    width: 100%;
}

.section-talleres-container img{
    max-width: 100%;
    border-radius: 20px;
    
}


@keyframes pastel-glow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.borde-animado {
    padding: 10px;
    border-radius: 20px;
    background: linear-gradient(270deg, #c19bff, #f9a8d4, #a5b4fc, #d8b4fe);
    background-size: 800% 800%; /* Muy importante para que se note el movimiento */
    animation: pastel-glow 10s ease-in-out infinite;
    display: inline-block;
    overflow: hidden;
}

.img-ajustada {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px; /* Ligeramente menor para que encaje en el borde */
}

.borde-boton{
   background-color: #c19bff;
   border-radius: 15px;
   padding: 0.1rem;
   

}
.borde-boton a{
   
   font-size: 1.5rem;

}

@media(min-width: 1300px){
    .borde-boton a{
        font-size: 3rem;
    }
}





/******TALLERES******************************************************************************************************************/

.contenedor_carrusel div a img{
    border-radius: 20px;
    display: block;
    width: 100%;
    height: auto;
}
.contenedor_carrusel div a{
    
    border: 2px solid #000;
    border-radius: 20px;
    
}

.contenedor_carrusel{
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 5rem;
}

.carrusel {
  display: flex;               
  overflow-x: auto;            
  scroll-snap-type: x mandatory; 
  gap: 2rem;                   
  
}

.carrusel a {
  flex: 0 0 auto;              /* No se encoge ni se estira */
  scroll-snap-align: start;   /* Se alinea al inicio cuando haces scroll */
  text-decoration: none;      /* Quita el subrayado del enlace */
  width: 80vw;
  
}

.carrusel img {
  width: 300px;
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.carrusel img:hover {
  transform: scale(1.05);     /* Pequeño efecto al pasar el mouse */
}


@media(min-width: 600px){

    .carrusel a {
        flex: 0 0 auto;              /* No se encoge ni se estira */
        scroll-snap-align: start;   /* Se alinea al inicio cuando haces scroll */
        text-decoration: none;      /* Quita el subrayado del enlace */
        width: 25vw;
  
    }


}


/**********NOSOTROS*****************************************************/

.nosotros{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;

}

.contenido_nosotros{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    
    
}

.imagen_nosotros img{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}



.nosotros h2{
    text-transform: uppercase;
}

.texto_nosotros{
    text-align: justify;
}

.nosotros_imagenTexto{
    margin-bottom: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}


@media(min-width: 600px){


}


/*******************CUMPLEAÑOS************************************/
/*Se utiliza carrusel de la seccion de talleres*/
.contenedor_cumple{
    display: block;
    align-items: center;
    text-align: center;
    text-transform:uppercase;
    

    
}

.contenedor_cumple > *{
    padding-bottom: 2rem;
}

.contenedor_cumple video{
    background: transparent;
}


.galeria video{
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.marco_sencillo{
    flex: 0 0 auto;      
    border: 2px solid #000;
    border-radius: 1rem;
    background-color: pink;
    width: 250px;     
}

.marco_sencillo img{
    display: block;
    width: 100%;         
    height: auto;        
    border-radius: 1rem; 
}

.talleres_disponibles{
    display: flex;
    flex-direction: column;
    width: 100%;

}


.lista_talleres{
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
}

.lista_talleres a{
    text-decoration: none;
    text-transform: capitalize;
    
}

.gift-cumple{
    display: block;
    width: 100%;
    padding-left: 5rem;
    padding-right: 5rem;
    
}

.gift-cumple img{
    display: block;
    width: 100%;
    background-color: red;
}