/* ========================================== */
/* VARIABLES Y TIPOGRAFÍA BASE                */
/* ========================================== */
:root {
  --verde-bosque: #2d6a4f;
  /* Verde principal oscuro */
  --verde-hoja: #52b788;
  /* Verde brillante para acentos */
  --tierra: #b08968;
  /* Tono café/madera sutil */
  --azul-oscuro: #0a2e46;
  /* Contraste para textos */
}

/* BANNER PRINCIPAL (HERO) */
.banner-curso {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Imagen de un bosque frondoso o sendero */
  background-image: url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?q=80&w=2070&auto=format&fit=crop") !important;
  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: linear-gradient(
    to bottom,
    rgba(45, 106, 79, 0.7),
    rgba(10, 46, 70, 0.95)
  );
  z-index: 1;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
}

.btn-bosque {
  background-color: var(--verde-hoja);
  color: #fff;
  border: 2px solid var(--verde-hoja);
  transition: all 0.3s;
}

.btn-bosque:hover {
  background-color: transparent;
  color: var(--verde-hoja);
}

/* ========================================== */
/* SCROLLYTELLING: EL SENDERO DE LOS 7 PASOS  */
/* ========================================== */
.scrollytelling-wrapper {
  position: relative;
  height: 3000px;
  /* Más alto porque son 7 puntos */
  background-color: #f4fdf4;
  /* Fondo sutilmente verde */
  overflow: hidden;
}

.path-malla {
  fill: none;
  stroke: var(--tierra);
  /* El sendero es color tierra */
  stroke-width: 10;
  stroke-linecap: round;
  stroke-opacity: 0.3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: none !important;
}

.tracker-icon {
  width: 50px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(45, 106, 79, 0.4));
  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-modulo {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border-left: 6px solid var(--verde-bosque);
  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(--verde-bosque) !important;
  color: white;
}

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

.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  border-radius: 8px !important;
  overflow: hidden;
}

/* ========================================== */
/* RESPONSIVE REFORZADO MÓVIL                 */
/* ========================================== */
@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: 2600px !important;
  }

  .path-malla {
    stroke-width: 20 !important;
  }

  /* Alineación perfecta al centro para el celular */
  .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;
  }

  .glass-panel .border-end {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-bottom: 15px !important;
  }
}

/* ========================================== */
/* 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: black !important;
  /* Gris ultra claro para máxima legibilidad */
}

.site-footer h2,
.site-footer h4,
.site-footer h5 {
  color: black !important;
}
/* ========================================== */
/* SMART HEADER (SCROLL UP / DOWN)            */
/* ========================================== */
/* ========================================== */
/* 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%);
}
