/* ========================================== */
/* VARIABLES DE COLOR (PALETA PROFESIONAL)    */
/* ========================================== */
:root {
  --bg-main: #121619;
  /* Piedra mojada */
  --bg-footer: #0a0d0f;
  /* Más oscuro para contraste */
  --text-main: #f8f9fa;
  /* Blanco humo */
  --text-muted: #adb5bd;
  --accent-red: #e63946;
  /* Rescate */
  --primary-blue: #0077b6;
  /* Río profundo */
  --border-color: #2b3035;
}

/* RESET & BASE */
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: "Montserrat", sans-serif;
}

h1,
h2,
h3,
.cinzel-font {
  font-family: "Cinzel", serif;
}

/* HERO SECTION */
.spacer {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background-image: linear-gradient(
      rgba(18, 22, 25, 0.7),
      rgba(18, 22, 25, 0.9)
    ),
    url("recursos/saltoagua.webp");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-color);
}

.spacer h2 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* BOTONES GLOBALES */
.btn-premium {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--text-main);
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-radius: 4px;
  letter-spacing: 1px;
}

.btn-premium:hover {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
}

.btn-solid {
  background: var(--text-main);
  color: var(--bg-main);
  border: 2px solid var(--text-main);
}

.btn-solid:hover {
  background: #e2e6ea;
  color: var(--bg-main);
  border-color: #e2e6ea;
}

/* TEXT SECTIONS */
.section-padding {
  padding: 50px 0;
}

.propuesta-valor h3 {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 20px;
  color: var(--text-muted);
  line-height: 1.6;
}

.propuesta-valor strong {
  color: var(--text-main);
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 10px;
}

/* --- STYLES DEL ACORDEÓN CUSTOM --- */
#accTrack {
  position: relative;
  height: 400vh;
  background: var(--bg-main);
}

#accStage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#accStage.is-fixed {
  position: fixed;
  top: 0;
  z-index: 10;
}

#accStage.is-ended {
  position: absolute;
  top: auto;
  bottom: 0;
}

.accordion-container {
  display: flex;
  width: 95%;
  max-width: 1400px;
  height: 80vh;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.acc-item {
  position: relative;
  height: 100%;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.acc-item:last-child {
  border-right: none;
}

.acc-item.active {
  flex: 5;
}

.acc-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) grayscale(60%);
  transition: filter 0.8s ease, transform 0.8s ease;
}

.acc-item.active .acc-bg {
  filter: brightness(0.8) grayscale(0%);
  transform: scale(1.03);
}

.acc-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  box-sizing: border-box;
  background: linear-gradient(
    to top,
    rgba(18, 22, 25, 1) 0%,
    rgba(18, 22, 25, 0.8) 50%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
}

.acc-content h3 {
  font-family: "Cinzel", serif;
  font-size: 2.2rem;
  margin: 0 0 5px 0;
  white-space: nowrap;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.acc-content h5 {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 15px;
}

.acc-item:not(.active) .acc-content h3 {
  opacity: 0.7;
  font-size: 1.5rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg) translateY(20px);
}

.acc-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ddd;
  display: none;
}

.acc-item.active .acc-content {
  opacity: 1;
  transform: translateY(0);
}

.acc-item.active .acc-content h3 {
  writing-mode: horizontal-tb;
  transform: none;
  white-space: normal;
}

/* Contenedor de acciones dentro del acordeón (Alineación corregida) */
.acc-actions {
  display: none;
  /* Oculto por defecto */
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.acc-item.active .acc-content p,
.acc-item.active .acc-content .acc-actions {
  display: flex;
  /* Muestra el contenedor de botones como flex */
  animation: fadeIn 0.5s ease forwards;
}

/* BADGE Y BOTONES INTERNOS */
.countdown-badge {
  display: inline-block;
  background: var(--accent-red);
  color: white;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.boton-action {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.boton-action:hover {
  background: #fff;
  color: #000;
}

/* FAQ CUSTOMIZATION */
.accordion-button {
  background-color: #1e2328;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-blue);
  color: #fff;
  box-shadow: none;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-body {
  background-color: #161a1d;
  color: var(--text-muted);
  line-height: 1.7;
}

.accordion-item {
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

/* FOOTER STYLES */
.site-footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--border-color);
}

.slide-link {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.slide-link:hover {
  color: var(--primary-blue) !important;
  padding-left: 8px;
}

.social-icon {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--primary-blue);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .accordion-container {
    flex-direction: column;
    height: auto;
  }

  .acc-item {
    height: 120px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .acc-item.active {
    flex: auto;
    height: 500px;
  }

  .acc-item:not(.active) .acc-content h3 {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.2rem;
  }

  .acc-content {
    padding: 25px;
  }
}

/* ========================================== */
/* MEJORAS UI: FOOTER, MODALES Y TESTIMONIOS  */
/* ========================================== */

/* FIX: Contraste del Footer */
.site-footer p,
.site-footer .text-muted,
.site-footer .slide-link,
.site-footer .social-icon {
  color: #e0e0e0 !important;
  /* Gris ultra claro para máxima legibilidad */
}

.site-footer h2,
.site-footer h4,
.site-footer h5 {
  color: #ffffff !important;
}

/* ENCHULAR MODALES */
.modal-content {
  background: #1a1e22 !important;
  /* Fondo sutilmente más claro para que resalte del body */
  border: 1px solid rgba(0, 119, 182, 0.4) !important;
  /* Borde con tu color primario */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  border-radius: 10px;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: linear-gradient(
    90deg,
    rgba(0, 119, 182, 0.1) 0%,
    transparent 100%
  );
}

.modal-body ul li,
.modal-body ol li {
  margin-bottom: 12px;
  color: #cfd8dc;
  /* Color de lectura suave */
}

/* Magia UI: Convierte los <strong> blancos de la malla en tu azul primario */
.modal-body strong.text-light {
  color: var(--primary-blue) !important;
  letter-spacing: 0.5px;
}

/* TARJETAS DE TESTIMONIOS */
.testimonial-card {
  background: #161a1d;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px 20px;
  height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-blue);
}

.star-rating {
  color: #ffd700;
  font-size: 1.1rem;
}

.menu-hover:hover {
  color: #0077b6 !important;
}

.social-link:hover {
  background-color: #f8f9fa !important;
  color: #0077b6 !important;
  transform: scale(1.1);
}

/*divider*/
.disciplina-card {
  height: 300px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  /* Apila los elementos verticalmente */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
}

.disciplina-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease;
}

.disciplina-card:hover .overlay {
  background-color: rgba(184, 26, 39, 0.6);
}

/* Contenedor nuevo para agrupar el texto y los botones sobre el fondo */
.disciplina-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  /* Espacio entre el título y los botones */
}

.disciplina-card h4 {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.boton-ver-mas {
  background-color: var(--primary-blue);
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.2);
}

.boton-ver-mas:hover {
  background-color: #fff;
  color: var(--primary-blue) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 119, 182, 0.4);
}

.boton-ver-mas i {
  transition: transform 0.3s ease;
}

.boton-ver-mas:hover i {
  transform: translateX(5px);
}

/* Ajuste al contenedor de botones para que no se peguen */
.disciplina-content .btn-group-vertical {
  width: 100%;
  max-width: 220px;
}

/*swiper*/
*
  Personalización
  de
  los
  controles
  de
  Swiper
  para
  tu
  Dark
  Theme
  */
  .swiper-pagination-bullet {
  background: #adb5bd;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--primary-blue);
  opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary-blue);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Estilos de la Galería */
.gallery-slide {
  height: 300px;
  /* Altura fija para que todas las fotos se vean parejas */
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Evita que las fotos se deformen */
  transition: transform 0.5s ease;
}

.gallery-slide:hover img {
  transform: scale(1.05);
  /* Zoom sutil al pasar el mouse */
}

/* Ajuste Testimonios */
.testimonials-swiper {
  padding-bottom: 50px;
  /* Espacio para los puntitos */
}

/* ========================================== */
/* SWIPER: GALERÍA DE FOTOS                   */
/* ========================================== */
.swiper-button-next,
.swiper-button-prev {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary-blue);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: bold;
}

.gallery-slide {
  height: 350px;
  /* Altura fija para que todas las fotos se vean parejas */
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Evita que las fotos se deformen */
  transition: transform 0.5s ease;
}

.gallery-slide:hover img {
  transform: scale(1.05);
  /* Efecto zoom al pasar el mouse */
}

/* ========================================== */
/* BANNER DE CERTIFICACIONES (LOGOS)          */
/* ========================================== */
.certifications-banner {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 40px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 10;
}

.cert-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  /* Contenedor fijo para alinear logos de distintos tamaños */
}

.cert-logo {
  max-height: 60px;
  /* Altura máxima uniforme */
  max-width: 100%;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.cert-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Pequeño texto introductorio arriba de los logos */
.cert-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #adb5bd;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ========================================== */
/* BOTÓN SCROLL TO TOP                        */
/* ========================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 999;
  /* Animación de entrada */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Clase que añade Javascript para mostrarlo */
.scroll-to-top.show-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: #fff;
  color: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 119, 182, 0.4);
}

/* Ajuste para móviles: botón un poco más pequeño y pegado a la orilla */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}
/* ========================================== */
/* ESTILOS ESPECÍFICOS: RAFTING               */
/* ========================================== */

:root {
  /* Mantenemos tus colores específicos de scrollytelling */
  --amarillo-balsa: #ffb703;
  --naranja-irf: #fb8500;
  /* Nota: --azul-rio (#0077B6) es exactamente igual a tu --primary-blue, usaremos --primary-blue */
}

/* BANNER PRINCIPAL (HERO) RAFTING */
.banner-curso {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("https://images.unsplash.com/photo-1533575402919-866870b22a0f?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(recursos/raft1.png);
  background-size: cover;
  z-index: 1;
  /* Sugerencia: Añadir un pequeño degradado oscuro para emparejar con el home */
  background: linear-gradient(rgba(18, 22, 25, 0.4), rgba(18, 22, 25, 0.8));
}

.btn-balsa {
  background-color: var(--amarillo-balsa);
  color: var(--bg-main);
  border: 2px solid var(--amarillo-balsa);
  transition: all 0.3s;
}

.btn-balsa:hover {
  background-color: transparent;
  color: var(--amarillo-balsa);
}

/* TARJETAS DE INTRODUCCIÓN Y MÓDULOS (Adaptadas a Dark Theme) */
.modality-card,
.tarjeta-modulo {
  background: #1a1e22; /* Fondo oscuro tipo tarjeta de testimonios */
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.modality-card {
  height: 100%;
}

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

.modality-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: -40px auto 20px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.modality-card p,
.tarjeta-modulo p {
  color: var(--text-muted) !important;
}

/* ========================================== */
/* SCROLLYTELLING BASE CLASES                 */
/* ========================================== */
.scrollytelling-wrapper {
  position: relative;
  background-color: transparent; /* Hereda el fondo oscuro del body */
  overflow: hidden;
}

.path-malla {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: none !important;
}

.tracker-icon {
  width: 50px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  will-change: transform;
}

.punto-malla {
  position: absolute;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
}

.punto-malla.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ========================================== */
/* RESPONSIVE REFORZADO RAFTING               */
/* ========================================== */
@media (max-width: 768px) {
  .banner-curso {
    background-attachment: scroll !important;
    background-position: center top !important;
    padding: 60px 0 !important;
    min-height: auto !important;
  }
  .banner-curso h1 {
    font-size: 2rem !important;
  }
  .scrollytelling-wrapper {
    height: 2000px !important;
  }
  .path-malla {
    stroke-width: 25 !important;
  }
  .punto-malla {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(40px) scale(0.9) !important;
    width: 90% !important;
    max-width: 380px !important;
  }
  .punto-malla.is-visible {
    transform: translateX(-50%) translateY(0) scale(1) !important;
  }
  .tarjeta-modulo {
    max-width: 100% !important;
    text-align: center !important;
    padding: 15px !important;
  }
  .hero-section2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5); /* Ajusta la opacidad (0.5 = 50%) */
    z-index: 1;
  }

  /* Asegúrate que el contenido esté encima del overlay */
  .hero-section2 > * {
    position: relative;
    z-index: 2;
  }
}
/* ========================================== */
/* SMART HEADER (SCROLL UP / DOWN)            */
/* ========================================== */
#header {
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 100%;
}

/* Esta clase se la pondrá JavaScript cuando bajemos */
#header.nav-hidden {
  transform: translateY(-100%);
}
/* Overlay oscuro */
.hero-section2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Ajusta la opacidad (0.5 = 50%) */
  z-index: 1;
}

/* Asegúrate que el contenido esté encima del overlay */
.hero-section2 > * {
  position: relative;
  z-index: 2;
}

.gringo {
  text-decoration: none;
  color: inherit;
}
