/* styles.css */

/* ESTO RESUELVE EL PROBLEMA INMEDIATAMENTE */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Asegura que todos los elementos se mantengan dentro del ancho */
* {
  box-sizing: border-box;
}

/* Definir la fuente Blacksword */
@font-face {
  font-family: 'Blacksword';
  src: url('./fonts/Blacksword.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

.logo {
  width: 20%;
  height: auto;
  /* ✅ mejor que usar porcentaje fijo en altura */
}

.text-justify-custom {
  text-align: justify;
}

#entrenamientos .card-img-top {
  width: 100%;
  height: 250px;
  /* ajusta este valor según el alto que quieras */
  object-fit: cover;
  border-radius: 8px;
  /* opcional, para bordes redondeados */
}

/* Sombra global para todas las secciones, navbar y footer */
section,
nav,
footer {
  box-shadow: 0 10px 40px -1px rgba(0, 0, 0, 0.2);
}

.section-full {
  min-height: 100vh;
}

/* Estilos para el carrusel hero */
#heroCarousel {
  z-index: 1;
}

#heroCarousel .carousel-item {
  transition: transform 1.2s ease-in-out, opacity 1.2s ease-in-out;
}

#heroCarousel .carousel-item video,
#heroCarousel .carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Asegura que el contenido del hero esté por encima del carrusel */
.hero-text {
  z-index: 2;
  position: relative;
  left: 20px;
}

/* Efecto de superposición para mejor legibilidad del texto */
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

#heroCarousel img {
  object-fit: cover;
  height: 100vh;
}

#hero .container {
  z-index: 2;
}

/* Fondo ajustado al texto y alineado a la izquierda */
.hero-text {
  left: 5%;
  background-color: rgba(16, 75, 132, 0.85);
  /* fondo azul semitransparente */
  padding: 20px;
  /* espacio interno */
  border-radius: 15px;
  /* bordes redondeados */
  width: 50%;
  padding-left: 10px;
}

.close-expand {
  background: none;
  /* sin fondo */
  border: none;
  /* sin borde */
  color: #fff;
  /* flecha blanca */
  font-size: 1.5rem;
  /* tamaño flecha */
  line-height: 1;
  /* altura compacta */
  cursor: pointer;
  padding: 5px;
}




/* ✅ Navbar delgada con logo más grande */
.navbar {
  background-color: #104B84 !important;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  min-height: 55px;
  max-width: 100vw;
  /* Evita desbordamiento horizontal */
  /* overflow-x: hidden; */
  /* Previene scroll horizontal */
}


/* Links compactos */
.navbar .nav-link {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  font-size: 0.9rem;
}

/* Logo más grande sin deformar */
.navbar .logo {
  height: 60px;
  width: auto;
  max-width: 150px;
  /* Límite máximo para el logo */
}


/* Eliminamos la transparencia y scroll effect */
.transparent-navbar,
.transparent-navbar.scrolled {
  background-color: #104B84 !important;
}

/* Estilos para el dropdown del navbar */
.navbar .dropdown-menu {
  background-color: #104B84;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  /* O el ancho que necesites */
  white-space: nowrap;
  min-width: 200px !important;
  /* Ancho mínimo adecuado */
  width: auto !important;
  /* Que se ajuste al contenido */
  white-space: nowrap;
  /* Evitar salto de línea */
  left: auto !important;
  /* Posicionamiento correcto */
  right: auto !important;
}

.navbar .dropdown-item {
  color: white;
  padding: 10px 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
  /* Texto en una sola línea */
  overflow: visible;
}

.navbar .dropdown-item:hover {
  /* background-color: #EC2023; */
  color: #104B84;
}

.navbar .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Mejorar la apariencia del dropdown en hover */
.navbar .nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

/* Ajustes para mobile */
@media (max-width: 991px) {
  .navbar .dropdown-menu {
    background-color: transparent;
    border: none;
    box-shadow: none;
  }

  .navbar .dropdown-item {
    padding-left: 30px;
  }

  .navbar-collapse {
    background-color: #104B84;
    margin-top: 10px;
    border-radius: 8px;
    padding: 10px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .navbar-toggler {
    padding: 4px 8px;
    font-size: 0.9rem;
  }

  /* Items del menú en móvil */
  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  .navbar .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    box-shadow: none;
    text-align: center;
  }

  .navbar .dropdown-item {
    color: white;
    padding: 8px 15px;
  }

  .navbar .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2);
  }
}

.gen-img {
  width: 700px;
  /* Ancho fijo */
  height: 500px;
  /* Alto fijo */
  object-fit: cover;
  /* Ajusta sin deformar */
  border-radius: 12px;
}

.carousel-control-prev {
  color: black;
}

@keyframes fade {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Cambiar color de todos los botones primarios */
.btn-primary {
  background-color: #EC2023;
  border-color: #EC2023;
}

.btn-primary:hover {
  background-color: #EC2023;
  border-color: #EC2023;
}

/* Estado inicial */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}

/* Estado final cuando entra en viewport */
.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/*entrenamientos*/
/* ==========================
   Tarjetas originales
========================== */
.custom-card {
  background-color: #EC2023;
  border: none;
  border-radius: 10px;
  transition: transform 0.0s ease-in-out;
  padding: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1;
}

.custom-card:hover {
  transform: translateY(-5px);
}

/* Imagen pequeña dentro de la tarjeta */
.custom-img {
  width: 50%;
  margin: 0 auto 15px auto;
  border-radius: 8px;
  display: block;
}

/* ==========================
   Contenido expandido
========================== */
.expandable-content {
  width: 70%;
  max-width: 1200px;
  background-color: #EC2023;
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  z-index: 1000;
  overflow-y: auto;
  max-height: 90vh;
  box-sizing: border-box;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Imagen grande dentro del contenido expandido */
.expandable-content .expanded-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* Tarjeta activa al expandirse */
.custom-card.active {
  transform: scale(1.5);
  z-index: 101;
}

/* Muestra el contenido expandido cuando la tarjeta está activa */
.custom-card.active .expandable-content {
  display: block;
}

/* Botón Cerrar */
.close-expand {
  margin-top: 15px;

}


/* generaciones graduadas */
/* Controles del carrusel en color negro */
#genCarousel .carousel-control-prev,
#genCarousel .carousel-control-next {
  filter: invert(1);
  /* Convierte el color blanco a negro */
}

#genCarousel .carousel-control-prev {
  justify-content: flex-start;
}

#genCarousel .carousel-control-next {
  justify-content: flex-end;
}

/* Ajustar tamaño y posición en dispositivos móviles */
@media (max-width: 768px) {

  #genCarousel .carousel-control-prev,
  #genCarousel .carousel-control-next {
    width: 15%;
  }

  #genCarousel .carousel-control-prev {
    left: -5px;
  }

  #genCarousel .carousel-control-next {
    right: -5px;
  }
}

/* Efecto hover para mejor interactividad */
#genCarousel .carousel-control-prev:hover,
#genCarousel .carousel-control-next:hover {
  opacity: 0.8;
}


#generaciones .carousel-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.gen-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
  .gen-img {
    max-height: 60vh;
    width: 95%;
    margin: 0 auto;
  }

  #generaciones .carousel-control-prev,
  #generaciones .carousel-control-next {
    width: 15%;
  }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .gen-img {
    max-height: 70vh;
  }
}

/* labor social */

/* .collage {
  animation: fade 10s infinite alternate;
} */

.collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 5px;
  max-width: 1200px;
  height: 600px;
  margin: 0 auto;
}

.slot {
  position: relative;
  overflow: hidden;
}


.slot img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* Comienza invisible */
  transition: opacity 0.8s ease-in-out;
  /* Transición suave de 0.8 segundos */
}

.slot img.active {
  opacity: 1;
  /* Se vuelve completamente visible */
}


/* forma tipo rompecabezas */
.slot1 {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.slot2 {
  grid-column: 3 / span 1;
  grid-row: 1 / span 2;
}

.slot3 {
  grid-column: 4 / span 1;
  grid-row: 1 / span 1;
}

.slot4 {
  grid-column: 4 / span 1;
  grid-row: 2 / span 1;
}

.slot5 {
  grid-column: 1 / span 4;
  grid-row: 3 / span 2;
}

/* carrucel */
/* Separar controles del contenido */
#gradCarousel .carousel-control-prev,
#gradCarousel .carousel-control-next {
  top: 50%;
  /* posición vertical centrada */
  transform: translateY(-50%) translateX(0);
  /* centrado exacto y sin tocar horizontal */
  width: 50px;
  /* opcional: ancho clickeable */
  height: 50px;
  /* opcional: alto clickeable */
}

/* Ajuste extra: aumentar separación horizontal */
#gradCarousel .carousel-control-prev {
  left: -60px;
  /* aleja el botón izquierdo del carrusel */
}

#gradCarousel .carousel-control-next {
  right: -60px;
  /* aleja el botón derecho del carrusel */
}


/* comentario */
/* Ajustar tamaño y dar aire a las fotos de perfil */
#gradCarousel .carousel-item .col-md-4 img {
  width: 120px;
  /* tamaño fijo más controlado */
  height: 120px;
  /* cuadrado */
  object-fit: cover;
  /* que no se deforme */
  margin-bottom: 15px;
  /* separa la foto del nombre */
  margin-top: 15px;
  /* separa la foto del borde superior */
}

/* Dar más espacio entre cada testimonio */
#gradCarousel .carousel-item .col-md-4 {
  padding: 30px 15px;
  /* más espacio vertical y horizontal */
}


/* contactanos */
.seccion-dividida {
  position: relative;
  /* necesario para que el rectángulo se posicione relativo a la sección */
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.mitad {
  flex: 1;
}

.arriba {
  background: url('/img/mapa late.png') no-repeat center center;
  background-size: cover;
}

.abajo {
  background: #104B84;
}

/* El rectángulo centrado */
.rectangulo {
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translate(-50%, -50%);
  width: 400px;
  /* ajusta tamaño */
  padding: 30px;
  background: white;
  /* color del rectángulo */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  z-index: 10;
  /* asegura que quede al frente */
  text-align: center;
}

/* iconos externos */
.iconos-externos {
  position: absolute;
  left: 15%;
  transform: translateX(-50%);
  bottom: calc(50% + 120px);
  /* quedan arriba del rectángulo, ajusta */
  display: flex;
  gap: 20px;
  z-index: 10;
}


.iconos-externos a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  /* antes 50px */
  height: 70px;
  /* antes 50px */
  background: white;
  border-radius: 50%;
  color: #104B84;
  font-size: 34px;
  /* antes 24px */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.3s, color 0.3s;
}


.iconos-externos a:hover {
  background: #104B84;
  /* cambia el fondo al pasar */
  color: white;
  /* y el ícono se vuelve blanco */
}


/* Estilos para controles del carrusel de testimonios */

/* Alternativa más simple - usando filter */
#gradCarousel .carousel-control-prev,
#gradCarousel .carousel-control-next {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

#gradCarousel .carousel-control-prev {
  left: -60px;
}

#gradCarousel .carousel-control-next {
  right: -60px;
}

/* Convierte las flechas blancas a negras usando filter */
#gradCarousel .carousel-control-prev-icon,
#gradCarousel .carousel-control-next-icon {
  filter: invert(1);
  /* Convierte blanco a negro */
  width: 30px;
  height: 30px;
}

#gradCarousel .carousel-control-prev:hover,
#gradCarousel .carousel-control-next:hover {
  opacity: 1;
  background: none;
}

/* Responsive */
@media (max-width: 768px) {
  #gradCarousel .carousel-control-prev {
    left: -30px;
  }

  #gradCarousel .carousel-control-next {
    right: -30px;
  }
}

/* ==========================
   Responsivo
========================== */
/* popup en desktop */
@media (min-width: 992px) {
  .expandable-content {
    width: 70%;
    /* mucho más ancho */
    max-width: 1200px;
    /* no dejes en none, ponle un límite */
  }

  .custom-card.active {
    transform: none;
    /* sin escalado extra */
  }
}


/*responsivo*/

@media (min-width: 992px) {
  .hero-text {
    width: 30%;
  }
}

iframe {
  border-radius: 20px;
}


@media (max-width: 768px) {
  .rectangulo {
    width: 80%;
    /* 80 % de la pantalla */
    /* pegado a la derecha */
    left: 5%;
    /* quitamos centrado */
    transform: translateY(-50%);
    /* solo centrado vertical */
    text-align: right;
    /* contenido alineado a la derecha */
  }

  .iconos-externos {

    /* quitamos centrado */
    transform: none;
    /* sin translate */
    justify-content: flex-end;
    /* iconos a la derecha */
  }
}

/* animacion hero */

#heroVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  /* Ensures video covers the area without stretching */
  z-index: 1;
  /* Keeps the video behind your content */
}

.hero-video.active {
  opacity: 1;
}

#hero {
  position: relative;
  overflow: hidden;
  background-color: #000;
}

/* logo */
/* Estilos para el logo en el hero */
.custom-logo {
  /* Ajusta estos valores según el tamaño deseado para tu logo */
  width: 150px;
  height: auto;
  margin: 0 auto;
}

.logo-hero {
  width: 100%;
  height: auto;
  display: block;
}

/* Técnica para ocultar texto visualmente pero mantenerlo accesible */
.custom-logo {
  position: relative;
  overflow: hidden;
}

.custom-logo::after {
  content: 'Late Por México';
  /* Texto original como respaldo */
  position: absolute;
  left: -10000px;
  /* Oculta el texto fuera de pantalla */
  top: 0;
  height: 0;
  overflow: hidden;
}

/* imagenes de filosofia */

/* Estilos adicionales para las imágenes */
.filosofia-img {
  width: 650px;
  height: 400px;
  object-fit: cover;
  max-width: 100%;
}

@media (max-width: 768px) {
  .filosofia-img {
    width: 100%;
    height: auto;
    max-height: 300px;
  }
}

.equipo-nombre {
  font-family: 'Blacksword', cursive, serif;
  /* You can add other properties like font-size or color if needed */
}

.equipo-cargo {
  font-style: italic;
}

/* Colores específicos para cada red social */
.iconos-externos a[href*="facebook"] i {
  color: #3b5998 !important;
  /* Azul de Facebook */

}

.iconos-externos a[href*="instagram"] i {
  /* Gradiente de Instagram */
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.iconos-externos a[href*="maps"] i {
  color: #ea4335 !important;
  /* Rojo de Google Maps */
}

.iconos-externos a i {
  transition: all 0.3s ease-in-out;
}

.iconos-externos a:hover i {
  transform: scale(1.1);
}

#contacto a {
  text-decoration: none;
}

/* ==========================
   AJUSTES DE ESPACIADO PARA MÓVIL
========================== */

@media (max-width: 768px) {

  /* Ajusta el espaciado entre secciones */
  .section-full {
    padding: 40px 0 !important;
    min-height: auto !important;
  }

  /* Espaciado específico para cada sección */

  #conocenos {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  #conocenos {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  #entrenamientos {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  #generaciones {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  #labor {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  #graduados {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  #faq {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  /* Ajusta los títulos */
  h1,
  h2,
  h3 {
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    padding-top: 10px;
  }

  /* Espacio después de los títulos principales */
  h1.fw-bold,
  h2.fw-bold {
    margin-bottom: 30px !important;
  }

  /* Mejora el espaciado de textos */
  p,
  .text-justify-custom {
    margin-bottom: 20px !important;
    line-height: 1.6;
  }

  /* Espaciado para botones */
  .btn {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    padding: 12px 25px !important;
  }

  /* Ajuste específico para botones en conocenos */
  #conocenos .btn {
    margin-bottom: 10px !important;
  }

  /* Espaciado para cards */
  .custom-card {
    margin-bottom: 25px !important;
    padding: 20px 15px !important;
  }

  /* Mejor espaciado en carruseles */
  .carousel {
    margin-top: 20px !important;
    margin-bottom: 30px !important;
  }

  /* Ajuste para el collage de labor social */
  .collage {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }

  /* Espaciado para accordion */
  .accordion-item {
    margin-bottom: 15px !important;
  }

  .accordion-body {
    padding: 20px !important;
  }

  /* Ajuste para testimonios */
  #gradCarousel .carousel-item .col-md-4 {
    padding: 20px 10px !important;
    margin-bottom: 15px !important;
  }

  /* Espacio entre elementos de formulario */
  .form-control,
  .form-select {
    margin-bottom: 15px !important;
  }

  /* Ajuste para el hero */
  #hero .container {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  /* Navbar spacing */
  /* .navbar {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  } */
}

/* SOLUCIÓN ALTERNATIVA RÁPIDA */
@media (max-width: 768px) {
  #hero {
    height: 100vh !important;
    min-height: 100vh !important;
    position: relative !important;
    overflow: hidden !important;
  }

  /* Reset completo de estilos conflictivos */
  #hero>* {
    height: 100vh !important;
    min-height: 100vh !important;
  }

  #heroCarousel,
  #heroCarousel .carousel-inner,
  #heroCarousel .carousel-item {
    height: 100vh !important;
    min-height: 100vh !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }

  /* Posiciona el texto en el centro */
  #hero .container {
    position: absolute !important;
    top: 45% !important;
    transform: translateY(-50%) !important;
  }

  #hero .container {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1000;
    width: 90% !important;
    height: auto !important;
    /* ¡IMPORTANTE! Que no ocupe toda la altura */
    min-height: auto !important;
    max-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  /* AJUSTE ESPECÍFICO DEL CUADRO DE TEXTO */
  .hero-text {
    width: 100% !important;
    height: auto !important;
    /* Que se ajuste al contenido */
    min-height: auto !important;
    max-height: 80vh !important;
    /* Límite máximo */
    left: 0 !important;
    position: relative !important;
    background-color: rgba(16, 75, 132, 0.9) !important;
    padding: 25px 20px !important;
    border-radius: 15px;
    margin: 0 auto !important;
    display: block !important;
    overflow: hidden !important;
  }

  /* Ajusta el contenido interno para que no ocupe espacio innecesario */
  .hero-text .display-3 {
    margin-bottom: 15px !important;
    height: auto !important;
  }

  .hero-text .lead {
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
  }



  /* Asegura que el logo no ocupe espacio excesivo */
  .logo-hero {
    max-width: 180px !important;
    height: auto !important;
    margin: 0 auto 15px auto !important;
  }

  #hero .hero-text .btn {
    width: fit-content;
    /* Ancho se ajusta al texto */
    min-width: auto;
    /* Elimina cualquier ancho mínimo */
    margin: 15px auto 5px;
    /* Centra el botón y añade espacio */
    padding: 12px 30px;
    /* Espacio interno cómodo */
    display: block;
    /* Asegura que ocupe su propia línea */
  }

}

/* ==========================
   AJUSTE DINÁMICO DE SECCIÓN AL EXPANDIR
========================== */

@media (max-width: 768px) {

  /* CONTENEDOR EXPANDIDO - POSICIÓN RELATIVA PARA NO SALIR DE LA SECCIÓN */
  .expandable-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    /* TAMAÑO OPTIMIZADO */
    width: 85vw !important;
    max-width: 85vw !important;
    height: auto !important;
    max-height: 70vh !important;

    /* SCROLL SI ES NECESARIO */
    overflow-y: auto !important;
    overflow-x: hidden !important;

    /* ESPACIADO */
    padding: 20px 15px !important;
    margin: 0 !important;

    /* ESTILOS */
    background: #EC2023 !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4) !important;
    z-index: 100 !important;

    box-sizing: border-box !important;
  }

  /* SECCIÓN ENTRENAMIENTOS - AJUSTE DINÁMICO */
  #entrenamientos {
    position: relative !important;
    min-height: 100vh !important;
    transition: min-height 0.3s ease !important;
    overflow: visible !important;
  }

  /* CUANDO UN CARD ESTÁ ACTIVO, LA SECCIÓN SE EXPANDE */
  #entrenamientos.has-expanded-card {
    min-height: 150vh !important;
    padding-bottom: 100px !important;
  }

  /* CONTENEDOR PRINCIPAL - PERMITIR CRECIMIENTO */
  #entrenamientos .container {
    position: relative !important;
    overflow: visible !important;
  }

  /* CARDS - POSICIÓN RELATIVA PARA EL CONTENIDO EXPANDIDO */
  .expandable-card {
    position: relative !important;
    margin-bottom: 15px !important;
  }

  /* CUANDO UN CARD ESTÁ ACTIVO, SE MUEVE ARRIBA PARA VISIBILIDAD */
  .expandable-card.active {
    z-index: 101 !important;
    transform: translateY(-50px) !important;
    transition: transform 0.3s ease !important;
  }

  /* OVERLAY DE FONDO DENTRO DE LA SECCIÓN */
  #entrenamientos::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 99 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
  }

  #entrenamientos.has-expanded-card::after {
    opacity: 1 !important;
  }

  /* TEXTO CON FUENTE MÁS PEQUEÑA */
  .expandable-content p {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    text-align: justify !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }


}