h2,h3,h4,h5,p{
  cursor: default;
}

h4{
    font-weight: bold;
}

.informacion_portada {
  width: 100%;
  height: 550px;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.informacion_portada img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  filter: brightness(40%);
  position: absolute;
}

.informacion_portada .texto_portada {
  z-index: 100;
  position: absolute;
}

/* Estilos iniciales para el div */
.animated-div {
  width: 100%;
  height: auto;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  opacity: 0; /* Al principio está oculto */
  transform: translateY(50px); /* Comienza desplazado hacia abajo */
  transition: opacity 0.5s, transform 0.5s; /* Para la animación */
}

/* La clase que activará la animación cuando el div sea visible */
.visible {
  opacity: 1;
  transform: translateY(0); /* Se mueve hacia su posición final */
}

.leyes_taekwondo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid grey;
  width: 250px;
  height: 280px;
  text-align: center;
  margin: 20px;
  padding: 20px;
  border-radius: 6px;
  transition: 0.5s ease-in;
}

.leyes_taekwondo:hover{
  box-shadow: 15px 15px 12px rgba(0, 0, 0, 0.1);
}

.leyes_taekwondo .titulo_leyes,
.texto_leyes {
  color: black;
  text-align: center;
}

.leyes_taekwondo img {
  width: 90px;
}

  .eventos {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centrar horizontalmente */
        width: 100%;
        padding: 0 15px; /* Pequeño padding a los lados */
        margin-top:20px;
    }

    .card_eventos {
        margin: 40px 0; /* Cambiado auto por 0 para mantener espacio vertical */
        width: 100%;
        max-width: 1200px; /* Un máximo más grande para pantallas grandes */

    }


        .eventos .card_evento_cuerpo {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            justify-content: space-between;
            text-align: justify;
            height: 549px;
        }

        .eventos .card_evento_cuerpo .texto_descripcion {
            margin-top: auto;
        }

        .eventos .card_evento_cuerpo .texto_publicacion {
            margin-top: auto;
        }

        @media (max-width: 400px) {
            .card_eventos img {
                object-fit: contain !important;
                margin-top: -50px;
            }
        }
        
.NuestroEquipo {
  background-color: #075f98;
  height: auto;
  padding: 20px;
  margin-top:20px;
}

.NuestroEquipo{
  text-align: center;
  justify-content: center;
  color: white;
}

.NuestroEquipo .textoNuestroEquipo{
  color: white;
}

.sumateEquipo {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.sumateEquipo .equipoItem {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  width: 280px;
  height: 200px;
  text-align: center;
  transition: 0.3s;
  margin-top: 10px;
}

.sumateEquipo .equipoItem:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.button-equipo {
  transition: 0.5s ease;
}

.button-equipo:hover {
  background-color: rgba(250, 154, 29, 1);
  color: white;
  border: 1px solid #075f98;
}


.noticias{
  margin: 30px auto;
  height: auto;
  width: 99%;
}

.noticias .content_noticias{
  display:flex; 
  flex-wrap: wrap; 
  justify-content: space-around; 
  margin-top: 20px;
  margin-bottom: 60px;
}

.noticias .content_noticias .item_noticia{
  text-decoration: none;
}

.noticias .content_noticias .item_noticia .card_noticia{
  max-width: 400px; 
  height: 350px; 
  display: flex; 
  flex-direction: column;
  transition: 0.5s ease;
  margin-top: 8px;
}

.noticias .content_noticias .item_noticia .card_noticia:hover{
  transform: scale(1.1);
}

.noticias .content_noticias .item_noticia .card_noticia img{
  height: 200px; 
  object-fit: cover; 
}

.noticias .content_noticias .item_noticia .card_noticia .card_noticia_cuerpo{
  display: flex; 
  flex-direction: column;  
  flex-grow: 1; 
  justify-content: space-between;
}

.noticias .content_noticias .item_noticia .card_noticia .card_noticia_cuerpo h5{
  color:black; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  display: -webkit-box; 
  line-clamp: 1;
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical;
}

.noticias .content_noticias .item_noticia .card_noticia .card_noticia_cuerpo p{
  margin-top: auto;
}


 /* Estilos para la sección Taekwondo Sin Fronteras */
    .taekwondo-sin-fronteras {
        padding: 40px 20px;
        background-color: #fff;
        margin-top: -20px;
        margin-bottom: 30px;
    }
    
    .taekwondo-sin-fronteras .titulo_sin_fronteras {
        text-align: left;
        margin-left: 12px;
        margin-bottom: 20px;
        font-weight: bold;
        color: #333;
    }
    
    .tsf-container {
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 30px;
        max-width: 98%;
        margin: 0 auto;
             border: 1px solid rgba(168, 168, 168, 0.7);
    }
    
    .tsf-header {
        text-align: center;
        margin-bottom: 25px;
    }
    
    .tsf-title {
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .tsf-description {
        font-size: 1rem;
        color: #4b5563;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    /* Estilos para el contenedor de imágenes expansibles */
    .tsf-images-container {
        display: flex;
        width: 100%;
        height: 300px;
        margin: 30px 0;
    }
    
    .tsf-image-panel {
        position: relative;
        flex: 1;
        overflow: hidden;
        transition: flex 0.6s ease;
        margin: 0 2px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    
    .tsf-image-panel:first-child {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }
    
    .tsf-image-panel:last-child {
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }
    
    .tsf-image-panel:hover {
        flex: 2;
    }
    
    .tsf-image-panel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }
    
    .tsf-image-panel:hover img {
        transform: scale(1.05);
    }
    
    .tsf-image-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(30, 58, 138, 0.7);
        color: white;
        padding: 10px;
        opacity: 0;
        transition: opacity 0.3s ease;
        text-align: center;
        font-weight: bold;
    }
    
    .tsf-image-panel:hover .tsf-image-caption {
        opacity: 1;
    }
    
    .tsf-btn-container {
        text-align: center;
        margin-top: 30px;
    }
    
    .tsf-btn {
        display: inline-block;
        background-color: #1e3a8a;
        color: white;
        padding: 10px 25px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: bold;
        font-size: 1rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    }
    
    .tsf-btn:hover {
        background-color:rgba(250, 154, 29, 1);
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(30, 58, 138, 0.4);
        color: white;
    }


.galeria_fotos{
    width: 97%;
    margin: 30px auto;
    margin-top: 18px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: 96%; 
    margin: auto;
}

.gallery .photo {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.gallery img:hover {
    transform: scale(1.05);
}

.photo::before {
    content: "Imagen no disponible";
    position: absolute;
    color: white;
    font-size: 16px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 4px;
    display: none;
}

.photo img[src=""] {
    display: none;
}

.photo img[src=""] + ::before {
    display: block;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}
.lightbox:target {
    display: flex;
}
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Animación cuando se encuentra visible en la pantalla */
@keyframes slide-up {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 766px) {
  
  .card_eventos{
    max-width: 550px;
    margin: auto!important;
  }
  
    
  .galeria_fotos h4{
      margin-left: 6px!important ;
  }
  
      .tsf-title {
            font-size: 1.8rem;
        }
        
        .tsf-images-container {
            height: 250px;
        }

}

@media (max-width:556px) {
  
  .card_eventos{
    max-width: 400px;
    margin: auto!important;
  }
  
    .noticias .content_noticias .item_noticia .card_noticia:hover{
  transform: scale(1);
}

  h4{
    text-align: center;
    justify-content: center;
    margin: auto;
  }

.titulo_sin_fronteras {
    /* Se mantiene igual que antes */
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
        margin-top: -30px!important;
    padding: 10px 0 !important;
  }
  
  /* Solo para pantallas pequeñas: oculta el texto original */
  .titulo_sin_fronteras span,
  .titulo_sin_fronteras > * {
    display: none !important;
  }
  
  /* Solo para pantallas pequeñas: genera el contenido con salto de línea */
  .titulo_sin_fronteras::before {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  .titulo_sin_fronteras::after {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }


}




@media (max-width: 400px) {

   .tsf-container {
            padding: 20px 15px;
        }
        
        .tsf-title {
            font-size: 1.6rem;
        }
        
        .tsf-images-container {
            flex-direction: column;
            height: auto;
        }
        
        .tsf-image-panel {
            height: 200px;
            margin: 4px 0;
        }
        
        .tsf-image-panel:first-child {
            border-radius: 8px 8px 0 0;
        }
        
        .tsf-image-panel:last-child {
            border-radius: 0 0 8px 8px;
        }
        
        .tsf-image-caption {
            opacity: 1;
            padding: 5px;
            font-size: 0.9rem;
        }
  
  .eventos{
    margin-top: 20px;
  }

  .card_eventos{
    max-width: 320px;
    margin: auto!important;
  }

  .item_noticia{
    margin-top: 12px;
  }
  .noticias .content_noticias .item_noticia .card_noticia{
    max-width: 350px; 
  }


}
