/* =============================================================
   main.css — Estilos del proyecto Deforestación Colombia
   =============================================================
   Paleta de colores del proyecto:
   --verde-bosque:   #1a6b3c  (color institucional principal)
   --verde-claro:    #2ecc71  (acento y hover)
   --verde-suave:    #e8f5e9  (fondos de tarjetas)
   --rojo-alerta:    #e74c3c  (indicadores críticos)
   --texto:          #2c3e50  (texto principal)
   --texto-suave:    #7f8c8d  (texto secundario)
   --gris-fondo:     #f4f6f4  (fondos de secciones alternas)
   ============================================================= */

:root {
  --verde-bosque:  #1a6b3c;
  --verde-claro:   #2ecc71;
  --verde-suave:   #e8f5e9;
  --rojo-alerta:   #e74c3c;
  --texto:         #2c3e50;
  --texto-suave:   #7f8c8d;
  --gris-fondo:    #f4f6f4;
  --blanco:        #ffffff;
  --sombra:        0 4px 20px rgba(0,0,0,0.08);
  --radio:         12px;
}

/* ── Reset y base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--texto);
  background: var(--blanco);
  margin: 0;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', serif;
  color: var(--texto);
}

mark {
  background: #fff9c4;
  color: var(--texto);
  border-radius: 3px;
  padding: 0 3px;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.nav-proyecto {
  background: linear-gradient(135deg, #0f3d22 0%, var(--verde-bosque) 100%);
  border-bottom: 2px solid var(--verde-claro);
  padding: 10px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-titulo {
  font-family: 'Merriweather', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-modulo {
  font-size: 12.5px !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  transition: background 0.2s;
}
.nav-modulo:hover {
  background: rgba(255,255,255,0.12) !important;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  background: linear-gradient(160deg, #0a2a15 0%, #1a6b3c 50%, #2ecc71 100%);
  overflow: hidden;
  padding: 80px 0 64px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
}

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

.hero-titulo {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-acento {
  color: #a5f3c8;
  text-shadow: 0 0 30px rgba(46,204,113,0.4);
}

.hero-subtitulo {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  max-width: 580px;
  font-weight: 300;
}

.badge-academico {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  letter-spacing: 0.4px;
  backdrop-filter: blur(4px);
}

.btn-hero-principal {
  background: #ffffff;
  color: var(--verde-bosque);
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 14px;
  transition: all 0.25s;
  border: 2px solid transparent;
}
.btn-hero-principal:hover {
  background: var(--verde-claro);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46,204,113,0.35);
}

.btn-hero-secundario {
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.25s;
}
.btn-hero-secundario:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Tarjeta de dato destacado en el hero */
.dato-hero {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.dato-hero-num {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'Merriweather', serif;
  color: #a5f3c8;
  line-height: 1;
}
.dato-hero-lbl {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  margin-top: 6px;
}
.dato-hero-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  background: var(--verde-bosque);
}

.stat-chip {
  padding: 8px 0;
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  color: #a5f3c8;
  line-height: 1;
}
.stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* ── SECCIONES DE CONTENIDO ───────────────────────────────── */
.seccion-contenido {
  padding: 72px 0;
}
.seccion-gris {
  background: var(--gris-fondo);
}

.seccion-header { margin-bottom: 48px; }

.seccion-tag {
  display: inline-block;
  background: var(--verde-suave);
  color: var(--verde-bosque);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.seccion-titulo {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--verde-bosque);
  margin-bottom: 8px;
}

.seccion-sub {
  font-size: 15px;
  color: var(--texto-suave);
  max-width: 600px;
  margin: 0 auto;
}

/* ── TEXTO ACADÉMICO ──────────────────────────────────────── */
.texto-academico p {
  font-size: 15px;
  color: #3a3a3a;
  text-align: justify;
  margin-bottom: 16px;
}

.pregunta-investigacion {
  background: linear-gradient(135deg, var(--verde-bosque), #2ecc71);
  border-radius: 12px;
  padding: 24px 28px;
  color: white;
}
.pi-etiq {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.8;
  display: block;
  margin-bottom: 8px;
}
.pi-texto {
  font-size: 15px;
  margin: 0;
  font-style: italic;
  opacity: 0.95;
}

/* ── TARJETAS DE INFORMACIÓN ──────────────────────────────── */
.card-info {
  background: var(--blanco);
  border: 1px solid #e0e7e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--sombra);
}
.card-info-titulo {
  font-weight: 700;
  font-size: 13px;
  color: var(--verde-bosque);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-info-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}
.card-info-lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid #f0f4f0;
  color: #3a3a3a;
}
.card-info-lista li:last-child { border-bottom: none; }
.card-info-fuente {
  font-size: 10px;
  color: var(--texto-suave);
  margin: 12px 0 0;
  text-align: right;
}

/* Badges de causas */
.causa-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  color: white;
}
.causa-1 { background: #1a6b3c; }
.causa-2 { background: #e74c3c; }
.causa-3 { background: #e67e22; }
.causa-4 { background: #2980b9; }
.causa-5 { background: #8e44ad; }

/* Ranking de departamentos */
.ranking-list { display: flex; flex-direction: column; gap: 8px; }
.ranking-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ranking-pos  { font-weight: 700; color: var(--verde-bosque); width: 22px; flex-shrink: 0; }
.ranking-nombre { flex: 1; }
.ranking-ha   { font-size: 11px; color: var(--texto-suave); white-space: nowrap; }
.ranking-barra {
  height: 4px;
  background: linear-gradient(to right, var(--verde-bosque), var(--verde-claro));
  border-radius: 2px;
  display: block;
  margin-top: 2px;
}

/* ── CARDS DE JUSTIFICACIÓN ───────────────────────────────── */
.justif-card {
  background: var(--blanco);
  border-radius: 12px;
  padding: 28px;
  height: 100%;
  border: 1px solid #e0e7e0;
  box-shadow: var(--sombra);
  transition: transform 0.2s;
}
.justif-card:hover { transform: translateY(-4px); }
.justif-icono { font-size: 32px; margin-bottom: 12px; }
.justif-card h5 { color: var(--verde-bosque); font-size: 16px; }
.justif-card p  { font-size: 14px; color: #555; }

/* ── OBJETIVOS ────────────────────────────────────────────── */
.obj-general {
  background: linear-gradient(135deg, #e8f5e9, #d0f0e0);
  border-left: 5px solid var(--verde-bosque);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
}
.obj-etiq {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--verde-bosque);
  display: block;
  margin-bottom: 6px;
}
.obj-texto { font-size: 15px; margin: 0; }

.obj-especifico {
  display: flex;
  gap: 16px;
  background: var(--blanco);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e0e7e0;
  box-shadow: var(--sombra);
  height: 100%;
}
.obj-num {
  width: 40px;
  height: 40px;
  background: var(--verde-bosque);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.obj-especifico strong { font-size: 14px; color: var(--verde-bosque); display: block; margin-bottom: 4px; }
.obj-especifico p { font-size: 13px; color: #555; }

/* ── MARCO TEÓRICO ────────────────────────────────────────── */
.marco-card {
  background: var(--blanco);
  border-radius: 12px;
  padding: 28px;
  height: 100%;
  border: 1px solid #e0e7e0;
  box-shadow: var(--sombra);
}
.marco-card-titulo {
  color: var(--verde-bosque);
  font-size: 16px;
  margin-bottom: 14px;
}
.marco-card p { font-size: 14px; color: #555; }
.semma-list { padding-left: 18px; }
.semma-list li { font-size: 14px; color: #555; margin-bottom: 6px; }

/* Chips tecnológicos */
.tech-chip {
  background: var(--blanco);
  border: 1px solid #e0e7e0;
  border-radius: 12px;
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--sombra);
  transition: all 0.2s;
  cursor: default;
}
.tech-chip:hover {
  transform: translateY(-4px);
  border-color: var(--verde-claro);
  box-shadow: 0 8px 24px rgba(26,107,60,0.12);
}
.tech-icono  { font-size: 28px; margin-bottom: 6px; }
.tech-nombre { font-size: 13px; font-weight: 700; color: var(--verde-bosque); }
.tech-rol    { font-size: 11px; color: var(--texto-suave); }

/* ── MÓDULOS ──────────────────────────────────────────────── */
.modulo-card {
  border-radius: 14px;
  padding: 28px;
  height: 100%;
  transition: transform 0.25s;
}
.modulo-card:hover { transform: translateY(-5px); }

.modulo-activo {
  background: linear-gradient(160deg, #0f3d22, var(--verde-bosque));
  color: white;
  box-shadow: 0 8px 28px rgba(26,107,60,0.35);
}
.modulo-activo h5, .modulo-activo p { color: rgba(255,255,255,0.9); }

.modulo-inactivo {
  background: var(--blanco);
  border: 1px solid #e0e7e0;
  box-shadow: var(--sombra);
}
.modulo-inactivo h5 { color: var(--verde-bosque); }
.modulo-inactivo p  { color: #777; font-size: 14px; }

.modulo-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.65;
}
.modulo-icono { font-size: 36px; margin-bottom: 10px; }

.modulo-tech {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: inherit;
}
.modulo-inactivo .modulo-tech {
  background: var(--verde-suave);
  color: var(--verde-bosque);
}

.btn-modulo-activo {
  background: white;
  color: var(--verde-bosque);
  font-weight: 700;
  border-radius: 8px;
  font-size: 13px;
  border: none;
  padding: 10px;
  transition: all 0.2s;
}
.btn-modulo-activo:hover {
  background: #a5f3c8;
  transform: translateX(4px);
}
.btn-modulo-inactivo {
  background: #f0f4f0;
  color: #aaa;
  font-size: 13px;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: not-allowed;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer-proyecto {
  background: #0f3d22;
  padding: 28px 0;
}
.footer-texto { color: rgba(255,255,255,0.8); font-size: 13px; margin: 0; }
.footer-sub   { color: rgba(255,255,255,0.45); font-size: 11px; margin: 4px 0 0; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-titulo   { font-size: 2rem; }
  .dato-hero-num { font-size: 2.2rem; }
  .seccion-contenido { padding: 48px 0; }
}
