/* ============================================================
   EARLY-BALANCE · Estilos personalizados
   Mobile-first. Variables de marca + parallax + componentes.
   ============================================================ */

:root {
  --eb-verde-oscuro: #234d3d;
  --eb-verde: #3f7a5f;
  --eb-verde-claro: #7fb99a;
  --eb-crema: #faf6ee;
  --eb-crema-oscuro: #f1e9d8;
  --eb-texto: #2b2b26;
  --eb-blanco: #ffffff;

  --eb-fuente-titulo: "Quicksand", "Nunito", sans-serif;
  --eb-fuente-texto: "Nunito", "Segoe UI", sans-serif;

  --eb-radio: 1rem;
  --eb-sombra: 0 10px 30px rgba(35, 77, 61, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--eb-fuente-texto);
  color: var(--eb-texto);
  background-color: var(--eb-crema);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--eb-fuente-titulo);
  font-weight: 700;
  color: var(--eb-verde-oscuro);
}

h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 1rem; }

a { text-decoration: none; }

/* Títulos sobre fondos oscuros (hero, secciones con overlay verde/oscuro) */
.titulo-claro {
  color: var(--eb-blanco) !important;
}

/* ================= CABECERA ================= */
#cabecera {
  background-color: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(35, 77, 61, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 0.6rem 0;
}

#cabecera.cabecera-scroll {
  box-shadow: 0 6px 20px rgba(35, 77, 61, 0.14);
}

.navbar-brand {
  font-family: var(--eb-fuente-titulo);
  font-weight: 700;
  color: var(--eb-verde-oscuro) !important;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand .logo-icono {
  height: 2rem;
  width: auto;
}

.nav-link {
  color: var(--eb-texto) !important;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.activo {
  color: var(--eb-verde) !important;
}

.btn-cta {
  background-color: var(--eb-verde);
  border: none;
  color: var(--eb-blanco) !important;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  box-shadow: var(--eb-sombra);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-cta:hover,
.btn-cta:focus {
  background-color: var(--eb-verde-oscuro);
  color: var(--eb-blanco);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-radius: 50px;
  font-weight: 600;
}

/* ================= SECCIONES CON PARALLAX ================= */
.parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  isolation: isolate;
}

.hero-section {
  min-height: 100vh;
}

.cta-section {
  min-height: 60vh;
}

.parallax-bg {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.overlay-dark {
  background: linear-gradient(180deg, rgba(20, 40, 30, 0.72), rgba(20, 40, 30, 0.55));
}

.overlay-green {
  background: linear-gradient(180deg, rgba(35, 77, 61, 0.88), rgba(35, 77, 61, 0.78));
}

.overlay-light {
  background: linear-gradient(180deg, rgba(250, 246, 238, 0.93), rgba(250, 246, 238, 0.88));
}

.content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--eb-verde-claro);
  margin-bottom: 0.5rem;
}

.lead-text {
  font-size: clamp(1rem, 3vw, 1.25rem);
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--eb-blanco);
  font-size: 1.6rem;
  animation: eb-rebote 1.8s infinite;
}

@keyframes eb-rebote {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ================= SECCIONES SÓLIDAS ================= */
.section-block {
  padding: 4.5rem 0;
}

.bg-cream {
  background-color: var(--eb-crema);
}

/* ================= TARJETAS ================= */
.card-info,
.card-persona,
.card-mini {
  background-color: var(--eb-blanco);
  border-radius: var(--eb-radio);
  box-shadow: var(--eb-sombra);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease;
}

.card-info:hover,
.card-persona:hover {
  transform: translateY(-6px);
}

.icon-info,
.icon-persona {
  font-size: 2.2rem;
  color: var(--eb-verde);
  margin-bottom: 0.8rem;
  display: inline-block;
}

.card-persona {
  background-color: rgba(255, 255, 255, 0.95);
}

.rol {
  color: var(--eb-verde);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.icon-sponsor {
  font-size: 3rem;
  color: var(--eb-verde);
  margin-bottom: 1rem;
  display: inline-block;
}

.card-mini {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background-color: rgba(255, 255, 255, 0.9);
}

.icon-mini {
  font-size: 1.6rem;
  color: var(--eb-verde-oscuro);
}

/* ================= TIMELINE (visitas) ================= */
.timeline {
  list-style: none;
  padding-left: 0;
  margin: 0;
  border-left: 3px solid var(--eb-verde-claro);
}

.timeline li {
  position: relative;
  padding: 0 0 2rem 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline-badge {
  position: absolute;
  left: -1.3rem;
  top: 0;
  width: 2.6rem;
  height: 2.6rem;
  background-color: var(--eb-verde);
  color: var(--eb-blanco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(35, 77, 61, 0.3);
}

.timeline-content {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 0.7rem;
  padding: 0.9rem 1.1rem;
  margin-left: 1rem;
  flex: 1;
}

/* ================= PIE DE PÁGINA ================= */
.footer-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.footer-bg {
  top: 0;
  height: 110%;
}

.footer-link {
  color: var(--eb-verde-claro);
}

.footer-link:hover {
  color: var(--eb-blanco);
}

/* Enlaces dentro de texto de contenido (p. ej. páginas legales) */
.enlace-cuerpo {
  color: var(--eb-verde);
  text-decoration: underline;
  text-decoration-color: var(--eb-verde-claro);
}

.enlace-cuerpo:hover {
  color: var(--eb-verde-oscuro);
}

/* ================= BOTÓN VOLVER ARRIBA ================= */
.btn-arriba {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background-color: var(--eb-verde);
  color: var(--eb-blanco);
  font-size: 1.2rem;
  box-shadow: var(--eb-sombra);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.btn-arriba.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ================= ACCESIBILIDAD: reducir movimiento ================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .parallax-bg {
    transform: none !important;
  }
  .scroll-indicator {
    animation: none;
  }
}

/* ================= AJUSTES MÓVIL ================= */
@media (max-width: 575.98px) {
  .section-block {
    padding: 3rem 0;
  }
  .parallax-section {
    min-height: 60vh;
  }
  .hero-section {
    min-height: 100vh;
  }
}
