/* ===========================
   MADRE TIERRA — styles.css
   Estética: Editorial Orgánica
   Paleta: Tierra, Bosque, Agua
=========================== */

/* --- VARIABLES & RESET --- */
:root {
  --verde-deep: #1a3a2a;
  --verde-mid: #2d6a4f;
  --verde-light: #52b788;
  --verde-pale: #b7e4c7;
  --tierra: #c8855a;
  --tierra-dark: #8b4a2b;
  --agua: #1e6091;
  --cielo: #a8dadc;
  --arena: #f4e6cf;
  --crema: #faf7f2;
  --carbon: #1a1a1a;
  --gris: #6b6b6b;

  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  --radius: 16px;
  --radius-lg: 28px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--crema);
  color: var(--carbon);
  cursor: none;
  overflow-x: hidden;
}

/* --- CURSOR --- */
.cursor {
  width: 10px; height: 10px;
  background: var(--verde-mid);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 2px solid var(--verde-light);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
  opacity: 0.6;
}

/* --- NAV --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45, 106, 79, 0.1);
}
.nav-logo {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--verde-deep);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; gap: 36px; list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--verde-deep);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--verde-light);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--verde-mid);
  color: white;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s;
}
.nav-cta:hover { background: var(--verde-deep); transform: scale(1.04); }

/* --- HERO --- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 120px 48px 0;
  background: var(--verde-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.3;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--verde-light), transparent);
  top: -200px; right: -100px;
  animation: drift 12s ease-in-out infinite alternate;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--tierra), transparent);
  bottom: 100px; left: -100px;
  animation: drift 15s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--agua), transparent);
  top: 50%; left: 40%;
  animation: drift 10s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.1); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 740px;
  padding-bottom: 60px;
}
.hero-tag {
  display: inline-block;
  background: rgba(82, 183, 136, 0.2);
  color: var(--verde-pale);
  border: 1px solid rgba(82, 183, 136, 0.3);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease forwards;
}
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 1.0;
  color: white;
  letter-spacing: -0.03em;
  animation: fadeUp 0.9s 0.1s ease both;
}
.hero-title em {
  font-style: italic;
  color: var(--verde-pale);
}
.hero-q {
  display: block;
  color: var(--tierra);
  font-size: 0.7em;
}
.hero-sub {
  margin-top: 28px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  animation: fadeUp 1s 0.2s ease both;
}
.hero-actions {
  margin-top: 40px;
  display: flex; gap: 16px; align-items: center;
  animation: fadeUp 1s 0.3s ease both;
}
.btn-primary {
  background: var(--verde-light);
  color: var(--verde-deep);
  padding: 14px 30px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s;
}
.btn-primary:hover {
  background: var(--verde-pale);
  transform: scale(1.04);
}
.btn-primary.large { padding: 18px 42px; font-size: 1rem; }
.btn-ghost {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.btn-ghost:hover { opacity: 1; }
.hero-stat-strip {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  margin: 0 -48px;
  padding-left: 48px;
}
.stat-item {
  display: flex; flex-direction: column; gap: 4px;
  padding-right: 48px;
}
.stat-num {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--verde-pale);
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.15);
  margin-right: 48px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- SECTION LABEL --- */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--verde-mid);
  font-weight: 600;
  margin-bottom: 40px;
}

/* --- CRISIS --- */
.crisis {
  padding: 120px 48px;
  background: var(--crema);
}
.crisis-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.crisis-intro h2 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--verde-deep);
  margin-bottom: 24px;
}
.crisis-intro h2 em {
  font-style: italic;
  color: var(--tierra);
}
.crisis-intro p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gris);
}
.crisis-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.crisis-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.crisis-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
}
.crisis-card[data-color="forest"]::before { background: var(--verde-mid); }
.crisis-card[data-color="ocean"]::before  { background: var(--agua); }
.crisis-card[data-color="air"]::before    { background: var(--cielo); }
.crisis-card[data-color="soil"]::before   { background: var(--tierra); }
.crisis-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.crisis-icon { font-size: 2rem; margin-bottom: 14px; }
.crisis-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--verde-deep);
  margin-bottom: 10px;
}
.crisis-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gris);
  margin-bottom: 18px;
}
.crisis-card p strong { color: var(--carbon); }
.crisis-bar {
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}
.crisis-fill {
  height: 100%;
  width: var(--fill);
  background: linear-gradient(90deg, var(--verde-light), var(--tierra));
  border-radius: 100px;
  transition: width 1.5s ease;
}
.crisis-percent {
  font-size: 0.75rem;
  color: var(--gris);
}

/* --- ECOSISTEMAS --- */
.ecosistemas {
  padding: 120px 48px;
  background: var(--verde-deep);
  color: white;
}
.eco-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.eco-title em { font-style: italic; color: var(--verde-pale); }
.eco-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.eco-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.eco-tab {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.25s;
}
.eco-tab.active, .eco-tab:hover {
  background: var(--verde-light);
  color: var(--verde-deep);
  border-color: var(--verde-light);
  font-weight: 600;
}
.eco-panels { position: relative; min-height: 380px; }
.eco-panel {
  display: none;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: center;
  animation: fadeUp 0.5s ease;
}
.eco-panel.active { display: grid; }
.eco-visual {
  width: 220px; height: 220px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.amazonia-vis  { background: radial-gradient(circle at 40% 40%, #2d6a4f, #1a3a2a); }
.arrecifes-vis { background: radial-gradient(circle at 40% 40%, #1e6091, #0a2a40); }
.glaciares-vis { background: radial-gradient(circle at 40% 40%, #a8dadc, #4a8fa8); }
.humedales-vis { background: radial-gradient(circle at 40% 40%, #6aab74, #2d5a3d); }
.eco-emoji-big {
  font-size: 5rem;
  position: relative; z-index: 1;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}
.eco-info h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 14px;
}
.eco-info p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}
.eco-info p strong { color: var(--verde-pale); }
.eco-facts {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
}
.eco-facts li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  padding-left: 18px;
  position: relative;
}
.eco-facts li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--verde-light);
}
.eco-alert {
  background: rgba(200, 133, 90, 0.15);
  border-left: 3px solid var(--tierra);
  color: rgba(255,255,255,0.8);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* --- DATOS --- */
.datos {
  padding: 120px 48px;
  background: var(--arena);
}
.datos-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 60px;
  line-height: 1.1;
}
.datos-title em { font-style: italic; color: var(--verde-mid); }
.datos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dato-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.dato-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.07);
}
.dato-card.big {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  background: var(--verde-deep);
  color: white;
}
.dato-card.big p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.5; margin-top: 20px; }
.dato-card.accent {
  background: var(--verde-mid);
  color: white;
}
.dato-card.accent p { color: rgba(255,255,255,0.8); }
.dato-circle {
  width: 140px; height: 140px;
  position: relative;
}
.dato-circle svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.circle-bg {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 10;
}
.circle-fill {
  fill: none;
  stroke: var(--verde-light);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: var(--dash) 339.29;
  stroke-dashoffset: calc(339.29 - (339.29 * 31 / 100));
}
.dato-pct {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: white;
}
.dato-num {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--verde-deep);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.dato-card.accent .dato-num { color: white; }
.dato-num span {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gris);
}
.dato-card.accent .dato-num span { color: rgba(255,255,255,0.7); }
.dato-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gris);
}

/* --- ACCIONES --- */
.acciones {
  padding: 120px 48px;
  background: var(--crema);
}
.acciones-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.acciones-header h2 {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--verde-deep);
}
.acciones-header h2 em { font-style: italic; color: var(--tierra); }
.acciones-header p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gris);
}
.acciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.accion-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.accion-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.accion-card[data-level="individual"] { border-top: 4px solid var(--verde-light); }
.accion-card[data-level="comunidad"]  { border-top: 4px solid var(--tierra); }
.accion-card[data-level="global"]     { border-top: 4px solid var(--agua); }
.accion-nivel {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gris);
  margin-bottom: 16px;
}
.accion-icon { font-size: 2.5rem; margin-bottom: 12px; }
.accion-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--verde-deep);
  margin-bottom: 16px;
}
.accion-card ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.accion-card li {
  font-size: 0.88rem;
  color: var(--gris);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.accion-card li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--verde-mid);
  font-weight: 700;
}
.acciones-cta {
  text-align: center;
  padding: 60px;
  background: var(--verde-deep);
  border-radius: var(--radius-lg);
  color: white;
}
.acciones-cta p {
  font-size: 1.3rem;
  margin-bottom: 28px;
  opacity: 0.85;
  line-height: 1.6;
}
.acciones-cta strong { color: var(--verde-pale); }

/* --- FOOTER --- */
.footer {
  background: var(--carbon);
  padding: 64px 48px;
  color: white;
}
.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--verde-pale);
}
.footer-frase {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 8px;
}
.footer-attr {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
}
.footer-links {
  display: flex; justify-content: center; gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--verde-light); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 0; }
  .hero-stat-strip { padding-left: 24px; margin: 0 -24px; overflow-x: auto; }
  .crisis { padding: 80px 24px; }
  .crisis-grid { grid-template-columns: 1fr; gap: 40px; }
  .crisis-cards { grid-template-columns: 1fr; }
  .ecosistemas { padding: 80px 24px; }
  .eco-panel.active { grid-template-columns: 1fr; gap: 30px; }
  .eco-visual { width: 160px; height: 160px; }
  .datos { padding: 80px 24px; }
  .datos-grid { grid-template-columns: 1fr 1fr; }
  .dato-card.big { grid-column: 1 / 3; grid-row: auto; }
  .acciones { padding: 80px 24px; }
  .acciones-header { grid-template-columns: 1fr; gap: 24px; }
  .acciones-grid { grid-template-columns: 1fr; }
  .footer { padding: 48px 24px; }
}

@media (max-width: 600px) {
  .datos-grid { grid-template-columns: 1fr; }
  .dato-card.big { grid-column: 1; }
}
