/* ========================================== */
/* VARIABLES Y TIPOGRAFÍA BASE                */
/* ========================================== */
:root {
  --bg-main: #121619;
  /* Piedra mojada */
  --bg-footer: #0a0d0f;
  /* Más oscuro para contraste */
  --text-main: #f8f9fa;

  --azul-rio: #0077b6;
  /* Color principal del agua */
  --azul-profundo: #023e8a;
  /* Para fondos y textos oscuros */
  --amarillo-balsa: #ffb703;
  /* Acento de acción/rescate */
  --naranja-irf: #fb8500;
  /* Acento secundario para IRF */
}

/* BANNER PRINCIPAL (HERO) */
.banner-curso {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Usa una imagen épica de rafting */
  background-image: url(recursos/rafting_1.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  z-index: 1;
}

.btn-balsa {
  background-color: var(--azul-rio);
  transition: all 0.3s;
  color: #f8f9fa !important;
}
.btn-balsa2 {
  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 */
.modality-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  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.2);
}

/* ========================================== */
/* SCROLLYTELLING BASE CLASES                 */
/* ========================================== */
.scrollytelling-wrapper {
  position: relative;
  background-color: var(--bg-main);
  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);
}

.tarjeta-modulo2 {
  background: white;
  color: #023e8a;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 400px;
}

/* FAQ */
.accordion-button {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--azul-rio);
  color: white;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

/* ========================================== */
/* RESPONSIVE REFORZADO                       */
/* ========================================== */
@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;
  }
}

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

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

/* ========================================== */
/* 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);
}

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

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