.text-theme-colored1 {
  color: #b81a27 !important;
}

.social-link {
  background-color: #b81a27 !important;
}

.header-top {
  background-color: #111 !important;
}

.btn-outline-light {
  color: white !important;
  background-color: #b81a2786 !important;
}

.containter {
  margin-bottom: 10px !important;
}

.texto-con-borde {
  /* Color de adentro (Relleno) */
  -webkit-text-stroke: 0.5px #b81a27;
}

h1,
h2,
h3,
h4,
h5,
h6,
.menuzord-menu > li > a {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  /* Negrita fuerte */
  letter-spacing: -0.5px;
  /* Un toquecito más pegadas las letras se ve más moderno */
  text-transform: uppercase;
  /* Opcional: Si quieres que los títulos sean siempre mayúsculas */
}

body,
p,
span,
a,
li,
div {
  font-family: "Open Sans", sans-serif;
}

.flotante {
  transition: transform 0.5s;
}

.flotante:hover {
  transform: scale(1.05);
}

.flipbox-text {
  color: #b81a27;
}

.boton-primario {
  background-color: #b81a27;
  color: white;
  border: #fff 1px solid;
}

.boton-secundario {
  background-color: white;
  color: #b81a27;
  border: #b81a27 1px solid;
}

.timeline-swiper {
  width: 100%;
  height: 350px;
  /* Ajusta la altura de las fotos */
  margin-top: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.text-justify {
  text-align: justify !important;
}

.swiper-slide img:hover {
  transform: scale(1.05);
  /* Pequeño zoom al pasar el mouse */
}

/* IMPORTANTE: El modal debe estar encima de tus animaciones GSAP (que tienen 9999) */
.modal {
  z-index: 10005 !important;
}

.modal-backdrop {
  z-index: 10000 !important;
}

.timeline-swiper {
  width: 100%;
  /* height: 600px;  <--- BORRA O COMENTA ESTA LÍNEA */
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
}

.seccion-con-deco {
  position: relative;
  /* Opcional: si la imagen es muy grande y no quieres que se salga del contenedor padre, usa overflow: hidden; aquí */
}

.deco-scroll-img {
  position: absolute;
  z-index: -1;
  /* Detrás del texto */
  width: 180px;
  /* Ajusta el tamaño según tus imágenes */
  height: auto;
  opacity: 0;
  /* Inicialmente invisibles, GSAP las mostrará */
  pointer-events: none;
  /* Para que no interfieran con clicks en el texto */
}

/* Posiciones iniciales (GSAP las moverá desde aquí) */
.deco-left {
  left: -100px;
  /* Comienza metida a la izquierda */
  top: 10%;
  /* Un pequeño ángulo inicial para más dinamismo */
  transform: rotate(-15deg);
}

.rio-camino {
  fill: none !important;
  /* Quitamos el relleno de color */
  stroke: #b81a27;
  /* Color de la línea (tu verde) */
  stroke-width: 5px;
  /* Grosor de la línea (ajústalo a gusto) */
  stroke-linecap: round;
  /* Bordes redondeados */

  /* Esto prepara la línea para ser animada */
  /* NO TOQUES ESTAS DOS LÍNEAS, GSAP LAS MANEJARÁ, PERO ES BUENO TENERLAS DE BASE */
  opacity: 1;
}

.deco-right {
  right: -100px;
  /* Comienza metida a la derecha */
  top: 10%;
  transform: rotate(15deg);
}

.svg-rio-flotante {
  position: absolute;
  top: 0;
  left: -20px;
  /* Ajusta esto para acercarlo o alejarlo del texto */
  width: 100%;
  /* Ocupa el ancho disponible del contenedor */
  height: 100%;
  /* SE ESTIRA PARA CUBRIR TODAS LAS ACTIVIDADES */
  z-index: -1;
  pointer-events: none;
  overflow: visible;
  /* max-width limita que no se vuelva gigante en pantallas muy anchas */
  max-width: 300px;
  opacity: 50%;
}

.rio-camino {
  fill: none;
  /* Importante: Sin relleno */
  stroke: #b81a27;
  /* Tu verde */
  stroke-width: 15;
  /* GROSOR DEL RÍO: Auméntalo si quieres más grueso */
  stroke-linecap: round;
  /* Esto hace que la animación sea fluida */
  transition: all 0.1s linear;
}

/* En pantallas grandes, lo movemos un poco para que no tape el texto */
@media (min-width: 1200px) {
  .svg-rio-flotante {
    left: -50px;
    max-width: 400px;
  }
}

/* Reutilizamos las clases de posición que creamos antes */
.deco-left {
  left: -120px;
  top: 0;
}

.deco-right {
  right: -120px;
  top: 0;
}

/* Ocultar en móviles para no saturar la pantalla pequeña */
@media (max-width: 767px) {
  .deco-scroll-img {
    display: none !important;
  }
}

@media (max-width: 1199.98px) {
  #top-primary-nav.menuzord-responsive .menuzord-menu > li > a,
  #top-primary-nav-clone.menuzord-responsive .menuzord-menu > li > a {
    color: white;
    background-color: #b81a27;
    border-bottom-color: #b81a27;
  }
}

.timeline-swiper .swiper-slide {
  width: auto !important;
  /* Deja que la imagen defina el ancho o usa un px fijo */
  max-width: 400px;
  height: 100%;
}

.timeline-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Recorta la imagen para que llene el espacio sin deformarse */
  border-radius: 8px;
  cursor: pointer;
}

/* Botones del Modal de Galería */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(126, 217, 87, 0.8);
  /* Tu color verde con transparencia */
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10010;
  transition: all 0.3s;
}

.menuzord.theme-color2 .menuzord-menu > li.active > a,
.menuzord.theme-color2 .menuzord-menu > li:hover > a,
.menuzord.theme-color2 .menuzord-menu ul.dropdown li:hover > a {
  background-color: black;
  color: #fff;
}

.modal-nav-btn:hover {
  background-color: #b81a27;
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 10px;
}

.modal-next {
  right: 10px;
}

.combat-section {
  position: relative;
  overflow: hidden;
  background-image: url(recursos/clase1.JPG);
  background-size: cover;
  background-position: center;
  /* Importante para que los puños no rompan el layout */
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fist {
  position: absolute;
  width: 200px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Efecto elástico de rebote */
  opacity: 0;
}

/* Estado inicial (fuera de pantalla) */
.fist-left {
  left: -50px;
  transform: translateX(-100%) rotate(-10deg);
}

.fist-right {
  right: -50px;
  transform: translateX(100%) rotate(10deg);
}

/* Estado activo (El golpe) */
.active .fist {
  opacity: 1;
}

.active .fist-left {
  transform: translateX(0) rotate(0);
}

.active .fist-right {
  transform: translateX(0) rotate(0);
}

/*dojo*/
.dojo-parallax-container {
  position: relative;
  height: 600px;
  /* Altura de la sección */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111;
  /* Color de fallback */
}

/* Capas Generales */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Permite seleccionar el texto aunque haya capas encima */
  will-change: transform;
  /* Optimización para el navegador */
}

/* Capa 1: Fondo */
.layer-bg img {
  width: 100%;
  height: 120%;
  /* Un poco más alto para tener margen de movimiento */
  object-fit: cover;
  opacity: 0.4;
  /* Oscurecido para que se lea el texto */
  position: absolute;
  top: -10%;
  /* Centrado verticalmente para empezar */
}

/* Capa 2: Texto */
.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
  max-width: 600px;
}

.dojo-title {
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.dojo-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0.9;
}

.dojo-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}

.dojo-btn:hover {
  background: #fff;
  color: #000;
}

/* Capa 3: Luchador */
.layer-fighter {
  z-index: 3;
  display: flex;
  align-items: flex-end;
  /* Alinea la imagen al fondo */
  justify-content: flex-end;
  /* Alinea a la derecha (opcional) */
}

.layer-fighter img {
  max-height: 100px;
  /* Ajusta el tamaño del luchador */
  width: auto;
  margin-right: 5%;
  /* Separación del borde derecho */
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
  /* Sombra para despegarlo del fondo */
  transform-origin: bottom center;
}

/* Responsive básico */
@media (max-width: 768px) {
  .dojo-title {
    font-size: 2.5rem;
  }

  .layer-fighter img {
    max-height: 60%;
    opacity: 0.8;
  }
}

/*anatomia*/
.anatomy-section {
  background-color: #fff;
  padding: 80px 0;
  display: flex;
  justify-content: center;
}

.anatomy-container {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1000px;
}

.anatomy-text h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Estilos del SVG */
.svg-drawing path {
  /* El trazo será animado via JS, pero definimos la transición aquí */
  transition: stroke-dashoffset 1.5s ease-out;
  /* 1.5s es la duración del dibujado */
}

/* Responsive simple */
@media (max-width: 768px) {
  .anatomy-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Vendaje */
.tape-reveal-section {
  position: relative;
  height: 400px;
  /* Altura de la sección */
  background-color: #111;
  /* Fondo oscuro (estilo Dojo) */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* Vital para que las cintas no generen scroll lateral */
  color: white;
  font-family: sans-serif;
}

/* Estilo base de la cinta */
.tape-strip {
  position: absolute;
  height: 80px;
  /* Grosor de la cinta */
  width: 150%;
  /* Más ancho que la pantalla para cubrir la diagonal */
  background-color: #f0f0f0;

  /* TRUCO VISUAL: Textura de vendaje usando CSS */
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  /* Sombra para dar profundidad 3D */
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  /* Efecto rápido y frenado suave */
}

/* Cinta Superior: Inclinada y desplazada */
.tape-top {
  top: 20%;
  left: -10%;
  transform: rotate(-5deg) translateX(-100%);
  /* Estado inicial: Fuera a la izquierda */
}

/* Cinta Inferior: Inclinada opuesta */
.tape-bottom {
  bottom: 20%;
  right: -10%;
  transform: rotate(-5deg) translateX(100%);
  /* Estado inicial: Fuera a la derecha */
}

/* Contenido */
.tape-content {
  z-index: 2;
  /* Por encima de las cintas */
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
  /* Retraso para que entren las cintas primero */
}

.tape-content h2 {
  font-size: 4rem;
  margin: 0;
  font-weight: 900;
  letter-spacing: -2px;
  text-transform: uppercase;
  /* Efecto "Stencil" o pintado */
  color: #fff;
}

.tape-content .tape-info {
  font-size: 1.2rem;
  margin-top: 10px;
  font-weight: 300;
}

/* === ESTADOS ACTIVOS (ANIMACIÓN) === */

/* Cintas entrando a su posición */
.tape-reveal-section.active .tape-top {
  transform: rotate(-5deg) translateX(0%);
}

.tape-reveal-section.active .tape-bottom {
  transform: rotate(-5deg) translateX(0%);
}

/* Contenido apareciendo */
.tape-reveal-section.active .tape-content {
  opacity: 1;
  transform: scale(1);
}

/*RUTINA*/
/* === SECCIÓN ESTRUCTURA DE CLASE === */
.class-structure-section {
  background-color: #0f0f0f;
  /* Fondo muy oscuro */
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}

/* Grilla de las 3 fases */
.routine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

/* Tarjeta de Rutina */
.routine-card {
  background: #1a1a1a;
  padding: 40px 30px;
  border-radius: 4px;
  position: relative;
  border-bottom: 4px solid #333;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  /* Para animación de entrada */
  transform: translateY(50px);
}

.routine-card:hover {
  transform: translateY(-10px);
  /* Se levanta */
  border-bottom-color: #b81a27;
  /* Se ilumina abajo */
  box-shadow: 0 10px 30px rgba(184, 26, 39, 0.2);
}

.card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: "Anton", sans-serif;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.05);
  /* Número gigante sutil de fondo */
  line-height: 1;
}

.card-icon {
  font-size: 2.5rem;
  color: #b81a27;
  margin-bottom: 20px;
}

.routine-card h4 {
  color: white;
  font-family: "Anton", sans-serif !important;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.routine-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === DETALLES (REQUISITOS / INDUMENTARIA) === */
.details-wrapper {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.detail-box {
  flex: 1;
  background: #141414;
  padding: 30px;
  border: 1px solid #333;
  min-width: 300px;
  position: relative;
  opacity: 0;
  /* Para animación */
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.detail-box h4 {
  font-family: "Anton", sans-serif !important;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-left: 4px solid #b81a27;
  padding-left: 15px;
}

/* Lista estilizada */
.dojo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dojo-list li {
  color: #ddd;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dojo-list li i {
  color: #b81a27;
  margin-top: 5px;
}

/* === CLASES DE ANIMACIÓN (JS) === */
.routine-card.visible,
.detail-box.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .routine-card {
    margin-bottom: 10px;
  }

  .details-wrapper {
    flex-direction: column;
  }
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Negro al 50% de opacidad */
  z-index: 1;
  /* Encima del video */
}

/*HORARIOS*/
/* === SECCIÓN HORARIOS === */
.schedule-section {
  background-color: #111;
  /* Fondo oscuro */
  padding: 10px 0;
  position: relative;
}

/* Contenedor de la tabla con scroll horizontal suave en móvil */
.table-responsive-custom {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

/* Estilos de la Tabla */
.dojo-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1a1a1a;
  color: #fff;
  font-family: "League Sparta", sans-serif;
  min-width: 800px;
  /* Fuerza el ancho mínimo para que no se rompa en móvil */
}

/* Encabezados (Días) */
.dojo-table thead th {
  background-color: #b81a27;
  /* Rojo Marca */
  color: white;
  padding: 15px;
  text-transform: uppercase;
  font-family: "Anton", sans-serif;
  letter-spacing: 1px;
  font-size: 1.1rem;
  border-bottom: 3px solid #000;
  text-align: center;
}

/* Celdas */
.dojo-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #333;
  border-right: 1px solid #222;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

/* Columna de Hora (Destacada) */
.dojo-table .time-col {
  background-color: #222;
  font-weight: bold;
  color: #b81a27;
  font-family: "Anton", sans-serif;
  border-right: 2px solid #b81a27;
}

/* Hover en filas para guiar la vista */
.dojo-table tbody tr:hover td {
  background-color: #252525;
}

/* Etiquetas Especiales (Juvenil / Femenino) */
.tag-juvenil {
  display: inline-block;
  padding: 4px 8px;
  background-color: #ffffff;
  color: #000;
  font-weight: bold;
  border-radius: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.tag-femenino {
  display: inline-block;
  padding: 4px 8px;
  background-color: #ff69b4;
  /* Rosado fuerte */
  color: white;
  font-weight: bold;
  border-radius: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.special-cell {
  background-color: rgba(184, 26, 39, 0.1);
  /* Fondo rojizo sutil */
  font-weight: bold;
}

/* Filas vacías o con guiones */
.dojo-table td:contains("-") {
  color: #444;
}

/* Scrollbar personalizado para la tabla */
.table-responsive-custom::-webkit-scrollbar {
  height: 8px;
}

.table-responsive-custom::-webkit-scrollbar-track {
  background: #111;
}

.table-responsive-custom::-webkit-scrollbar-thumb {
  background: #b81a27;
  border-radius: 4px;
}

/*GIF*/
.gif-igualado {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .gif-igualado {
    height: 250px;
    margin-bottom: 20px;
  }
}
