/* VARIABLES Y TIPOGRAFÍA BASE */
:root {
  --verde-marca: #7ed957;
  --azul-oscuro: #0a2e46 !important;
  --alerta-naranja: #ff7b00;
  /* Toque de color para "Rescate" */
}

/* BANNER PRINCIPAL (HERO) */
.banner-curso {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("recursos/rescatebanner.png");
  /* Reemplaza con tu foto de rescate */
  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(10, 46, 70, 0.6),
    rgba(10, 46, 70, 0.9)
  );
  z-index: 1;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
}

.btn-verde {
  background-color: var(--verde-marca);
  color: var(--azul-oscuro);
  border: 2px solid var(--verde-marca);
  transition: all 0.3s;
}
.btn-naranja {
  background-color: var(--alerta-naranja);
  color: white;
  border: 2px solid var(--alerta-naranja);
  transition: all 0.3s;
}
.btn-naranja:hover {
  background-color: white;
  color: var(--alerta-naranja);
  border: 2px solid var(--alerta-naranja);
  transition: all 0.3s;
}

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

/* SCROLLYTELLING: LA MALLA CURRICULAR */
.contenedor-malla-rio {
  position: relative;
  height: 2500px;
  /* Altura del recorrido */

  overflow: hidden;
}

.path-malla {
  fill: none;
  stroke: var(--alerta-naranja);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-opacity: 0.15;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: none !important;
}

.balsa-tracker {
  width: 50px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3));
  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(--alerta-naranja);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 400px;
}

/* ACORDEÓN FAQ */
.accordion-button {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  background-color: var(--alerta-naranja);
  color: white;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--azul-oscuro);
  color: var(--alerta-naranja) !important;
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .banner-curso {
    background-attachment: scroll;
    padding: 60px 0;
    min-height: auto;
  }

  .banner-curso h1 {
    font-size: 2rem !important;
  }

  .contenedor-malla-rio {
    height: 1800px;
  }

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

  .punto-malla {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(40px) scale(0.9) !important;
    width: 90% !important;
  }

  .punto-malla.is-visible {
    transform: translateX(-50%) translateY(0) scale(1) !important;
  }

  .tarjeta-modulo {
    max-width: 100%;
    text-align: center;
  }
  h2 {
    font-size: 0.8rem !important;
  }
}

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

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

.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);
}

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

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