/* ============================================================
   VACA VERDE — Rediseño cinematográfico de paisaje
   Cultura: pionero de frontera · crecer y regenerar conviven ·
   un movimiento nacional · documental épico
   Paleta de dos corrientes: ámbar = extraer, verde = regenerar
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }

:root {
  --black: #070807;
  --ink: #0a0c0a;
  --panel: #121512;
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.20);
  --white: #f4f5f2;
  --muted: rgba(244,245,242,0.56);
  --faint: rgba(244,245,242,0.32);

  --extract: #E9A23B;   /* extraer — la fuerza */
  --regen:   #46C285;   /* regenerar — el retorno */
  --regen-deep: #1f7d54;

  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--regen); color: #04140d; }
img { display: block; max-width: 100%; }

/* film grain overlay sobre todo el sitio */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── tipografía base ── */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--faint); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.serif { font-family: var(--serif); font-weight: 400; }

/* ── reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.12s; } .d2 { transition-delay: 0.24s; } .d3 { transition-delay: 0.36s; } .d4 { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scene-bg { transform: none !important; }
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  background: linear-gradient(180deg, rgba(7,8,7,0.8), transparent);
  transition: background 0.4s ease, padding 0.4s ease;
}
nav.solid { background: rgba(7,8,7,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); padding: 14px 32px; }
.nav-logo { font-family: var(--serif); font-size: 21px; color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.nav-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--extract), var(--regen)); box-shadow: 0 0 14px rgba(70,194,133,0.5); }
.nav-cta { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); text-decoration: none; padding: 10px 20px; border: 1px solid var(--border-strong); transition: all 0.25s ease; }
.nav-cta:hover { background: var(--white); color: var(--black); }

/* ============================================================
   SCENE — sección full-bleed con paisaje
   ============================================================ */
.scene { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.scene-bg { position: absolute; inset: -6% 0; z-index: 0; background-size: cover; background-position: center; transform: scale(1.06); will-change: transform; }
.scene-shade { position: absolute; inset: 0; z-index: 1; }
.scene .wrap { position: relative; z-index: 2; }
.scene-content { padding: 140px 0; }

/* sombras direccionales reutilizables */
.shade-bottom { background: linear-gradient(180deg, rgba(7,8,7,0.55) 0%, rgba(7,8,7,0.2) 30%, rgba(7,8,7,0.78) 100%); }
.shade-left { background: linear-gradient(95deg, rgba(7,8,7,0.9) 0%, rgba(7,8,7,0.6) 45%, rgba(7,8,7,0.25) 100%); }
.shade-amber { background: linear-gradient(95deg, rgba(7,8,7,0.92) 0%, rgba(7,8,7,0.55) 55%, rgba(40,22,0,0.25) 100%); }
.shade-green { background: linear-gradient(265deg, rgba(7,8,7,0.92) 0%, rgba(7,8,7,0.55) 55%, rgba(4,30,18,0.3) 100%); }

/* ============================================================
   HERO
   ============================================================ */
#hero .scene-content { width: 100%; text-align: center; padding: 120px 0; }
.hero-eyebrow { margin-bottom: 30px; }
.hero-eyebrow .sep { color: var(--regen); margin: 0 4px; }
.wordmark { font-family: var(--serif); line-height: 0.92; font-size: clamp(68px, 15vw, 200px); letter-spacing: -0.035em; margin-bottom: 30px; }
.wordmark .verde { background: linear-gradient(116deg, var(--extract) 0%, var(--regen) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-tagline { font-family: var(--serif); font-size: clamp(20px, 2.8vw, 33px); line-height: 1.3; color: rgba(244,245,242,0.92); max-width: 680px; margin: 0 auto 16px; letter-spacing: -0.01em; }
.hero-sub { font-size: clamp(14px, 1.6vw, 16.5px); color: var(--muted); max-width: 540px; margin: 0 auto 42px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; padding: 16px 30px; border: none; transition: transform 0.18s ease, background 0.25s ease, color 0.25s ease; }
.btn-primary { background: linear-gradient(116deg, var(--extract), var(--regen)); color: #06140d; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--white); border: 1px solid var(--border-strong); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
.scroll-hint .mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,0.3); border-radius: 11px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-hint .mouse i { width: 3px; height: 6px; border-radius: 2px; background: var(--regen); animation: dot 2s ease-in-out infinite; }
@keyframes dot { 0%{transform:translateY(0);opacity:1} 60%{transform:translateY(9px);opacity:0} 100%{opacity:0} }

/* ============================================================
   MANIFIESTO — texto grande sobre negro
   ============================================================ */
#manifiesto { background: var(--black); padding: clamp(110px, 20vh, 200px) 0; text-align: center; }
.mani-kicker { margin-bottom: 36px; }
.mani-line { font-family: var(--serif); font-size: clamp(30px, 6vw, 76px); line-height: 1.06; letter-spacing: -0.025em; color: var(--white); max-width: 18ch; margin: 0 auto; }
.mani-strike { color: var(--faint); }
.mani-turn { font-family: var(--serif); font-size: clamp(26px, 4.6vw, 58px); line-height: 1.12; letter-spacing: -0.02em; margin: 36px auto 0; max-width: 20ch; }
.mani-turn .y { font-style: italic; background: linear-gradient(116deg, var(--extract), var(--regen)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mani-foot { font-size: clamp(15px, 1.8vw, 18px); color: var(--muted); max-width: 52ch; margin: 44px auto 0; line-height: 1.7; }

/* ============================================================
   MOTOR — dos corrientes (dos escenas apiladas)
   ============================================================ */
.motor-band { position: relative; min-height: 76vh; display: flex; align-items: flex-end; overflow: hidden; }
.motor-band .scene-bg { inset: -6% 0; }
.motor-inner { position: relative; z-index: 2; padding: 64px 0; }
.motor-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.motor-band.extract .motor-tag { color: var(--extract); }
.motor-band.regen .motor-tag { color: var(--regen); }
.motor-h { font-family: var(--serif); font-size: clamp(30px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 16px; max-width: 14ch; }
.motor-p { font-size: clamp(15px, 1.8vw, 18px); color: var(--muted); max-width: 46ch; line-height: 1.65; }
.motor-band.regen { text-align: right; }
.motor-band.regen .motor-inner { margin-left: auto; }
.motor-band.regen .motor-p, .motor-band.regen .motor-h { margin-left: auto; }
.motor-seam { background: var(--black); text-align: center; padding: clamp(70px,12vh,120px) 0; }
.motor-seam p { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 40px); line-height: 1.3; letter-spacing: -0.01em; color: rgba(244,245,242,0.9); max-width: 22ch; margin: 0 auto; }
.motor-seam .em { font-style: italic; background: linear-gradient(116deg, var(--extract), var(--regen)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ============================================================
   EQUILIBRIO — diagrama (ADN)
   ============================================================ */
#equilibrio { background: var(--ink); padding: clamp(100px,16vh,170px) 0; border-top: 1px solid var(--border); }
.eq-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.eq-label { margin-bottom: 22px; }
.eq-h { font-family: var(--serif); font-size: clamp(32px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 24px; }
.eq-lead { font-size: clamp(16px, 1.9vw, 19px); color: var(--muted); line-height: 1.68; }
.eq-card { background: #f7f7f4; padding: clamp(20px, 3vw, 40px); max-width: 1040px; margin: 0 auto; border: 1px solid var(--border); }
.eq-card img { width: 100%; }
.eq-cap { text-align: center; font-size: 12.5px; color: var(--faint); letter-spacing: 0.05em; margin-top: 20px; }

/* ============================================================
   CERTAMEN
   ============================================================ */
#certamen { background: var(--black); padding: clamp(100px,16vh,180px) 0; }
.cert-label { margin-bottom: 22px; }
.cert-h { font-family: var(--serif); font-size: clamp(34px, 6vw, 82px); line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 26px; }
.cert-h .hl { background: linear-gradient(116deg, var(--extract), var(--regen)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cert-lead { font-size: clamp(16px, 2vw, 21px); color: var(--muted); max-width: 56ch; line-height: 1.65; margin-bottom: 64px; }
.cert-lead strong { color: var(--white); font-weight: 600; }

.cert-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.cert-step { background: var(--panel); padding: 32px 26px 36px; position: relative; }
.cert-step .n { font-family: var(--serif); font-size: 14px; color: var(--regen); margin-bottom: 18px; display: inline-block; }
.cert-step h4 { font-family: var(--serif); font-size: clamp(20px,2.2vw,25px); font-weight: 400; line-height: 1.12; margin-bottom: 12px; letter-spacing: -0.01em; }
.cert-step p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.cert-step p b { color: var(--white); font-weight: 600; }

.cert-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.track { padding: 26px 28px; border: 1px solid var(--border); background: rgba(255,255,255,0.015); }
.track .ico { font-size: 22px; margin-bottom: 12px; }
.track h5 { font-family: var(--serif); font-size: 21px; font-weight: 400; margin-bottom: 6px; }
.track p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.cert-pool { margin-top: 60px; border-top: 1px solid var(--border); padding-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cert-pool .pool-h { font-family: var(--serif); font-size: clamp(24px,3.4vw,40px); line-height: 1.12; letter-spacing: -0.02em; }
.cert-pool .pool-h .hl { color: var(--extract); }
.cert-pool p { font-size: clamp(15px,1.8vw,17px); color: var(--muted); line-height: 1.68; }
.cert-pool p + p { margin-top: 16px; }
.cert-pool .pool-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cert-pool .ptag { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--border-strong); color: var(--white); }

@media (max-width: 900px) {
  .cert-steps { grid-template-columns: 1fr 1fr; }
  .cert-pool { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) { .cert-steps { grid-template-columns: 1fr; } .cert-tracks { grid-template-columns: 1fr; } }

/* ============================================================
   MOVIMIENTO / SUMATE
   ============================================================ */
#sumate { position: relative; overflow: hidden; }
#sumate .scene-bg { inset: -6% 0; }
#sumate .scene-content { width: 100%; padding: clamp(110px,18vh,190px) 0; }
.sum-head { text-align: center; max-width: 760px; margin: 0 auto 12px; }
.sum-kicker { margin-bottom: 26px; }
.sum-h { font-family: var(--serif); font-size: clamp(34px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 26px; }
.sum-lead { font-size: clamp(16px,1.9vw,19px); color: rgba(244,245,242,0.7); max-width: 50ch; margin: 0 auto; line-height: 1.6; }

.form-card { max-width: 560px; margin: 48px auto 0; background: rgba(10,12,10,0.78); backdrop-filter: blur(10px); border: 1px solid var(--border); border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--extract), var(--regen)) 1; padding: clamp(28px,4vw,44px); }
.fg { margin-bottom: 18px; }
.fl { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.fi, .fse { width: 100%; padding: 13px 15px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--white); font-size: 15px; font-family: var(--sans); outline: none; transition: border 0.2s ease; }
.fi:focus, .fse:focus { border-color: var(--border-strong); }
.fi::placeholder { color: var(--faint); }
.fse { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.fse option { background: var(--panel); color: var(--white); }
.fsub { width: 100%; margin-top: 6px; padding: 16px; border: none; cursor: pointer; background: linear-gradient(116deg, var(--extract), var(--regen)); color: #06140d; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: transform 0.15s ease, opacity 0.2s ease; }
.fsub:hover { transform: translateY(-2px); }
.fsub:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.fnote { font-size: 12px; color: var(--faint); margin-top: 14px; text-align: center; }
.form-error { font-size: 13px; color: #f0917e; margin-top: 12px; text-align: center; display: none; }
.form-error.show { display: block; }
.form-success { text-align: center; padding: 22px 8px; }
.form-success .ck { width: 46px; height: 46px; margin: 0 auto 16px; }
.form-success h4 { font-family: var(--serif); font-size: 27px; font-weight: 400; margin-bottom: 10px; }
.form-success p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(6,20,13,0.35); border-top-color: #06140d; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--black); border-top: 1px solid var(--border); padding: 64px 32px; text-align: center; position: relative; z-index: 2; }
.foot-mark { font-family: var(--serif); font-size: 26px; margin-bottom: 14px; }
.foot-mark .verde { color: var(--regen); }
.foot-meta { font-size: 12.5px; color: var(--faint); letter-spacing: 0.05em; line-height: 2; }
.foot-meta a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.foot-meta a:hover { color: var(--white); }

@media (max-width: 600px) {
  .wrap { padding: 0 22px; }
  nav { padding: 16px 22px; }
  .motor-band.regen { text-align: left; }
  .scene-bg { background-attachment: scroll; }
}
