/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: Arial, sans-serif;
    color: #333;
  }
  
  /* CONTENEDOR GENÉRICO */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* HEADER / NAV */
  .site-header {
    background-color: #dc2626e7; /* rojo intenso */
    padding: 1rem 0;
  }
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo-text {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
  }
  .nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
  }
  .nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
  }
  .nav-menu li a:hover {
    color: #ffddcc;
  }
  
  /* HERO SECTION */
  /* Contenedor principal del hero que ocupa toda la altura de la pantalla */
  .hero {
    /* Gradiente de fondo rojo */
    background: linear-gradient(to bottom, #E62E2E, #9e1c1c);
    /* Asegura que el hero ocupe al menos toda la altura de la ventana */
    min-height: 100vh;
    /* Centra todo el contenido vertical y horizontalmente */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centra el texto dentro del hero */
    text-align: center;
    /* Color del texto */
    color: white;
    /* Evita barras de desplazamiento horizontal durante las animaciones */
    overflow-x: hidden;
  }

  /* Contenedor interno que limita el ancho del contenido */
  .hero-content {
    /* Ocupa todo el ancho disponible */
    width: 100%;
    /* Limita el ancho máximo para pantallas grandes */
    max-width: 1200px;
    /* Espacio interno alrededor del contenido */
    padding: 2rem;
    /* Organiza los elementos en columna (logo arriba, texto abajo) */
    display: flex;
    flex-direction: column;
    /* Centra los elementos horizontal y verticalmente */
    align-items: center;
    justify-content: center;
  }

  /* Contenedor de la imagen del logo */
  .hero-image {
    /* Espacio entre el logo y el texto */
    margin-bottom: 3rem;
    /* Posición inicial: completamente fuera de la pantalla por la izquierda */
    transform: translateX(-30%);
    /* Duración y tipo de animación para el movimiento */
    transition: transform 0.7s ease-out;
  }

  /* Estilos de la imagen del logo */
  .hero-logo {
    /* Ancho fijo del logo */
    width: 600px;
    /* Mantiene la proporción de la imagen */
    height: auto;
  }

  /* Contenedor del texto */
  .hero-text {
    /* Posición inicial: completamente fuera de la pantalla por la derecha */
    transform: translateX(30%);
    /* Duración y tipo de animación para el movimiento */
    transition: transform 0.7s ease-out;
    /* Limita el ancho máximo del texto */
    max-width: 600px;
    /* Centra el contenedor del texto */
    margin: 0 auto;
  }

  /* Estilos del párrafo dentro del texto */
  .hero-text p {
    /* Tamaño de la fuente */
    font-size: 1.5rem;
    /* Espacio debajo del párrafo */
    margin-bottom: 2rem;
    /* Color del texto */
    color: #fff;
  }

  /* Clase que se agrega con JavaScript para mostrar el logo */
  .hero-image.show {
    /* Mueve el logo a su posición final (centro) */
    transform: translateX(0);
    /* Aplica la animación de desenfoque después de la transición */
    animation: finalShake 0.5s ease-in-out 1.2s;
  }

  /* Clase que se agrega con JavaScript para mostrar el texto */
  .hero-text.show {
    /* Mueve el texto a su posición final (centro) */
    transform: translateX(0);
    /* Aplica la animación de desenfoque después de la transición */
    animation: finalShake 0.5s ease-in-out 1.2s;
  }

  /* Keyframes para el efecto de desenfoque y movimiento */
  @keyframes finalShake {
    0% {
      transform: translateX(0);
      filter: blur(0);
    }
    25% {
      transform: translateX(-5px);
      filter: blur(2px);
    }
    75% {
      transform: translateX(5px);
      filter: blur(2px);
    }
    100% {
      transform: translateX(0);
      filter: blur(0);
    }
  }

  /* Estilos para la flecha de scroll */
  .scroll-down {
    /* Color de la flecha */
    color: white;
    /* Tamaño de la flecha */
    font-size: 2rem;
    /* Elimina el subrayado del enlace */
    text-decoration: none;
    /* Hace que la flecha se comporte como un bloque en línea */
    display: inline-block;
    /* Espacio arriba de la flecha */
    margin-top: 1rem;
  }

  /* SECCIONES GENÉRICAS */
  section {
    padding: 3rem 0;
    width: 100%;
  }

  section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
  }

  .subtexto {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
  }

  /* SECCIONES CON FONDO GRIS */
  .sobre-section,
  .equipo-section,
  .instituciones-section {
    background-color: rgba(211, 211, 211, 0.1);
    padding: 4rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  .sobre-section .container,
  .equipo-section .container,
  .instituciones-section .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  /* SOBRE */
  .sobre-section p {
    line-height: 1.6;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
  }

  /* DESCUBRE */
  .descubre-section .beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: start;
  }

  .beneficio {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 300px;
  }

  .beneficio img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
  }

  .beneficio:hover {
    transform: translateY(-5px);
  }

  .beneficio h3 {
    color: #dc2626;
    margin-bottom: 0.5rem;
  }

  .beneficio p {
    color: #666;
  }

  /* Media queries para dispositivos móviles */
  @media screen and (max-width: 768px) {
    .beneficios {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }

    .beneficio {
      padding: 1rem;
      max-width: none;
    }

    .beneficio img {
      width: 100px;
      height: 100px;
    }

    .beneficio h3 {
      font-size: 1rem;
    }

    .beneficio p {
      font-size: 0.9rem;
    }
  }

  @media screen and (max-width: 480px) {
    .beneficios {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.5rem;
    }

    .beneficio {
      padding: 0.5rem;
    }

    .beneficio img {
      width: 80px;
      height: 80px;
    }

    .beneficio h3 {
      font-size: 0.9rem;
      margin-bottom: 0.3rem;
    }

    .beneficio p {
      font-size: 0.8rem;
    }
  }

  /* BENEFICIOS DETALLES */
  .beneficio-detalles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .detalles-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    width: 90%;
    max-width: 1000px;
    display: flex;
    gap: 2rem;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
  }

  .detalles-imagen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .detalles-imagen img {
    max-width: 100%;
    height: auto;
  }

  .detalles-info {
    flex: 2;
  }

  .detalles-info h3 {
    color: #dc2626;
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .detalles-seccion {
    margin-bottom: 2rem;
  }

  .detalles-seccion h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .detalles-seccion ul {
    list-style: none;
    padding: 0;
  }

  .detalles-seccion li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }

  .detalles-seccion li::before {
    content: "•";
    color: #dc2626;
    position: absolute;
    left: 0;
  }

  @media (max-width: 768px) {
    .detalles-content {
      flex-direction: column;
    }
    
    .detalles-imagen {
      max-height: 200px;
    }
  }

  /* EQUIPO DE ENTRENADORES */
  .equipo-section {
    background-color: #f5f5f5;
    padding: 4rem 0;
  }

  .entrenadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }

  .entrenador {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .entrenador.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .entrenador-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: #eee;
  }

  .entrenador-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .entrenador:hover .entrenador-img img {
    transform: scale(1.05);
  }

  .entrenador-nombre {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-top: 0.5rem;
  }

  @media (max-width: 768px) {
    .entrenadores-grid {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1.5rem;
    }
    
    .entrenador-img {
      width: 150px;
      height: 150px;
    }
  }

  /* HORARIOS */
  .horarios-section {
    padding: 4rem 0;
    background-color: #fff;
  }

  .horarios-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
  }

  .dia-columna {
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .dia-titulo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .dia-columna:nth-child(1) .dia-titulo {
    color: #B30000;
    border-bottom: 2px solid #B30000;
  }

  .dia-columna:nth-child(2) .dia-titulo {
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
  }

  .dia-columna:nth-child(3) .dia-titulo {
    color: #006633;
    border-bottom: 2px solid #006633;
  }

  .clase-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
  }

  .hora {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
  }

  .clase-nombre {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.3rem;
  }

  .clase-edad {
    font-size: 1rem;
    color: #666;
  }

  .tabla-horarios {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  .dia-col {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    width: 220px;
  }
  .dia-col h3 {
    margin-bottom: 1rem;
    color: #B30000;
  }
  .hora-item {
    margin-bottom: 0.5rem;
  }
  .rango {
    display: block;
    font-weight: bold;
  }
  .clase {
    display: block;
    color: #777;
  }
  
  /* INSTITUCIONES */
  .instituciones-section {
    text-align: center;
  }
  .instituciones-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
  }
  .instituciones-logos img {
    max-width: 120px;
  }
  
  /* CONTACTO */
  .contacto-section {
    background-color: #dc2626e7;
    padding: 4rem 0;
    color: white;
  }

  .contacto-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
  }

  .contacto-section .subtexto {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    font-size: 1.2rem;
  }

  .contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .contacto-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contacto-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }

  .contacto-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .contacto-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
  }

  .contacto-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }

  .contacto-btn {
    display: inline-block;
    background-color: #dc2626;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: auto;
  }

  .contacto-btn:hover {
    background-color: #ef4444;
  }

  .mapa-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
  }

  .mapa-container iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  @media (max-width: 768px) {
    .contacto-grid {
      grid-template-columns: 1fr;
    }
    
    .contacto-card {
      margin-bottom: 1rem;
    }
  }
  
  /* FOOTER */
  .site-footer {
    background-color: #800000; /* un rojo más oscuro */
    padding: 1rem 0;
    text-align: center;
    color: #fff;
  }
  
  /* RESPONSIVE */
  @media (max-width: 768px) {
    .hero-inner {
      flex-direction: column;
    }
    .navbar {
      flex-direction: column;
      align-items: flex-start;
    }
    .nav-menu {
      flex-direction: column;
      margin-top: 1rem;
      gap: 0.5rem;
    }
    .nav-menu li {
      margin: 0;
    }
    .descubre-section .beneficios {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }
    .entrenadores-grid {
      flex-direction: column;
      align-items: center;
    }
    .contacto-grid {
      flex-direction: column;
      align-items: center;
    }
    .horarios-grid {
      flex-direction: column;
      align-items: center;
    }
    .dia-columna {
      width: 100%;
    }
    .logo-text {
      display: none;
    }
  }

  /* MISIÓN Y VISIÓN */
  .mision-vision-section {
    padding: 4rem 0;
  }

  .mision-vision-section h1 {
    color: #dc2626;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .mision-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .mision-card,
  .vision-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #dc2626;
  }

  .card-header i {
    font-size: 2rem;
    margin-right: 1rem;
  }

  .card-header h2 {
    font-size: 1.8rem;
    margin: 0;
  }

  .mision-card p,
  .vision-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
  }

  /* VALORES */
  .valores-section {
    padding: 4rem 0;
    background-color: rgba(211, 211, 211, 0.1);
  }

  .valores-section h2 {
    color: #dc2626;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .valor-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }

  .valor-card:hover {
    transform: translateY(-5px);
  }

  .valor-card i {
    font-size: 2.5rem;
    color: #dc2626;
    margin-bottom: 1rem;
  }

  .valor-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
  }

  .valor-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.4;
  }

  @media (max-width: 768px) {
    .mision-vision-grid {
      grid-template-columns: 1fr;
    }
  
    .valores-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 480px) {
    .valores-grid {
      grid-template-columns: 1fr;
    }
  }

/* ACTIVIDADES */
.activities-container {
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.activities-header {
  text-align: center;
  margin-bottom: 2rem;
}

.search-bar {
  width: 100%;
  padding: 1rem;
  margin-bottom: 2rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-title {
  font-weight: bold;
  margin-bottom: 1rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.event-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.5rem;
  background: white;
}

.event-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.liga-escolar { background: #e3f2fd; color: #1976d2; }
.liga-nacional { background: #f3e5f5; color: #7b1fa2; }
.campeonato { background: #e8f5e9; color: #388e3c; }
.internacional { background: #fff3e0; color: #f57c00; }

.event-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.event-details {
  font-size: 0.9rem;
  color: #666;
}

.event-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.category-tag {
  background: #f5f5f5;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* ENTRENADORES DETALLES */
.entrenadores-detalles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 245, 245, 0.98);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.entrenadores-detalles .detalles-content {
  background-color: transparent;
  max-width: 1200px;
  width: 100%;
  position: relative;
  display: flex;
  gap: 40px;
  padding: 20px;
}

.entrenadores-detalles .detalles-imagen {
  flex: 0 0 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.entrenadores-detalles .detalles-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entrenadores-detalles .detalles-info {
  flex: 1;
  text-align: center;
  padding-top: 20px;
}

.entrenadores-detalles .detalles-info h3 {
  color: #1a202c;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.entrenadores-detalles .subtitulo-entrenador {
  color: #dc2626;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.entrenadores-detalles .descripcion-entrenador {
  text-align: center;
  line-height: 2;
  font-size: 1.2rem;
  color: #4a5568;
}

.entrenadores-detalles .descripcion-entrenador p {
  margin-bottom: 1rem;
}

.entrenadores-detalles .descripcion-entrenador strong {
  color: #4a5568;
  font-weight: 600;
}

.entrenadores-detalles .close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.entrenadores-detalles .close-button:hover {
  color: #dc2626;
}

@media (max-width: 1024px) {
  .entrenadores-detalles .detalles-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .entrenadores-detalles .detalles-imagen {
    flex: 0 0 350px;
    width: 350px;
    height: 350px;
  }

  .entrenadores-detalles .detalles-info {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .entrenadores-detalles {
    padding: 20px;
  }

  .entrenadores-detalles .detalles-imagen {
    flex: 0 0 280px;
    width: 280px;
    height: 280px;
  }

  .entrenadores-detalles .detalles-info h3 {
    font-size: 2rem;
  }

  .entrenadores-detalles .subtitulo-entrenador {
    font-size: 1.2rem;
  }

  .entrenadores-detalles .descripcion-entrenador {
    font-size: 1rem;
    line-height: 1.8;
  }
}

/* Estilos para la página de juegos */
.games-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.games-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.games-title {
    text-align: center;
    color: #dc2626;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.games-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.game-card {
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-content {
    padding: 1.5rem;
}

.game-title {
    color: #dc2626;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.game-description {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.game-link {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.game-link:hover {
    background: #b91c1c;
}

@media (max-width: 768px) {
    .games-section {
        padding: 2rem 0;
    }

    .games-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Estilos para el botón hamburguesa */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 100;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Media query para móviles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #dc2626;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease-in-out;
    z-index: 99;
    padding-top: 60px;
  }

  .nav-menu.active {
    right: 0;
    display: flex;
  }

  .nav-menu li {
    margin: 1.5rem 0;
  }

  .nav-menu li a {
    color: white;
    font-size: 1.2rem;
  }

  /* Animación de las líneas del hamburguesa */
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Ocultar el título en móvil */
  .logo-text {
    display: none;
  }
}

/* Estilos para el contenedor de retroalimentación y mensajes */
.feedback-container {
  margin-top: 20px;
  text-align: center;
}

.feedback {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.feedback.correct {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.feedback.incorrect {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.continue-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.continue-button:hover {
  background-color: #0056b3;
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quiz-container h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.option-button {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.option-button:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.option-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.option-button:disabled.correct {
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.option-button:disabled.incorrect {
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.feedback-container {
  margin-top: 30px;
  text-align: center;
}

.feedback {
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 18px;
}

.feedback.correct {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.feedback.incorrect {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.continue-button {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.continue-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Media queries para dispositivos móviles */
@media screen and (max-width: 768px) {
  .hero-logo {
    width: 90%; /* El logo ocupará el 90% del ancho de la pantalla */
    max-width: 400px; /* Limitamos el ancho máximo */
  }

  .hero-text p {
    font-size: 1.2rem; /* Reducimos también el tamaño del texto */
    margin-bottom: 1.5rem;
  }

  .hero-content {
    padding: 1rem; /* Reducimos el padding en móviles */
  }
}

@media screen and (max-width: 480px) {
  .hero-logo {
    width: 95%; /* Un poco más de ancho en pantallas muy pequeñas */
    max-width: 300px; /* Limitamos aún más el ancho máximo */
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

/* Estilos para el carrusel */
.sobre-carousel {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-images {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Aspect ratio 16:9 */
}

.carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-img.active {
  opacity: 1;
}

/* Media queries para el carrusel */
@media screen and (max-width: 768px) {
  .sobre-carousel {
    margin-bottom: 1.5rem;
  }
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 25px;
    padding: 20px;
    justify-content: center;
}

.social-icons a {
    color: white;
    font-size: 2em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons .fa-whatsapp:hover { 
    color: #25D366; 
    transform: scale(1.15); 
    filter: drop-shadow(0 0 12px #25D36655); 
}
.social-icons .fa-instagram:hover { 
    color: #E1306C; 
    transform: scale(1.15); 
    filter: drop-shadow(0 0 12px #E1306C55); 
}
.social-icons .fa-facebook:hover { 
    color: #1877F2; 
    transform: scale(1.15); 
    filter: drop-shadow(0 0 12px #1877F255); 
}
.social-icons .fa-envelope:hover { 
    color: #EA4335; 
    transform: scale(1.15); 
    filter: drop-shadow(0 0 12px #EA433555); 
}

/* Estilos para el juego de enlazar karate */
.topic-selection, .matching-game {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.topic-card {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #4f46e5;
}

.topic-card h3 {
    margin: 0;
    color: #4f46e5;
    font-size: 1.2rem;
}

.game-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.term-container, .definition-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.term, .definition {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.term.selected, .definition.selected {
    background-color: #e0e7ff;
    border-color: #4f46e5;
}

.term.correct, .definition.correct {
    background-color: #dcfce7;
    border-color: #22c55e;
}

.score {
    text-align: center;
    font-size: 1.5rem;
    margin: 1rem 0;
}

.back-btn, .restart-btn {
    display: inline-block;
    margin: 1rem;
    padding: 1rem 2rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    text-decoration: none;
}

.back-btn:hover, .restart-btn:hover {
    background-color: #4338ca;
}

.button-container {
    text-align: center;
    margin: 2rem 0;
}

.instructions {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

.matching-game {
    display: none;
}

/* Estilos para la sección de competiciones */
.competiciones-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  position: relative;
}

.competiciones-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0L100,100M100,0L0,100" stroke="rgba(220,38,38,0.05)" stroke-width="2"/></svg>');
  background-size: 30px 30px;
  pointer-events: none;
}

.competiciones-section .container {
  position: relative;
  z-index: 1;
}

.competiciones-section h1 {
  text-align: center;
  color: #fff;
  margin-bottom: 3rem;
  font-size: 3.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 1.5rem;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
  position: relative;
  overflow: hidden;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  border: 3px solid #fff;
  animation: titlePulse 2s infinite alternate;
}

.competiciones-section h1::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes titlePulse {
  from {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
  }
  to {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.6);
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.match-card {
  background: transparent;
  border-radius: 10px;
  height: 420px; /* Altura fija para todas las tarjetas */
  perspective: 1000px; /* Efecto 3D para la rotación */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.match-card:hover {
  transform: translateY(-10px);
}

/* Estilos para el efecto de giro */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Añadir clase flipped para girar la tarjeta */
.match-card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* Estilos para el frente y el reverso de la tarjeta */
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  background: white;
}

.card-front {
  box-shadow: inset 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.card-back {
  transform: rotateY(180deg);
  box-shadow: inset 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Estilos para la imagen */
.card-image-container {
  width: 100%;
  height: calc(100% - 50px); /* Altura total menos la altura de la categoría */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta la imagen para cubrir el contenedor */
  transition: transform 0.5s ease;
}

.card-front:hover .card-image {
  transform: scale(1.05);
}

.match-category {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  padding: 1rem;
  font-weight: bold;
  text-align: center;
  height: 50px; /* Altura fija para la categoría */
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.match-category::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

.match-details {
  padding: 1.5rem;
  height: calc(100% - 50px); /* Altura total menos la altura de la categoría */
  overflow-y: auto; /* Permite desplazamiento si el contenido es muy largo */
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.match-competitors {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.competitor {
  text-align: center;
  flex: 1;
}

.competitor-name {
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 1.2em;
  text-align: center;
  transition: all 0.3s ease;
}

.competitor-name.student {
  background-color: rgba(220, 38, 38, 0.1);
  border: 2px solid #dc2626;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.competitor-name.aka {
  color: #dc2626;
  border-color: #dc2626;
  background-color: rgba(220, 38, 38, 0.1);
}

.competitor-name.ao {
  color: #2563eb;
  border-color: #2563eb;
  background-color: rgba(37, 99, 235, 0.1);
}

.belt-color {
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  margin: 0.6rem auto;
  width: fit-content;
  font-size: 1em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
}

.belt-color.aka {
  color: white;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.belt-color.ao {
  color: white;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.match-info {
  background: #f3f4f6;
  padding: 0.8rem;
  border-radius: 8px;
  margin-top: 0.6rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.match-info p {
  margin: 0.4rem 0;
  display: flex;
  align-items: center;
  color: #4b5563;
  font-size: 0.95em;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.match-info p:last-child {
  border-bottom: none;
}

.match-info p:hover {
  transform: translateX(5px);
}

.match-info i {
  margin-right: 0.6rem;
  color: #dc2626;
  width: 16px;
  text-align: center;
  font-size: 1em;
}

.vs-badge {
  background: #f3f4f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1rem;
  font-weight: bold;
  color: #dc2626;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Media queries para responsividad */
@media (max-width: 768px) {
  .matches-grid {
    grid-template-columns: 1fr;
  }
  
  .match-competitors {
    flex-direction: column;
    gap: 1rem;
  }
  
  .vs-badge {
    margin: 1rem 0;
  }
  
  /* Estilos responsivos para el título */
  .competiciones-section h1 {
    font-size: 2.2rem;
    padding: 1rem;
    margin-bottom: 2rem;
    word-break: break-word;
    hyphens: auto;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
  .competiciones-section h1 {
    font-size: 1.8rem;
    padding: 0.8rem;
    letter-spacing: 1px;
  }
  
  .match-card {
    height: 400px;
  }
  
  .competitor-name {
    font-size: 1.1em;
    padding: 0.6rem;
  }
  
  .belt-color {
    font-size: 0.9em;
    padding: 0.3rem 0.6rem;
  }
  
  .match-info p {
    font-size: 0.9em;
  }
}

/* LNK */
.lnk-section {
  width: 100%;
  padding: 2rem 0;
  margin-bottom: 4rem;
  display: flex;
  justify-content: center;
}

.lnk-link {
  display: block;
  width: 100%;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.lnk-link:hover {
  transform: scale(1.02);
}

.lnk-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.lnk-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Enlaces de Tatamis y Directos */
.tatami-links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 0 1rem;
}

/* LIGA NACIONAL KARATE ALBACETE */
.lnk-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/Albacete_LNK.png');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.lnk-banner h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.lnk-subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

/* Sección de información */
.lnk-info-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.lnk-info-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.lnk-info-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  transition: transform 0.3s ease;
}

.lnk-info-card:hover {
  transform: translateY(-10px);
}

.lnk-info-icon {
  font-size: 2.5rem;
  color: #dc2626;
  margin-bottom: 1rem;
}

.lnk-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.lnk-info-card p {
  color: #666;
}

/* Sección de medallas */
.lnk-medals-section {
  padding: 4rem 0;
  background-color: #fff;
}

.lnk-medals-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.lnk-medal-highlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.medal-image {
  position: relative;
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.medal-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.medal-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ffd700;
  color: #333;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  transform: rotate(15deg);
}

.medal-info {
  flex: 1;
  min-width: 300px;
}

.medal-info h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.medal-category {
  font-size: 1.2rem;
  color: #dc2626;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.medal-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

/* Sección de reportaje */
.lnk-report-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.lnk-report-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.lnk-report-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 4rem;
}

.lnk-report-image {
  flex: 1;
  min-width: 300px;
}

.lnk-report-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lnk-report-text {
  flex: 1;
  min-width: 300px;
}

.lnk-report-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.lnk-report-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
}

.lnk-quote {
  background: #fff;
  border-left: 5px solid #dc2626;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.lnk-quote i {
  color: #dc2626;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

.lnk-quote p {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.quote-author {
  display: block;
  text-align: right;
  font-weight: 600;
  color: #666;
}

.lnk-report-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem;
  margin: 3rem 0;
  text-align: center;
}

.stat-item {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #dc2626;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  line-height: 1.4;
}

.lnk-report-conclusion {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.lnk-report-conclusion p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.lnk-report-conclusion p:last-child {
  margin-bottom: 0;
}

/* Galería de imágenes */
.lnk-gallery-section {
  padding: 5rem 0;
  background-color: #fff;
}

.lnk-gallery-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.lnk-gallery-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.lnk-gallery-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-control {
  background: #dc2626;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.gallery-control:hover {
  background-color: #b91c1c;
}

.lnk-gallery-wrapper {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lnk-gallery-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-item {
  min-width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.02);
}

/* Modal para imágenes ampliadas */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  width: 80%;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.5s;
}

@keyframes modalFadeIn {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #dc2626;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
}

.close-modal:hover {
  color: #b91c1c;
}

#modalImage {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 5px;
  display: block;
  margin: 0 auto;
}

.modal-caption {
  margin-top: 15px;
  text-align: center;
  color: #333;
  font-size: 1.1rem;
}

.modal-share {
  margin-top: 20px;
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.modal-share p {
  margin-bottom: 10px;
  color: #555;
  font-weight: 600;
}

.modal-social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f8f9fa;
  color: #333;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-5px);
}

#shareInstagram {
  color: #c13584;
  background-color: rgba(193, 53, 132, 0.1);
}

#shareInstagram:hover {
  background-color: #c13584;
  color: white;
}

#shareFacebook {
  color: #3b5998;
  background-color: rgba(59, 89, 152, 0.1);
}

#shareFacebook:hover {
  background-color: #3b5998;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .lnk-banner h1 {
    font-size: 2.5rem;
  }
  
  .lnk-subtitle {
    font-size: 1.2rem;
  }
  
  .lnk-info-card {
    min-width: 100%;
  }
  
  .medal-image, .medal-info,
  .lnk-report-image, .lnk-report-text {
    min-width: 100%;
  }
  
  .gallery-item {
    height: 300px;
  }
  
  .modal-content {
    width: 95%;
    padding: 15px;
  }
  
  #modalImage {
    max-height: 60vh;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

.tatami-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  border-radius: 10px;
  padding: 1.5rem;
  width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tatami-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: #dc2626;
}

.tatami-link i {
  font-size: 2.5rem;
  color: #dc2626;
  margin-bottom: 1rem;
}

.tatami-link span {
  font-weight: bold;
  color: #333;
  text-align: center;
  font-size: 1.1rem;
}

.tatami-link.masculino i {
  color: #2563eb;
}

.tatami-link.femenino i {
  color: #db2777;
}

.tatami-link.directo i {
  color: #dc2626;
}

/* Estilos responsivos para los enlaces de tatamis */
@media (max-width: 768px) {
  .tatami-links-container {
    gap: 1rem;
  }
  
  .tatami-link {
    width: 160px;
    padding: 1.2rem;
  }
  
  .tatami-link i {
    font-size: 2rem;
  }
  
  .tatami-link span {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .tatami-links-container {
    flex-direction: column;
    align-items: center;
  }
  
  .tatami-link {
    width: 90%;
    max-width: 250px;
  }
}

/* Estilos para mostrar/ocultar versiones del horario */
.horarios-desktop {
  display: flex;
}

.horarios-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .horarios-desktop {
    display: none;
  }
  
  .horarios-mobile {
    display: block;
  }
  
  .dias-agrupados {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dc2626;
  }
  
  .dias-agrupados h3 {
    display: inline-block;
    margin: 0 0.5rem;
    font-size: 1.5rem;
  }
  
  .dias-agrupados h3:nth-child(1) {
    color: #B30000;
  }
  
  .dias-agrupados h3:nth-child(2) {
    color: #0066cc;
  }
  
  .dias-agrupados h3:nth-child(3) {
    color: #006633;
  }
  
  .horarios-mobile .clase-card {
    margin-bottom: 1rem;
  }
  
  .horarios-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .dia-columna {
    width: 100%;
  }
}