/*Carrucel*/

.slider {
    position: relative;
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.slide {
    text-align: center;
    height: 100%;
    width: 100%;   
}

.slide-bg {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    height: fit-content;
    height: 100%;
    width: 100%;
    position: relative;
}
.slide-bg img {
    flex-shrink: 0;
    max-width: 100%;
    max-height: 100%;
}

.slide-info {
    position: absolute;
    bottom: 40px;
    left: 50px;
    background-color: rgba(10, 10, 10, 0.5);
    padding: 10px;
    border-radius: 5px;
    color: white;
    z-index: 0; /* Asegura que "info" esté sobre la imagen */
    max-width: 30%;
}

.slide-info h2 {
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: white;
}

.slide-info p {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: white;
}

/* Estilo botón en las imágenes */
.slider .boton {
    font-size: 16px;
	text-align: center;
	align-items: center;
	display: inline-block;
    padding: 5px 23px 5px 23px;
    border-radius: 6px;
	background-color: white;
	color: #333;
    font-weight: bold;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s, transform 0.3s, padding 0.3s;
	box-sizing: border-box;
}

.slider .boton:hover {
    background-color: #ff6600;
	color: white;
    font-weight: bold;
	transform: scale(1.1);
}

.slider .border {
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    width: 95%;
    height: 4px;
    background: white;
}

/* Tamaño de imagenes y cuadro de info a partir de 1000px dispositivos moviles */
@media screen and (max-width: 1000px) {

    .slide-info {
        /*text-align: center;*/
        /*margin-left: auto;*/
        /*margin-right: auto;*/
        bottom: 20px;
        /*left: auto; /* Ajusta la distancia desde el borde izquierdo del contenedor */
        max-width: 30%;
    }
        
    .slide-info h2 {
        font-size: 16px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .slide-info p {
        font-size: 14px;
        margin-top: 10px;
        margin-bottom: 10px;
        color: white;
    }

    /* Estilo botón en las imágenes */
    .slider .boton {
        font-size: 14px;
    }

    .slider .boton:hover {
        transform: scale(1.05);
    }
}

@media screen and (max-width: 800px) {
    .slide {
        margin-top: 110px;
    }
}

@media screen and (max-width: 700px) {
    .slide {
        margin-top: 90px;
    }
}

@media screen and (max-width: 520px) {
    .slide {
        margin-top: 70px;
    }
}

/* Tamaño de cuadro de texto y se quito texto en cuadro de info */
@media screen and (max-width: 701px) {
    .slide-info {
        left: 20px;
        bottom: 5px;
        max-width: 80%;
    }

    .slide-info h2 {
        font-size: 12px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .slide-info p {
        display: none;
    }
    
    .slider .border {
        height: 2px;
    }
    
    .slider .boton {
        font-size: 12px;
    }
}

@media screen and (max-width: 450px) {
    .slide-info {
        align-items: center;
        left: auto;
        right: auto;
    }    
}

@media screen and (max-width: 330px) {
    .slide-info {
        bottom: 5px;
        max-width: 90%;
    }

    .slide-info h2 {
        font-size: 10px;
        margin-top: 2px;
        margin-bottom: 4px;
    }
    
    .slider .boton {
        font-size: 10px;
    }
}

/* Paginavción y botones de anterior-siguiente*/

.pagination {
    position: absolute;
    bottom: 5%;
    width: 100%;
    display: flex;
    justify-content: center;
}

.pagination li {
    font-size: 15px;
    color: white;
    cursor: pointer;
    list-style: none;
    margin: 0 5px;
}

.left,
.right {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 0;
}

.left {
    left: 20px;
}

.right {
    right: 20px;
}

@media screen and (max-width: 701px) {
    .pagination {
        display: none;
    }

    .left,
    .right {
        font-size: 20px;
    }
}

/* Titulo h1 */ 

.seccion.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
}

.intro-h1 {
    padding: 0px 2.5%;
}

.seccion.intro h1 {
    width: 100%;
    font-size: 36px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.seccion.intro .border {
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    width: 95%;
    height: 4px;
    background: #ff6600;
    line-height: 1em;
}

/* Estilo para el contenedor de videos */
.contenedor {
    display: flex;
    flex-wrap: wrap;
}

.subtitulo {
    width: 100%;
    font-size: 24px;
    text-align: center;
}

.contenedor .border {
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    width: 95%;
    height: 4px;
    background: #ff6600;
    line-height: 1em;
}

/* Estilo de las columnas de 50% de ancho */
.columna {
    width: 50%;
    box-sizing: border-box;
    padding: 70px;
}

/* Estilo de las filas de videos en ancho completo */
.fila {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

/* Estilo de los videos en ancho completo */
.video {
    width: 100%;
    padding: 10px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

@media screen and (max-width: 800px) {
    /* Cambia a una sola columna cuando la pantalla sea más estrecha que 800px */
    .columna {
        width: 100%;
        padding: 10px;
    }
}

/* Asociados */
.gallery {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 30px;
}

.image {
    text-align: center;
}

/* Ajustar el número de columnas y tamaño de las imágenes cuando el ancho sea menor o igual a 1200px */
@media (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr); /* Cambiar a 4 columnas */
    }
    .image img {
        max-width: 60%;
        height: auto;
    }
}

/* Ajustar el número de columnas y tamaño de las imágenes cuando el ancho sea menor o igual a 800px */
@media (max-width: 800px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* Cambiar a 2 columnas */
    }
    .image img {
        max-width: 60%;
        height: auto;
    }
}

.asociados {
    font-size: 24px;
    text-align: center;
    margin-bottom: 50px;
}

/* h1, h2. h3, p en 800px */
@media screen and (max-width: 800px) {
    .seccion.intro h1 {
        font-size: 26px;
    }

    .subtitulo {
        width: 100%;
        font-size: 22px;
        text-align: center;
    }

    .asociados {
        font-size: 22px;
    }
}

/* Establece el estilo del modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 150px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 30px;
  max-width: 60%;
  text-align: center;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px #000;
    cursor: pointer;
}

video:hover {
    transform: scale(1.02);
}

.close {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: red;
}


/* Tamaño de ventana videos para dispositivos moviles 1000px */
@media screen and (max-width: 1000px) {
    .modal-content {
        padding: 20px;
        max-width: 90%;
    }

    .close {
        top: 2px;
        right: 10px;
        font-size: 20px;
    }
}