/* Import Altone Bold font */
@font-face {
  font-family: 'Altone';
  src: url('../fonts/Altone-Bold.woff2') format('woff2'),
       url('../fonts/Altone-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Importar fuentes */
@import url('https://fonts.googleapis.com/css2?family=Mont:ital,wght@0,400;1,400&display=swap');
@import url('https://fonts.cdnfonts.com/css/breda-two');

/* Estilos generales para el body y html */
html {
  height: 100%;
  overflow: visible;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

/* Sobrescribir estilos de Bootstrap para ocultar la barra de scroll */
::-webkit-scrollbar {
  display: none !important;
}

::-webkit-scrollbar-track {
  display: none !important;
}

::-webkit-scrollbar-thumb {
  display: none !important;
}

/* Ocultar la barra de scroll en Firefox */
* {
  scrollbar-width: none !important;
  scrollbar-color: transparent transparent !important;
}

/* Ocultar la barra de scroll en IE/Edge */
* {
  -ms-overflow-style: none !important;
}

/* Estilo para el ícono de fútbol */
.fas.fa-futbol {
  color: rgb(23, 136, 174) !important;
}

/* ======================
   HEADER MÓVIL
   ====================== */

.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 5px 0; /* Reducido el padding vertical para compensar el logo más grande */
  background: transparent;
  transition: all 0.3s ease;
  overflow: visible; /* Asegura que el logo no se recorte */
}

.mobile-header.scrolled {
  padding: 10px 0;
  background: #222D5A;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  padding-top: 10px; /* Añadido para bajar el contenido */
}

.mobile-logo {
  height: 160px; /* Aumentado aún más el tamaño del logo */
  margin-top: -50px; /* Ajuste para la posición vertical */
  margin-bottom: -35px; /* Ajuste para la posición vertical */
  display: flex;
  align-items: center;
  z-index: 1; /* Asegura que el logo esté sobre otros elementos */
}

.mobile-logo img {
  height: 100%;
  width: auto;
  max-width: none; /* Permite que el logo sea más ancho si es necesario */
  object-fit: contain; /* Asegura que la imagen se escale correctamente */
  transform: scale(1.2) translateX(-10px); /* Aumenta más la escala de la imagen y mueve 2px a la izquierda */
}

.sidebar-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease-in-out;
  z-index: 1001;
  padding-top: 60px; /* Asegura que el menú no tape el header */
}

.sidebar-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* Ocultar en escritorio */
@media (min-width: 992px) {
  .mobile-header,
  .mobile-nav {
    display: none;
  }
  .main-header {
    display: block;
  }
}

/* Ocultar en móviles */
@media (max-width: 991.98px) {
  .main-header {
    display: none;
  }
}

/* ======================
   ANIMACIÓN DEL HEADER
   ====================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  margin-bottom: 40px; /* Separación visual del contenido */
}

/* Añadir separación arriba de la sección de cursos */
#cursos {
  margin-top: 60px;
}

/* ======================
   HEADER MÓVIL
   ====================== */
/* Ocultar menú de hamburguesa de Bootstrap */
.navbar-toggler {
  display: none !important;
}

/* Asegurar que el navbar no ocupe espacio en móviles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    display: none !important;
  }
  
  .top-bar {
    display: none !important;
  }
  
  /* Ajustar el padding del main-header en móviles */
  .main-header {
    padding: 10px 0 !important;
  }
  
  /* Asegurar que el logo no se muestre en móviles */
  .navbar-brand {
    display: none !important;
  }
}

/* Mostrar elementos solo en escritorio */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
  
  .navbar-collapse {
    display: flex !important;
  }
}

.main-header.scrolled {
  background-color: rgba(0, 0, 0, 0.9) !important;
  padding: 10px 0;
}

.main-header.scrolled .navbar-brand img {
  height: 40px;
}

.main-header.scrolled .navbar-nav .nav-link {
  padding: 0.3rem 1rem;
  font-size: 0.9rem;
}

/* ======================
   ESTILOS DEL HEADER
   ====================== */
.navbar-brand {
  padding: 10px 0;
}

.navbar-brand img {
  height: 60px;
  transition: all 0.3s ease;
  position: relative;
  top: -23px; /* Mueve el logo 10px hacia arriba */
}

/* ======================
   ESTILOS BÁSICOS DEL FOOTER
   ====================== */
footer#contacto {
  background: #1a237e;
  min-height: 100px;
  width: 100%;
  display: block;
}

/* Estilos responsivos */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-legal {
    justify-content: center;
    margin-top: 10px;
  }
  
  .footer-column {
    margin-bottom: 30px;
  }
  
  .footer-column:last-child {
    margin-bottom: 0;
  }
}

/* Estilos para el botón de Acceder */
.hero .btn-primary {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.hero .btn-primary:hover {
  background: linear-gradient(45deg, #27ae60, #219653);
}

/* Estilos para la barra de desplazamiento */
html {
  scrollbar-width: thin;
  scrollbar-color: #2a5298 #f1f1f1;
}

/* Webkit (Chrome, Edge, Safari) */
html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: #f1f1f1;
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 5px;
  transition: all 0.3s ease;
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #2a5298 #f1f1f1;
}

/* Reset y fuente básica */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: rgba(0, 0, 0, 0.4); /* negro con transparencia */
  color: #333;
  margin: 0;
  padding: 0;
}

/* Animación RGB */
@keyframes rgbAnimation {
  0% { background-color: #1a237e; }
  25% { background-color: #0d47a1; }
  50% { background-color: #1565c0; }
  75% { background-color: #1976d2; }
  100% { background-color: #1a237e; }
}

/* ================================= 
  Base Styles */
  
/* Estilos para los títulos de sección del footer */
.footer-title {
  color: #ffffff;
  font-family: 'Bungee', cursive;
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 50px;
  display: flex;
  align-items: flex-end;
  position: relative;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: rgb(23, 136, 174);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.footer-column:hover .footer-title::after {
  width: 80px;
}
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  padding: 5px 0;
  font-size: 12px;
  color: #fff;
  z-index: 1001;
}

.top-bar .container {
  padding: 0 15px !important;
}

.top-bar .top-bar-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 15px;
  margin: 0 !important;
}

.social-links .social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.3s ease;
  font-size: 1.3rem;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 3px !important;
  line-height: 1 !important;
  vertical-align: middle;
}

.social-links {
  display: flex;
  align-items: center;
  margin-right: 30px;
}

/* Estilos de íconos sociales movidos a la sección de footer */

.contact-info {
  display: flex;
  gap: 15px;
  align-items: center;
}

.contact-item {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 5px;
  background-color: rgba(29, 29, 29, 0.3);
  transition: all 0.3s ease;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(185, 168, 168, 0.1);
  height: 34px;
  margin-left: -10px;
  user-select: text
}

.contact-item i {
  font-size: 15px;
  margin-right: 6px;
}

.contact-button.facebook {
  background-color: #ffffff; /* Fondo blanco */
  color: #000000; /* Texto negro */
  border: 1px solid #dddddd;
}

.contact-button.facebook i {
  color: #3b5998; /* Azul de Facebook */
  margin-right: 8px;
}

/* Estilos para el botón de WhatsApp en la barra superior */
.contact-item.whatsapp {
  background-color: rgba(29, 29, 29, 0.3);
  color: #ffffff; /* Texto blanco */
  transition: all 0.3s ease;
}

.contact-item.whatsapp i {
  color: #ffffff; /* Icono blanco */
  margin-right: 8px;
}

.contact-item.whatsapp:hover {
  background-color: #568560; /* Gris oscuro al hacer hover */
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-item:not(.whatsapp):hover {
  background-color: #24326b;
  color: #fff;
  border-color: #222D59;
}

/* Main Header Styles */
.main-header {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-header.sticky {
  position: fixed;
  top: 0;
  background: #222D5A;
  animation: slideDown 0.5s;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.navbar {
  padding: 5px 0; /* Reducido el padding vertical */
  transition: all 0.3s;
  min-height: 50px; /* Reducida la altura mínima del navbar */
  display: flex;
  align-items: center;
}

.navbar-brand {
  padding: 0;
  margin: 0 0 0 70px; /* Aumentado margen izquierdo a 70px */
  height: 50px; /* Reducida la altura del contenedor de la marca */
  display: flex;
  align-items: center;
}

/* Estilos del logo en la barra de navegación */
.navbar-brand img {
  height: 100px; /* Tamaño original */
  width: auto; /* Mantiene la proporción */
  max-width: 100%;
  transition: all 0.3s;
  object-fit: contain;
  margin-top: -8px; /* Ajuste fino para centrarlo verticalmente */
}

/* Aumentar ligeramente el tamaño del logo solo en PC */
@media (min-width: 992px) {
  .navbar-brand img {
    height: 120px; /* Aumentado ligeramente el tamaño */
    margin-top: -20px; /* Ajuste fino para centrarlo verticalmente */
  }
}

.navbar-nav {
  gap: 15px;
}

/* Estilo más específico para los enlaces del menú */
.navbar-nav .nav-item .nav-link {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 1.5rem !important; /* Tamaño aumentado */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff !important; /* Blanco puro */
  padding: 0.5rem 1.2rem;
  margin: 0 0.5rem;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  display: block; /* Asegura que el tamaño se aplique correctamente */
  line-height: 1.2; /* Mejora la legibilidad */
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 5px;
  left: 0;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover:after {
  width: 100%;
  animation: rgbAnimation 2s linear infinite;
  background: none;
  background-color: #222D59;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item.active .nav-link:hover {
  color: #222D59 !important;
  background: none;
  -webkit-text-fill-color: #222D59;
  text-shadow: none;
  transition: all 0.3s ease;
}

.nav-link.active {
  color: #fff !important;
}

/* Slider Principal */
.slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Indicadores del Slider con estilo moderno */
.slider-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.slider-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
}

.slider-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

.slider-indicators .indicator.active {
  background: #ffffff; /* Color del encabezado principal */
  width: 30px; /* Se hace más ancho */
  border-radius: 10px; /* Forma de píldora */
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7), 0 0 5px rgba(255, 255, 255, 0.8);
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out; /* Aumentado de 0.8s a 1.5s */
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  margin: 0;
  padding: 0;
  min-width: 100%;
  min-height: 100%;
}

/* Estilos específicos para el video de fondo en PC */
.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
  background: #000; /* Fondo negro mientras carga el video */
}

/* Asegurar que el video no se desborde en pantallas grandes */
@media (min-width: 768px) {
  .video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Bajar el contenido del primer slider en PC */
  .slide.active .hero-texto {
    padding-top: 100px;
  }
}

.slider-content {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Estilos para el contenido del slide */
.hero-texto {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Animación para el primer slide (aparece y se acomoda) */
@keyframes appearAndSettle {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación para el texto "INSCRÍBETE HOY" (de abajo hacia arriba) */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación de telón para los botones */
@keyframes curtain {
  0% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Animación para el menú y logo */
@keyframes menuAppear {
  0% {
    opacity: 0;
    transform: translateY(-15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación para el segundo slide (aparece y se acomoda) */
@keyframes appearAndSettle2 {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación para el tercer slide (desde arriba) */
@keyframes slideFromTop2 {
  0% {
    opacity: 0;
    transform: translateY(-80px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para el contenido del primer slide */
.slide:nth-child(1).active .hero-imagen-container {
  animation: appearAndSettle 0.8s ease-out forwards;
}

.slide:nth-child(1).active h1 {
  animation: appearAndSettle 0.8s ease-out forwards;
}

/* "INSCRÍBETE HOY" se mueve de abajo hacia arriba */
.slide:nth-child(1).active .texto-inscripcion {
  animation: slideUp 0.8s ease-out forwards;
}

/* Animación de telón para los botones */
.slide:nth-child(1).active .boton-efecto {
  animation: curtain 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

/* Asegurar que los elementos estén en su posición normal cuando no están activos */
.slide:not(.active) .hero-imagen-container,
.slide:not(.active) h1,
.slide:not(.active) .texto-inscripcion,
.slide:not(.active) .boton-efecto {
  transform: none;
  opacity: 1;
}

/* Animación para el menú y logo */
.navbar-brand,
.navbar-nav .nav-link,
.social-links .social-icon,
.contact-info .contact-item {
  animation: menuAppear 0.6s ease-out forwards;
}

/* Asegurar que el menú y logo estén en su posición normal cuando no están activos */
.navbar-brand:not([data-animated]),
.navbar-nav .nav-link:not([data-animated]),
.social-links .social-icon:not([data-animated]),
.contact-info .contact-item:not([data-animated]) {
  transform: none;
  opacity: 1;
}

/* Estilos para el contenido del segundo slide */
.slide:nth-child(2).active .slider2-image {
  animation: appearAndSettle2 1.5s ease-out forwards;
}

/* Ajustes para móvil del slider2-image */
@media (max-width: 767.98px) {
  .slider2-image, .slider3-image {
    width: 95% !important;
    max-width: 95% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block;
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1) !important;
    transform-origin: center center;
    opacity: 0;
  }
  
  /* Asegurar que la animación funcione en móvil */
  .slide:nth-child(2).active .slider2-image,
  .slide:nth-child(3).active .slider3-image {
    animation: appearAndSettle2 1.5s ease-out forwards;
    opacity: 1;
  }
  
  /* Asegurar que las imágenes del tercer slide tengan el mismo estilo */
  .slider3-image {
    position: relative;
    top: 50%;
    transform: translate(-50%, -50%) !important;
  }
}

/* Estilos para el contenido del tercer slide */
.slide:nth-child(3).active .slider3-image {
  animation: appearAndSettle2 2.5s ease-out forwards;
}

.slide:nth-child(3) .slider3-image {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.slide:nth-child(3) .img-titulo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px;
  animation: slideUp 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.slide:nth-child(3).active .slider3-image {
  animation: slideFromTop2 0.8s ease-out forwards;
}

/* Ajustes para móvil del slider3-image */
@media (max-width: 767.98px) {
  .slide:nth-child(3) .slider3-image,
  .slide:nth-child(3).active .slider3-image {
    width: 85% !important;
    max-width: 85% !important;
    height: auto !important;
    position: absolute;
    top: 210px;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5) !important;
    transform-origin: center center;
  }
}

/* Asegurar que el contenido no se mueva cuando no está activo */
.slide:not(.active) .hero-imagen-container,
.slide:not(.active) h1,
.slide:not(.active) .contenedor-barras,
.slide:not(.active) .botones-modernos,
.slide:not(.active) .slider2-image,
.slide:not(.active) .slider3-image {
  transform: none;
  opacity: 1;
}

/* Flechas de navegación */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Ajuste de posición de flechas en móvil */
@media (max-width: 767.98px) {
  .slider-arrow {
    top: 70% !important; /* Asegurando que se aplique la posición */
    transform: translateY(-50%) !important; /* Manteniendo la alineación vertical */
  }
}

.slider-arrow:hover {
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.prev-arrow {
  left: 20px;
}

.next-arrow {
  right: 20px;
}

/* Indicadores */
.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #1a237e; /* Color del encabezado principal */
  width: 30px; /* Se hace más ancho */
  border-radius: 10px; /* Forma de píldora */
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7), 0 0 5px rgba(255, 255, 255, 0.8);
}

.slider2-image,
.slider3-image {
  max-width: 80%;
  max-height: 70vh;
  border-radius: 8px;
  background: transparent;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  box-shadow: none;
  border: none;
}

/* Hero Slider */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 5px rgba(255,255,255,0.5), 0 0 10px rgba(0, 200, 255, 0.3);
  }
  to {
    text-shadow: 0 0 10px rgba(255,255,255,0.7), 0 0 20px rgba(0, 150, 255, 0.4);
  }
}


.hero-texto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  padding: 20px;
  box-sizing: border-box;
  margin: 0;
}

.hero-imagen-container {
  margin: 20px 0;
  padding: 0;
  display: block;
  text-align: center;
  width: 100%;
  background: none !important; /* Elimina cualquier fondo */
}

/* Estilos para la imagen de temporada */
.imagen-temporada {
  display: block;
  margin: 15px 182px 0;
  max-width: 850px; /* Aumentado de 650px */
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: none;
  position: relative;
  top: 50px; /* Aumentado de 15px */
  background: none !important;
  mix-blend-mode: normal;
}

/* Ajuste para móviles */
@media (max-width: 991.98px) {
  .imagen-temporada {
    max-width: 300px;
    top: 15px; /* Mantenemos el valor original para móviles */
  }
}

/* Estilos para el contenedor de barras y texto */
.contenedor-barras {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: -5px 0 15px; /* Sube el contenedor y ajusta el margen inferior */
}

.barra-horizontal {
  width: 80px;
  height: 3px;
  background-color: white;
  position: relative;
  top: -8px; /* Aumentado de -5px a -10px para subir más las barras */
}

.imagen-inscripcion {
  height: 75px; /* Tamaño aumentado para escritorio */
  width: auto;
  margin: 0 auto; /* Centrar la imagen */
  display: block;
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
  object-fit: contain;
}

/* Ajustes para escritorio */
@media (min-width: 992px) {
  .imagen-inscripcion {
    height: 60px; /* Reducido ligeramente de 75px */
    margin: -12px 0 0 20px; /* Subir ligeramente y mover a la derecha */
  }
}

/* Asegurar que la imagen herede las mismas animaciones que el texto */
.slide.active .imagen-inscripcion {
  animation: slideUp 0.5s ease-out forwards;
  animation-delay: 0.4s;
}

.slide:not(.active) .imagen-inscripcion {
  opacity: 0;
  transform: translateY(20px);
}

/* Ajustes para móvil */
@media screen and (max-width: 768px) {
  .hero .contenedor-barras .imagen-inscripcion {
    height: 60px !important; /* Tamaño reducido para móvil */
    width: auto !important;
    max-width: 100% !important;
  }
  
  /* Oscurecer imágenes de fondo en móvil */
  .slider .slide-bg.d-md-none {
    filter: brightness(0.55); /* Oscurece la imagen (0.6 = 60% de brillo) */
  }
  
  /* Ajustes para el contenido del primer slider en móvil */
  .hero .slider .hero-texto {
    padding-top: 60px; /* Ajusta este valor según necesites */
  }
  
  /* Agrandar la imagen de temporada en móvil */
  .hero .imagen-temporada {
    max-width: 100% !important;
    margin: 0 0 5px 15px !important; /* Mueve la imagen 15px a la derecha */
    transform: scale(1.6); /* Aumenta el tamaño al 150% */
    display: block; /* Asegura que el margen se aplique correctamente */
  }
  
  /* Subir la sección de inscripción y botones */
  .hero .contenedor-barras {
    margin-top: -21px !important; /* Sube la sección */
  }
  
  .hero .botones-modernos {
    margin-top: 5px !important; /* Ajusta el espacio superior de los botones */
  }
}

.linea {
  display: inline-block;
  width: 2px;
  height: 40px;
  background-color: white;
  position: relative;
}

/* Estilos para el título en escritorio */
.titulo-escritorio {
  width: 100%;
  margin: 10px 0;
  padding: 0;
  text-align: left;
  position: relative;
  left: -70px; /* Movemos todo el contenedor a la izquierda */
}

/* Estilos para el título en escritorio */
.titulo-escritorio {
  width: 100%;
  text-align: center; /* Centramos el contenedor */
  margin: 10px 0;
  padding: 0;
  position: relative;
  left: 0; /* Reseteamos el desplazamiento a la izquierda */
}

.titulo-escritorio .texto-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 auto; /* Centramos el texto */
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  text-align: center; /* Centramos el texto */
  display: block; /* Cambiado a block para centrado */
  padding: 0;
  position: relative;
  left: 8px; /* Movido 5px a la derecha */
  transform: none;
}



.titulo-movil {
  display: none; /* Oculto por defecto */
  margin: 10px 0;
  text-align: center;
  width: 100%;
}

.titulo-movil .img-titulo {
  max-width: 110%; /* Reducido de 120% */
  width: 110%; /* Reducido de 120% */
  height: auto;
  max-height: 55px; /* Reducido de 60px */
  margin: 0 auto 0 -15px; /* Añadido margen izquierdo de 5px */
  display: block;
  transform: translateX(-4%); /* Ajustado para centrar */
  animation: appearAndSettle2 0.8s ease-out forwards;
  opacity: 0;
}

/* Mostrar solo el título de escritorio en pantallas grandes */
@media (min-width: 768px) {
  .titulo-escritorio {
    display: block;
  }
  
  .titulo-movil {
    display: none;
  }
}

/* Mostrar solo la imagen en móviles */
@media (max-width: 767.98px) {
  .titulo-escritorio {
    display: none;
  }
  
  .titulo-movil {
    display: block;
    padding: 0 10px;
    margin-top: 25px; /* Añadido para bajar la imagen */

  }
}

.hero-texto p {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  margin: 0.5rem 0 1.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
  color: #f5f5f5;
  opacity: 0.9;
}
/* Contenedor de botones modernos */
.botones-modernos {
  display: flex;
  justify-content: center;
  gap: 20px; /* Reducido de 35px a 20px */
  margin: 0 0 10px;
  padding: 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
  transform: translateY(-12px);
  top: -12px;
}

/* Ajuste para móvil */
@media (max-width: 767.98px) {
  .botones-modernos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Reducido de 12px a 8px para móviles */
    padding: 0 20px;
    width: 100%;
    max-width: 200px; /* Reducido de 260px */
    margin: 0 auto;
  }
  
  .boton-efecto {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.95rem;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap; /* Evita que el texto se parta en varias líneas */
  }
  
  .boton-efecto span {
    display: inline;
    text-align: center;
  }
  
  /* Asegurar que el icono no cause saltos de línea */
  .boton-efecto i {
    margin-left: 5px;
  }
}

/* Estilo para los botones */
.boton-efecto, .boton-destacado {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  margin: 0 10px;
  font-family: 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 0.8rem;
  color: #000000;
  text-decoration: none;
  background-color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-shadow: none;
  -webkit-text-stroke: 0;
  -webkit-text-fill-color: #000000;
  white-space: nowrap;
}

/* Solo reducimos el tamaño de la letra en móviles */
@media (max-width: 768px) {
  .boton-efecto, .boton-destacado {
    font-size: 0.8rem;
  }
}

/* Efecto hover simple */
.boton-efecto:hover, .boton-destacado:hover {
  color: #000000;
  background-color: #f0f0f0;
  text-decoration: none;
}

/* Estilos para los botones del segundo slider */
.slider-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Estilos base para los botones del slider 2 */
.botones-slider2 {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 5;
  flex-wrap: wrap;
}

/* Ajuste SOLO para escritorio */
@media (min-width: 992px) {
  .botones-slider2 {
    bottom: 130px; /* Sube los botones más arriba SOLO en escritorio */
  }
}

/* Ajustes para escritorio */
@media (min-width: 992px) {
  .botones-slider2 {
    transform: translateX(15px); /* Mueve los botones a la derecha */
  }
}

/* Ajustes para móvil */
@media (max-width: 991.98px) {
  .botones-slider2 {
    transform: none;
  }
}

/* Animación para botones */
@keyframes fadeInUpButtons {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos base para los botones del slider */
.btn-slider2 {
  background-color: #ffffff;
  color: #000000;
  padding: 8px 5px;
  font-weight: bold;
  font-size: 10px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  min-width: 120px;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-sizing: border-box;
  line-height: 1.2;
}

.btn-slider2:hover {
  background-color: #f2f2f2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos para los botones del landing */
.botones-landing {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  width: 100%;
}

.botones-landing {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px; /* Aumentado de 20px */
  flex-wrap: wrap;
  position: relative;
  left: 17px; /* Mueve los botones a la derecha */
  top: 0px; /* Mueve los botones ligeramente hacia abajo */
}

/* Ajustes para móvil */
@media (max-width: 991.98px) {
  .botones-landing {
    left: 0;
    top: 0;
    margin-top: 20px;
  }
}

.btn-custom {
  background-color: #ffffff;
  color: #000000;
  padding: 12px 24px;
  font-weight: bold;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  min-width: 160px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: fadeInUpButtons 0.6s ease-out forwards;
  opacity: 0;
  animation-delay: 0.5s;
  will-change: transform, opacity;
}

.botones-modernos a:nth-child(2),
.botones-landing a:nth-child(2) {
  animation-delay: 0.7s !important;
}

.btn-custom:hover {
  background-color: #f2f2f2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-custom:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Estilos para el título de cursos */
.titulo-cursos {
  text-align: center;
  margin-bottom: 30px;
}

.titulo-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

/* Estilos para escritorio (PC) */
@media (min-width: 992px) {
  .titulo-cursos .titulo-contenedor {
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    gap: 15px;
  }
  
  .titulo-cursos .texto-cursiva {
    display: inline-block !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    font-size: 2.5rem !important;
    color: #ffffff !important;
  }
  
  .titulo-cursos .texto-negrita {
    display: inline-block !important;
    font-size: 2.5rem !important;
    color: #1788ae !important;
  }
}

/* Estilos por defecto para móvil */
.texto-cursiva {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-size: 1.5rem;
  color: #ffffff;
  display: block;
}

.texto-negrita {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #1788ae;
  display: block;
  line-height: 1;
}

.subtitulo-cursos {
  font-family: 'Montserrat', sans-serif;
  color: #555;
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
  display: none; /* Oculto por defecto */
}

/* Estilos específicos para el título en móviles */
@media (max-width: 768px) {
  /* Estilo para el título principal */
  section#cursos .titulo-cursos {
    margin-bottom: 10px !important;
    margin-top: -10px !important;
  }
  
  /* Estilo para el texto 'CURSOS' */
  section#cursos .titulo-cursos .texto-cursiva {
    font-size: 0.9rem !important;
    margin-bottom: -5px !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #333 !important;
    line-height: 1 !important;
    display: block !important;
  }
  
  /* Estilo para el texto 'DISPONIBLES' */
  section#cursos .titulo-cursos .texto-negrita {
    font-size: 1.2rem !important;
    margin-top: -5px !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #1788ae !important;
    line-height: 1 !important;
    display: block !important;
  }
  
  /* Estilo para el subtítulo */
  section#cursos .titulo-cursos .subtitulo-cursos {
    color: #CBD5E1 !important; /* Color blanco para el subtítulo */
    font-size: 0.9rem !important;
    margin-top: 5px !important;
    display: block !important;
    font-family: 'Montserrat', sans-serif !important;
  }
}

/* Estilos responsivos para móviles */
@media (max-width: 768px) {
  /* Regla más específica para el título de cursos en móviles */
  #cursos .titulo-cursos .titulo-contenedor .texto-cursiva,
  section#cursos .titulo-cursos .titulo-contenedor .texto-cursiva,
  .seccion#cursos .titulo-cursos .titulo-contenedor .texto-cursiva {
    font-size: 1.6rem !important; /* Aumentado de 1.1rem a 1.3rem */
    margin-bottom: -5px;
    font-family: 'Montserrat', sans-serif !important;
    color: #ffffff !important;
    display: inline-block !important;
  }
  
  #cursos .titulo-cursos .titulo-contenedor .texto-negrita,
  section#cursos .titulo-cursos .titulo-contenedor .texto-negrita,
  .seccion#cursos .titulo-cursos .titulo-contenedor .texto-negrita {
    font-size: 1.8rem !important; /* Aumentado de 1.3rem a 1.5rem */
    margin-top: -5px;
    font-family: 'Montserrat', sans-serif !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    display: inline-block !important;
  }
  
  .seccion#cursos .titulo-cursos {
    margin-bottom: 10px;
    margin-top: -10px;
  }
  
  .subtitulo-cursos {
    display: block;
    font-size: 0.9rem;
    padding: 0 15px;
    margin-top: 10px;
  }
  .botones-slider2 {
    padding: 0 15px;
    gap: 8px;
    bottom: -100px; /* Aumentado de 10px a 20px para móviles */
  }
  
  .btn-slider2 {
    font-size: 9px;
    padding: 6px 4px;
    min-width: 110px;
    height: 32px;
  }
  
  .botones-landing {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: -15px;
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
  }

  .btn-custom {
    width: 100%;
    max-width: 180px;
    padding: 6px 12px;
    font-size: 12px;
    min-width: 0;
    white-space: nowrap;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    -webkit-text-fill-color: #000000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: bold !important;
    letter-spacing: normal !important;
  }
  
  .slider-arrow {
    top: 63% !important;
  }
}

/* Eliminar iconos y efectos */
.boton-efecto i, .boton-efecto:hover i {
  display: none;
}

/* Eliminar pseudo-elementos */
.boton-efecto::after, .boton-efecto:hover::after,
.boton-efecto::before, .boton-efecto:hover::before {
  content: none;
  display: none;
}

.hero-texto .btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.hero-texto .btn:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 35px rgba(255, 0, 132, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-texto .btn:hover:before {
  left: 100%;
}

.hero-texto .btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ff512f, #dd2476);
  z-index: -2;
  border-radius: 50px;
  transition: all 0.5s ease;
}

.hero-texto .btn:hover:after {
  background: linear-gradient(45deg, #dd2476, #ff512f);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 132, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 0, 132, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 132, 0);
  }
}

.hero-texto .btn:hover {
  animation: pulse 2s infinite;
}

/*Cursos que corren lentamente*/

.seccion#cursos {
  background: #222D5A;
  padding: 60px 0;
  color: white;
  margin-top: -1px; /* Elimina la línea blanca entre secciones */
}

.seccion#cursos h2 {
  color: white;
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  font-weight: 600; 
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slider-cursos {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px 40px;
}

.curso-wrapper {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 10px 0;
  flex-wrap: wrap;
  animation: slideCursos 80s linear infinite;
}

@keyframes slideCursos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Estilos para móvil */
@media (max-width: 991.98px) {
  .curso-wrapper {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: none;
  }
  
  /* Mostrar solo los primeros 3 cursos en móvil */
  .curso-wrapper .card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: none;
  }
  
  /* Mostrar solo los primeros 3 cursos */
  .curso-wrapper .card:nth-child(1),
  .curso-wrapper .card:nth-child(2),
  .curso-wrapper .card:nth-child(3) {
    display: block;
  }
  
  /* Clase para mostrar todos los cursos */
  .curso-wrapper.mostrar-todos .card {
    display: block;
  }
  
  /* Estilos para el botón de mostrar más */
  .mostrar-mas-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 35px 0 -30px 0; /* Ajustado margen superior a 15px e inferior a 3px */
    padding: 0 15px;
  }
  
  .btn-mostrar-mas {
    background: #485792;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(17, 81, 118, 0.3);
  }
  
  .btn-mostrar-mas:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 84, 175, 0.4);
  }
  
  .btn-mostrar-mas i {
    transition: transform 0.3s ease;
  }
  
  .btn-mostrar-mas.activo i {
    transform: rotate(180deg);
  }
}



/* Efecto de rastro en movimiento */
@keyframes trailEffect {
  0%, 100% {
    box-shadow: 0 0 15px rgba(15, 10, 112, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(39, 19, 125, 0.7), 0 0 45px rgba(52, 152, 219, 0.5);
    transform: scale(1.02);
  }
}



/* Retraso escalonado para el efecto de rastro */
.curso-wrapper .card:nth-child(1) { animation-delay: 0.1s; }
.curso-wrapper .card:nth-child(2) { animation-delay: 0.2s; }
.curso-wrapper .card:nth-child(3) { animation-delay: 0.3s; }
.curso-wrapper .card:nth-child(4) { animation-delay: 0.4s; }
.curso-wrapper .card:nth-child(5) { animation-delay: 0.5s; }
.curso-wrapper .card:nth-child(6) { animation-delay: 0.6s; }
.curso-wrapper .card:nth-child(7) { animation-delay: 0.7s; }

.card {
  flex: 0 0 auto;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 0;
  text-align: center;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  /* Efecto de rastro */
  will-change: transform, box-shadow;
  transform-origin: center;
}

/* Efecto de resplandor al hacer hover */
.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  background: linear-gradient(45deg, #5098c1, #cacaca, #315197, #f3f6f7);
  background-size: 400%;
  border-radius: 14px;
  opacity: 0;
  transition: all 0.5s ease;
  animation: animate 8s linear infinite;
  filter: blur(8px);
  transform: scale(0.95);
  pointer-events: none;
  border: 2px solid #000000; /* Borde negro añadido */
}

@keyframes animate {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 300% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.card img {
  width: 100%;
  height: 200px; /* Aumenté la altura para mejor visualización */
  object-fit: cover;
  object-position: center; /* Asegura que la parte central de la imagen sea visible */
  border-radius: 10px 10px 0 0;
  margin: 0;
  padding: 0;
  display: block;
  transition: transform 0.3s ease; /* Suave transición al hacer hover */
}

/* Asegurar que las imágenes se ajusten correctamente en móviles */
@media (max-width: 768px) {
  .card img {
    height: 180px;
  }
}

/* Asegurar que las imágenes mantengan su relación de aspecto */
.card {
  overflow: hidden; /* Evita que la imagen se salga de la tarjeta */
}

.card-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  font-family: 'Urbanist', sans-serif;
}

.card h3 {
  color: #000;
  font-size: 1.1rem;
  margin: 0.8rem 0;
  min-height: 3.5em;
  font-family: 'Urbanist', sans-serif;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  text-align: center;
  padding: 0 5px;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: keep-all;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

.card p {
  color: #333;
  font-size: 0.9rem;
  margin: 0 0 1.2rem 0;
  flex-grow: 1;
  line-height: 1.5;
  font-family: 'Sanchez', serif;
  font-style: italic;
}

.precio {
  color: #2ecc71;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.8rem 0;
}

.btn-inscribirse {
  display: inline-block;
  background: linear-gradient(45deg, #ff512f, #dd2476);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto;
}

.btn-inscribirse:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 0, 132, 0.5);
  background: linear-gradient(45deg, #dd2476, #ff512f);
}

.btn-inscribirse:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
  background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 30px rgba(46, 204, 113, 0.5);
  z-index: 2;
  border: 2px solid #000000; /* Borde negro al hacer hover */
}

.card:hover::before {
  opacity: 0.8;
  transform: scale(1.02);
  filter: blur(10px);
}

/* Efecto de rastro al pasar el mouse */
.curso-wrapper {
  perspective: 1000px;
}

.curso-wrapper .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curso-wrapper:hover .card {
  animation: trailEffect 2s ease-in-out infinite;
  animation-play-state: running;
}

.curso-wrapper .card:not(:hover) {
  animation: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ESTILOS PARA SECCIÓN DE TESTIMONIOS */
.testimonios-seccion {
  background: #F4F1ED;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.testimonios-titulo {
  text-align: center;
  color: #fff;
  margin-bottom: 50px;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

.testimonios-titulo .texto-cursiva {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 2.5rem;
  color: #ffffff;
  display: block;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: textGlow 2s ease-in-out infinite;
}

/* Título de la sección de testimonios - Estilo específico para NUESTROS PONENTES */
section.testimonios-seccion .testimonios-titulo .texto-negrita {
  font-family: "Altone", sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  color: #2B2B2B !important;
  font-size: 3rem !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1) !important;
  display: block !important;
  animation: none !important;
}

/* Estilo para el texto "RECORRIDO DE" */
section.testimonios-seccion .testimonios-titulo .texto-cursiva {
  font-family: 'Mont', sans-serif !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: #2B2B2B !important;
  font-size: 2.8rem !important; /* Aumentado de 2.1rem a 2.3rem */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) !important;
  display: block !important;
  margin-bottom: 5px !important;
}

.card-content .btn-inscribirse {
  display: inline-block !important;
  padding: 12px 24px !important;
  text-decoration: none !important;
  color: #fff !important;
  background: #222D5A !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  text-align: center !important;
  width: 100% !important;
  margin-top: 15px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

/* Alinear botones de los primeros 3 cursos en PC */
@media (min-width: 992px) {
  .curso-wrapper .card:nth-child(1) .btn-inscribirse,
  .curso-wrapper .card:nth-child(2) .btn-inscribirse,
  .curso-wrapper .card:nth-child(3) .btn-inscribirse {
    position: absolute;
    bottom: 35px;
    left: 28px;
    right: 28px;
    margin-top: 0;
    width: calc(100% - 60px) !important; /* Mismo ancho que los demás botones */
  }
  
  .curso-wrapper .card:nth-child(1),
  .curso-wrapper .card:nth-child(2),
  .curso-wrapper .card:nth-child(3) {
    position: relative;
    padding-bottom: 70px; /* Espacio para el botón */
  }
}

.card-content .btn-inscribirse:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  background: #222D5A !important;
  color: #fff !important;
}

/* Estilo para el título de cursos */
.titulo-cursos {
  text-align: center;
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 5px;
}

.titulo-cursos .texto-cursiva {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 2rem;
  color: #ffffff;
  display: inline;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: textGlow 2s ease-in-out infinite;
}

/* Estilo para 'CURSOS' - En la misma línea que 'DISPONIBLES' */
#cursos .titulo-cursos .texto-cursiva,
section#cursos .titulo-cursos .texto-cursiva,
.seccion#cursos .titulo-cursos .texto-cursiva {
  font-family: 'Mont', sans-serif !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: #ffffff !important;
  font-size: 3rem !important;  /* Aumentado de 2.6rem a 2.8rem */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
  display: inline !important;
  margin-right: 12px !important;  /* Aumentado ligeramente el espacio */
  margin-bottom: 0 !important;
  vertical-align: middle;  /* Mejora la alineación vertical */
}



.testimonios-titulo {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
  text-align: center;
}

/* Línea decorativa eliminada */

/* Contenedor principal - Estilos base para móvil */
.testimonios-contenedor {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
}

/* Ajustes para móvil */
@media (max-width: 991.98px) {
  .testimonios-contenedor {
    padding: 0 10px !important;
  }
  
  .testimonio-flecha.flecha-izquierda {
    margin-left: -15px !important;
  }
  
  .testimonio-flecha.flecha-derecha {
    margin-right: -15px !important;
  }
}

.carrusel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carrusel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carrusel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

/* Estilos base para móvil */
.testimonio-slide {
  flex: 0 0 100%;
  padding: 0 5px;
  box-sizing: border-box;
}

.carrusel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.carrusel-wrapper {
  order: 2;
  flex: 1;
  overflow: hidden;
  width: 100%;
  padding: 0 5px;
}

/* Ajustes solo para escritorio (PC) */
@media (min-width: 992px) {
  .testimonios-contenedor {
    max-width: 1400px;
    padding: 0 5px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
  }
  
  .carrusel-wrapper {
    order: 2;
    flex: 1;
    overflow: hidden;
    width: 100%;
    padding: 0 5px;
  }
  
  .carrusel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    justify-content: flex-start;
    margin: 0 0px;
  }
  
  .testimonio-slide {
    flex: 0 0 25%;
    padding: 0 10px;
    box-sizing: border-box;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Flechas de navegación - Estilo simple */
  .testimonio-flecha {
    background: none !important;
    border: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
  }
  
  .flecha-izquierda {
    order: 1;
  }
  
  .flecha-derecha {
    order: 3;
  }
}

.flecha-izquierda, .flecha-derecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.flecha-izquierda {
  left: 10px;
}

.flecha-derecha {
  right: 10px;
}

.testimonio-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 8px;
}

.testimonio-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.testimonio-dot:hover,
.testimonio-dot.active {
  background-color: #333;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .testimonio-slide {
    width: 100%;
    margin-right: 0;
  }
  
  .flecha-izquierda, 
  .flecha-derecha {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

.testimonio-card {
  background: linear-gradient(145deg, #ffffff, #f0f5ff) !important;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.testimonio-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 100%;
  max-width: 300px;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 120px; /* Altura mínima para mantener consistencia */
  justify-content: flex-start; /* Alinear contenido al inicio */
}

.testimonio-content h4,
.testimonio-content p {
  margin: 0 0 10px 0;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

/* Estilo solo para los nombres de los ponentes */
.testimonio-content h4 {
  font-family: 'Urw Form Semi Condensed ExtraBold', sans-serif;
  font-weight: 900;
  margin: 15px 0 10px;
  color: #2a5298;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0.25px 0 0 #2a5298, -0.25px 0 0 #2a5298, 0 0.25px 0 #2a5298, 0 -0.25px 0 #2a5298;
  -webkit-text-stroke: 0.5px #2a5298;
  text-stroke: 0.5px #2a5298;
  min-height: 40px; /* Altura fija para el nombre */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Estilo para los títulos de sección */
.testimonio-content h4 {
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 20px;
  color: #000000 !important;
  letter-spacing: 1px;
}

.testimonio-puntos {
  list-style: none;
  padding: 0;
  margin: 0; /* Eliminamos el margen superior e inferior */
  text-align: center;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 150px; /* Altura mínima para mantener consistencia */
  justify-content: flex-start; /* Alinear contenido al inicio */
}

.testimonio-puntos li {
  margin: 5px 0; /* Reducido el margen superior e inferior */
  font-size: 1rem;
  color: #000000;
  position: relative;
  padding: 0 10px;
  font-family: 'Breda Two', serif;
  font-weight: 300; /* Light */
  line-height: 1.4; /* Ajustado el interlineado */
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.testimonio-puntos li::before {
  content: "•";
  position: absolute;
  left: 0;
  color:#222D59;
  font-size: 1.2rem;
  font-weight: 500;
  font-family: 'Oswald', sans-serif;
}

.testimonio-imagen {
  width: 220px;
  height: 210px;
  margin: 0 auto 25px;
  overflow: hidden;
  border: none;
  border-top-left-radius: 25px; /* Borde redondeado en esquina superior izquierda */
  border-bottom-right-radius: 25px; /* Borde redondeado en esquina inferior derecha */
  position: relative;
}

/* Tamaño original para escritorio */
@media (min-width: 992px) {
  .testimonio-imagen {
    width: 220px;
    height: 200px;
  }
}

/* Ajustes para móviles */
@media (max-width: 991.98px) {
  .testimonio-imagen {
    transform: translateX(-2px);
  }
  
  .testimonio-puntos li {
    font-weight: 400 !important;
    font-stretch: expanded; /* Hace que el texto sea más ancho */
    letter-spacing: 0.5px; /* Aumenta ligeramente el espaciado entre letras */
  }
  
  .testimonio-puntos li::before {
    font-weight: 800 !important; /* Aumentar el peso de la fuente */
    font-size: 1.4rem !important; /* Aumentar ligeramente el tamaño */
    color: #222D59 !important;
  }
}

.testimonio-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.testimonio-content h4 {
  color: #2a5298;
  font-size: 1.1rem;
  margin: 15px 0 0px;
  font-weight: 600;
}

.testimonio-content p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.testimonio-flecha {
  position: relative;
  width: 60px;
  height: 60px;
  background: transparent !important;
  border: none;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 2rem;
  color: rgb(1, 1, 1);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
  margin: 0 10px;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

@media (max-width: 768px) {
  .testimonio-flecha.flecha-izquierda {
    margin-left: -15px !important;
  }
  
  .testimonio-flecha.flecha-derecha {
    margin-right: -15px !important;
  }
  
  .testimonios-contenedor {
    padding: 0 10px !important;
  }
}

.testimonio-flecha:hover {
  color: #3498db; /* Color azul al hacer hover */
  transform: scale(1.3);
  opacity: 1;
  text-shadow: 0 0 20px rgba(55, 166, 240, 0.8); /* Sombra azul al hacer hover */
}

.flecha-izquierda {
  order: 1;
  margin-right: 10px;
}

/* Estilos para móvil - se mantienen igual */
@media (max-width: 991.98px) {
  .carrusel-wrapper {
    order: 2;
    flex: 1;
    overflow: hidden;
    width: 100%;
    padding: 0 5px;
  }

  .carrusel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
  }

  .testimonio-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 5px;
    box-sizing: border-box;
  }
}

.flecha-derecha {
  order: 3;
  margin-left: 10px;
}

@import url('https://fonts.googleapis.com/css2?family=Silka:wght@700&family=Montserrat:wght@700&display=swap');

/* Título de la sección de cursos */
.titulo-cursos {
  text-align: center;
  margin-bottom: 40px;
}

/* Estilo para 'CURSOS' - Mismo estilo que 'RECORRIDO DE' */
.titulo-cursos .texto-cursiva {
  font-family: 'Mont', sans-serif !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: #2B2B2B !important;
  font-size: 2.3rem !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) !important;
  display: block !important;
  margin-bottom: 5px !important;
}

/* Estilo para 'DISPONIBLES' - En la misma línea que 'CURSOS' */
#cursos .titulo-cursos .texto-negrita,
section#cursos .titulo-cursos .texto-negrita,
.seccion#cursos .titulo-cursos .texto-negrita {
  font-family: "Altone", sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  color: #ffffff !important;
  font-size: 3rem !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
  display: inline !important;  /* Cambiado a inline */
  line-height: 1.2 !important;
  animation: none !important;
  vertical-align: middle;  /* Alineación vertical con 'CURSOS' */
}

/* Fuente Bungee */
.titulo-principal {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Estilos para escritorio (PC) */
@media (min-width: 992px) {
  .titulo-principal {
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    gap: 15px;
    display: flex !important;
    margin-bottom: 20px;
  }
  
  .texto-cursiva {
    display: inline-block !important;
    margin-bottom: 0 !important;
    margin-right: 15px !important;
    font-size: 3.5rem !important;
  }
  
  .texto-negrita {
    display: inline-block !important;
    font-size: 3rem !important;
  }
  
  /* Asegurar que el contenedor de cursos tenga el mismo estilo que el de testimonios */
  .cursos-titulo {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .cursos-titulo .titulo-principal {
    margin-bottom: 10px;
  }
  
  .subtitulo-cursos {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
  }
}

.texto-cursiva {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 3.5rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: textGlow 2s ease-in-out infinite;
}

.texto-negrita {
  font-family: "Silka Bold", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #ffffff;
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  animation: textGlow 2s ease-in-out infinite;
}

.testimonios-titulo .linea-decorativa {
  height: 4px;
  width: 300px;
  max-width: 80%;
  background: linear-gradient(90deg, #d3d3d3, #166498);  margin: 5px auto 0;
  border-radius: 2px;
}



/* Estilos para los dots de navegación de testimonios (Estilo Moderno) */
.testimonio-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 12px;
  position: relative;
  z-index: 10;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.testimonio-dots .testimonio-dot,
.testimonio-dots .testimonio-dot.dot-left,
.testimonio-dots .testimonio-dot.dot-right {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: #8c8fad !important; /* Color del encabezado */
  opacity: 0.3 !important; /* Más transparente cuando no está activo */
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  padding: 0 !important;
  margin: 0 5px !important;
  border: none !important;
  box-shadow: none !important;
  position: relative !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.testimonio-dots .testimonio-dot:hover,
.testimonio-dots .testimonio-dot.dot-left:hover,
.testimonio-dots .testimonio-dot.dot-right:hover {
  opacity: 0.7 !important; /* Más opaco al hacer hover */
  transform: scale(1.2) !important;
  background-color: #161f84 !important;
}

.testimonio-dots .testimonio-dot.active,
.testimonio-dots .testimonio-dot.dot-right.active {
  background-color: #7071c3 !important; /* Mismo color del encabezado */
  opacity: 1 !important; /* Totalmente opaco cuando está activo */
  width: 30px !important;
  border-radius: 10px !important;
  transform: scale(1.1) !important;
  box-shadow: none !important;
}

/* Ocultar el contenido de los dots (solo queremos el círculo) */
.testimonio-dot::before {
  display: none;
}

/* Estilos responsivos */
@media (max-width: 1200px) {
  .testimonio-slide {
    min-width: calc(33.333% - 15px);
  }
}

@media (max-width: 992px) {
  .testimonio-slide {
    min-width: calc(50% - 15px);
  }
  
  .testimonios-contenedor {
    padding: 0 50px;
  }
}

@media (max-width: 768px) {
  
  .testimonios-titulo {
    font-size: 1.5rem; /* Reducido de 2rem */
    margin-bottom: 10px; /* Reducido de 20px */
    padding: 0 15px; /* Añadido para mejor alineación */
  }
  
  .testimonios-titulo .titulo-principal {
    display: flex;
    flex-direction: column;
    gap: 2px; /* Espacio reducido entre líneas */
  }
  
  /* Estilos específicos para los títulos de expositores en móvil */
  section.testimonios-seccion .testimonios-titulo .texto-cursiva,
  section.testimonios-seccion .testimonios-titulo .texto-negrita {
    color: #222D59 !important;
    font-size: 2.5rem !important;
    line-height: 1.2;
    text-shadow: none !important;
  }
  
  section.testimonios-seccion .testimonios-titulo .texto-cursiva {
    font-size: 1.8rem !important;
  }
  
  .testimonio-slide {
    min-width: calc(100% - 20px);
    padding: 10px;
  }
  
  .testimonios-contenedor {
    padding: 0 30px;
  }
  
  .testimonio-flecha {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .testimonios-contenedor {
    padding: 0 15px;
  }
  
  .testimonio-flecha {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .testimonio-content {
    padding: 30px 15px;
  }
}

/* PONENTES Y DECLARACIONES*/

/* Secciones */
.seccion {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #052c65;
}
.seccion h2 {
  color: white;
  font-weight: bold;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.card {
  background: #f1f1f1;
  border-radius: 10px;
  padding: 1rem;
  max-width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 1rem;
}

@keyframes slideIn {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in {
  animation: slideIn 1s ease-in-out;
}

/* ======================
   ESTILOS DE SCROLLBAR
   ====================== */
/* Para navegadores WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 4px;  /* Ancho reducido de la barra de desplazamiento */
  height: 4px; /* Altura reducida para la barra horizontal */
}

::-webkit-scrollbar-track {
  background: #f1f1f1; /* Color de fondo de la pista */
  border-radius: 2px;
}

::-webkit-scrollbar-thumb {
  background: #888; /* Color del control deslizante */
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #666; /* Color del control deslizante al pasar el mouse */
}

/* Para Firefox */
* {
  scrollbar-width: thin; /* Hace la barra más delgada en Firefox */
  scrollbar-color: #888 #f1f1f1; /* Color del control deslizante y la pista */
}

/* Asegurando que el scroll sea consistente en todos los elementos */
html {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  gap: 1rem;
}
.tab-btn {
  padding: 0.5rem 1rem;
  background: #ddd;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.tab-btn.active {
  background: #00aced;
  color: white;
}
.tab-content {
  display: none;
  max-width: 700px;
  margin: auto;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
}
.tab-content:first-of-type {
  display: block;
}



/* Responsive */
@media (max-width: 768px) {
  .navbar .menu {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-texto h1 {
    font-size: 1.8rem;
  }
  .hero-texto p {
    font-size: 1rem;
  }
  .grid {
    flex-direction: column;
    align-items: center;
  }
}
/* Estilos del Footer */
/* Estilo para el ícono de WhatsApp en los botones */
.contact-button.whatsapp {
  background-color: #ffffff; /* Fondo blanco */
  color: #000000; /* Texto negro */
  border: 1px solid #dddddd;
}

.contact-button.whatsapp i {
  color: #25D366; /* Verde de WhatsApp */
  margin-right: 8px;
}

.contact-button.whatsapp span {
  color: #000000; /* Texto negro */
}

/* Estilos del Footer */
body #contacto {
  background-color: #222D5A !important;
  color: #fff;
  padding: 5px 0 20px; /* Reducido de 40px */
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  /* Se eliminó la línea divisoria */
}

.footer-logo {
  padding-left: 90px; /* Mueve el logo 30px a la derecha */
}

.footer-logo img {
  height: 90px;
  width: auto;
}

.footer-contact {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-button {
  display: flex;
  align-items: center;
  font-family: "Montserrat", Sans-serif;
  gap: 8px;
  padding: 8px 15px;
  background-color: white;
  font-weight: 500;
  color: #000 !important;
  text-decoration: none;
  border-radius: 3px;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.contact-button span {
  font-weight: 700; /* Aumentado a negrita */
}

.contact-button i {
  font-size: 16px;
}

.contact-button.whatsapp {
  background-color: #f1f1f1;
  color: rgb(0, 0, 0) !important;
}

.contact-button.email {
  background-color: white;
  color: #000 !important;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.social-media {
  display: flex;
  gap: 1px; /* Reducido a 5px para juntar más los íconos */
  margin-right: 90px; /* Mueve todo el contenedor 20px a la izquierda */
}

.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 20px;
}

/* Estilos para las redes sociales */
.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 20px;
  background-color: transparent; /* Sin fondo */
  border-radius: 0;
  margin: 0 5px;
}

/* Efecto hover para escritorio */
@media (min-width: 992px) {
  .social-media a:hover {
    transform: scale(1.2);
    opacity: 0.9;
    color: #fff;
    background-color: transparent; /* Sin fondo al hacer hover */
  }
}

/* Estilos para móviles */
@media (max-width: 991.98px) {
  .social-media a:active {
    transform: scale(0.95);
    opacity: 0.9;
    color: #fff;
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  flex-wrap: wrap;
}

.copyright {
  padding-left: 95px; /* Mueve el texto de copyright 30px a la derecha */
}

.copyright p {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-right: 90px; /* Mueve solo la imagen a la izquierda */
}

/* Responsive */
@media (max-width: 768px) {
  /* Estilos para la sección de expositores en móvil */
  section.testimonios-seccion {
    padding: 30px 0 10px 0 !important;
    margin: 0 !important;
  }
  
  /* Estilos para los títulos de expositores en móvil */
  .testimonios-titulo .titulo-principal {
    text-align: center;
    margin-bottom: -20px !important;
  }
  
  .testimonios-titulo .texto-cursiva,
  .testimonios-titulo .texto-negrita {
    color: #222D59 !important;
    font-size: 2.2rem;
    display: block;
    line-height: 1.2;
  }
  
  .testimonios-titulo .titulo-principal .texto-cursiva {
    font-size: 2.2rem !important;
    display: inline-block !important;
  }
  
  #testimonios .testimonios-titulo h2.titulo-principal span.texto-negrita {
    font-size: 1.9rem !important;
    display: inline-block !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Centrar contenido de los ponentes en móvil */
  .testimonio-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    height: 100%;
  }
  
  .testimonio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 500px; /* Altura mínima para todos los testimonios */
  }
  
  .testimonio-imagen {
    margin: 0 auto 15px auto !important;
  }
  
  .testimonio-puntos {
    text-align: left;
    padding-left: 0;
    width: 100%;
    max-width: 300px;
    list-style-type: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }
  
  .testimonio-puntos li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #333;
  }
  
  .testimonio-puntos li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2B2B2B;
    font-weight: bold;
    font-size: 1.5em;
    line-height: 1;
  }
  
  #contacto {
    padding-top: 10px; /* Reducido de 40px */
    padding-bottom: 5px; /* Reducido de 20px */
  }
  
  .footer-content {
    flex-direction: column;
    gap: 10px; /* Reducido de 20px */
    text-align: center;
    align-items: center;
  }
  
  .footer-logo {
    padding: 0; /* Eliminado el padding vertical */
    padding-left: 0;
    margin: 0 0 0 -20px; /* Mueve ligeramente a la izquierda */
    display: flex;
    justify-content: flex-start;
    width: auto;
    height: 120px; /* Altura fija para el contenedor */
    align-items: center; /* Centra verticalmente el logo */
  }
  
  .footer-logo img {
    height: 220% !important; /* Usamos porcentaje para que se ajuste al contenedor */
    max-height: 220px !important; /* Límite máximo de altura */
    width: auto !important;
    margin: 0; /* Aseguramos que no haya márgenes adicionales */
    object-fit: contain; /* Asegura que la imagen se escale correctamente */
  }
  
  .footer-contact {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  
  /* Estilos específicos para móvil */
  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  /* Invierte el orden solo en móvil */
  .footer-bottom {
    flex-direction: column-reverse;
  }
  
  /* Asegura que el libro esté arriba en móvil */
  .legal-links {
    margin: -20px auto 5px auto; /* Aumentado margen superior negativo para subir más el libro */
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  /* Restaura el estilo del copyright */
  .copyright {
    padding: 0;
    text-align: center;
    width: 100%;
  }
  
  /* Centra y agranda las redes sociales en móvil */
  .social-media {
    margin-right: 0;
    justify-content: center;
    gap: 0 !important; /* Elimina el espacio entre íconos */
    
  }
  
  .social-media a {
    width: 60px !important; /* Aumentado de 50px */
    height: 60px !important; /* Aumentado de 50px */
    font-size: 38px !important; /* Aumentado de 24px */
    margin: 0 -5px; /* Superposición leve para que se vean más juntos */
    background-color: transparent !important; /* Sin fondo en móvil */
  }
  
  /* Agranda los botones de contacto en móvil */
  .footer-contact {
    gap: 20px !important;
  }
  
  .contact-button {
    padding: 12px 20px !important;
    font-size: 16px !important;
  }
  
  .contact-button i {
    font-size: 20px !important;
  }
}
/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  color: #FFF;
  text-decoration: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 60px;
    height: 60px;
    font-size: 32px;
    bottom: 25px;
    right: 25px;
  }
}
