/* ===== Tokens ===== */
:root{
  --bg:        #0a0f14;
  --bg-alt:    #0e151c;
  --surface:   #121b24;
  --surface-2: #18242f;
  --line:      #213240;
  --text:      #e8eef3;
  --muted:     #9bb0bf;
  --brand:     #ffd23f;   /* energía / amarillo */
  --brand-2:   #2ee6a6;   /* verde renovable */
  --accent:    #38bdf8;   /* azul agua */
  --danger:    #ff6b6b;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 18px 50px -20px rgba(0,0,0,.7);
  --maxw:      1140px;
  --font:      'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display:   'Sora', var(--font);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit}
img{max-width:100%}
h1,h2,h3{font-family:var(--display);line-height:1.12;margin:0}

/* ===== NAV ===== */
.nav{
  position:sticky;top:0;z-index:50;
  background:rgba(10,15,20,.72);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.nav__inner{
  max-width:var(--maxw);margin:0 auto;padding:14px 22px;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
}
.nav__brand{
  display:flex;align-items:center;gap:10px;
  font-family:var(--display);font-weight:700;font-size:1.05rem;text-decoration:none;letter-spacing:.2px;
}
.nav__brand strong{color:var(--brand)}
.nav__spark{
  width:14px;height:14px;border-radius:50%;
  background:radial-gradient(circle at 30% 30%, var(--brand), #d98a00);
  box-shadow:0 0 14px 2px rgba(255,210,63,.55);
  flex:0 0 auto;
}
.nav__links{display:flex;gap:6px;margin-left:auto}
.nav__links a{
  text-decoration:none;color:var(--muted);font-weight:500;font-size:.93rem;
  padding:8px 14px;border-radius:999px;transition:.2s;
}
.nav__links a:hover{color:var(--text);background:var(--surface-2)}
.nav__toggle{
  display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:6px;
}
.nav__toggle span{width:24px;height:2px;background:var(--text);border-radius:2px;transition:.25s}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:13px 24px;border-radius:999px;font-weight:600;font-size:.96rem;
  text-decoration:none;cursor:pointer;border:1px solid transparent;transition:.22s;
}
.btn--primary{background:var(--brand);color:#11161b}
.btn--primary:hover{transform:translateY(-2px);box-shadow:0 12px 30px -10px rgba(255,210,63,.6)}
.btn--ghost{border-color:var(--line);color:var(--text);background:rgba(255,255,255,.02)}
.btn--ghost:hover{border-color:var(--brand-2);color:var(--brand-2)}

/* ===== HERO ===== */
.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line)}
.hero__glow{
  position:absolute;inset:-30% -10% auto -10%;height:620px;pointer-events:none;
  background:
    radial-gradient(closest-side at 18% 30%, rgba(255,210,63,.16), transparent 70%),
    radial-gradient(closest-side at 80% 10%, rgba(46,230,166,.14), transparent 70%),
    radial-gradient(closest-side at 60% 60%, rgba(56,189,248,.12), transparent 70%);
  filter:blur(8px);
}
.hero__inner{
  position:relative;max-width:var(--maxw);margin:0 auto;
  padding:84px 22px 72px;
}
.hero__eyebrow{
  display:inline-block;margin:0 0 18px;
  font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;font-weight:600;
  color:var(--brand-2);
  border:1px solid var(--line);border-radius:999px;padding:7px 16px;background:rgba(46,230,166,.06);
}
.hero__title{
  font-size:clamp(2.1rem,5.4vw,4rem);font-weight:800;max-width:16ch;margin:0 0 22px;
}
.grad{
  background:linear-gradient(100deg,var(--brand),var(--brand-2) 60%,var(--accent));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero__lead{font-size:clamp(1.05rem,2vw,1.25rem);color:var(--muted);max-width:60ch;margin:0 0 30px}
.hero__lead strong{color:var(--text)}
.hero__cta{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:54px}
.hero__stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:0;
  border-top:1px solid var(--line);padding-top:30px;
}
.hero__stats dt{font-family:var(--display);font-weight:800;font-size:clamp(1.4rem,3vw,2rem);color:var(--brand)}
.hero__stats dd{margin:6px 0 0;color:var(--muted);font-size:.92rem;max-width:30ch}

/* ===== Sections ===== */
.section{max-width:var(--maxw);margin:0 auto;padding:84px 22px}
.section--alt{background:var(--bg-alt);max-width:none}
.section--alt > *{max-width:var(--maxw);margin-left:auto;margin-right:auto}
.section__head{max-width:62ch;margin-bottom:46px}
.kicker{
  display:inline-block;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;
  font-weight:700;color:var(--brand);margin-bottom:14px;
}
.section__head h2{font-size:clamp(1.7rem,3.5vw,2.6rem);font-weight:700;margin-bottom:16px}
.section__intro{color:var(--muted);font-size:1.05rem}
.section__intro strong{color:var(--text)}

/* ===== Dicho tico ===== */
.dicho{
  max-width:var(--maxw);margin:0 auto;padding:30px 22px 6px;text-align:center;
}
.dicho__quote{
  font-family:var(--display);font-weight:800;
  font-size:clamp(1.35rem,3.4vw,2.15rem);line-height:1.2;margin:0 0 10px;
  background:linear-gradient(100deg,var(--brand),var(--brand-2) 60%,var(--accent));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.dicho__gloss{margin:0 auto;max-width:60ch;color:var(--muted);font-size:1.02rem}

/* ===== Cards ===== */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{
  background:linear-gradient(180deg,var(--surface),var(--surface-2));
  border:1px solid var(--line);border-radius:var(--radius);
  padding:28px 26px;position:relative;overflow:hidden;
  transition:transform .25s, border-color .25s;
}
.card::before{
  content:"";position:absolute;left:0;top:0;height:4px;width:100%;
  background:var(--brand);opacity:.85;
}
.card--objetivos::before{background:var(--accent)}
.card--riesgo::before{background:var(--brand)}
.card--ambiente::before{background:var(--brand-2)}
.card:hover{transform:translateY(-6px);border-color:var(--surface-2)}
.card__tag{
  display:inline-block;font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;
  font-weight:700;color:var(--muted);margin-bottom:12px;
}
.card h3{font-size:1.22rem;margin-bottom:16px}
.card ul{margin:0;padding-left:18px;display:grid;gap:11px}
.card li{color:var(--muted);font-size:.95rem}
.card li strong{color:var(--text)}

/* ===== Audio player ===== */
.player{
  display:flex;align-items:center;gap:26px;flex-wrap:wrap;
  background:linear-gradient(120deg,var(--surface),var(--surface-2));
  border:1px solid var(--line);border-radius:var(--radius);
  padding:26px 28px;box-shadow:var(--shadow);
}
.player__art{
  width:88px;height:88px;border-radius:20px;flex:0 0 auto;
  display:grid;place-items:center;color:#11161b;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
}
.player__body{flex:1 1 320px;min-width:280px}
.player__title{margin:0;font-family:var(--display);font-weight:700;font-size:1.1rem}
.player__sub{margin:2px 0 16px;color:var(--muted);font-size:.85rem}
.player__audio{width:100%;height:44px;display:block}

/* ===== Audio summary ===== */
.audio-summary{
  margin-top:22px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  border-left:4px solid var(--brand);
  padding:26px 28px;
}
.audio-summary h3{font-size:1.15rem;margin-bottom:14px}
.audio-summary p{margin:0 0 16px;color:var(--muted)}
.audio-summary p strong{color:var(--text)}
.audio-summary__points{margin:0;padding-left:20px;display:grid;gap:11px}
.audio-summary__points li{color:var(--muted);font-size:.95rem}
.audio-summary__points li strong{color:var(--brand-2)}

/* ===== YouTube ===== */
.yt{display:grid;grid-template-columns:1.7fr 1fr;gap:22px;align-items:start}
.yt__frame{
  position:relative;padding-top:56.25%;border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);background:#000;box-shadow:var(--shadow);
}
.yt__frame iframe,.yt__frame > div{position:absolute;inset:0;width:100%;height:100%;border:0}
.yt__list{
  list-style:none;margin:0;padding:8px;display:grid;gap:8px;
  max-height:430px;overflow-y:auto;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  scrollbar-width:thin;scrollbar-color:var(--line) transparent;
}
.yt__item{
  display:flex;gap:12px;align-items:center;padding:8px;border-radius:var(--radius-sm);
  cursor:pointer;transition:.18s;border:1px solid transparent;text-align:left;width:100%;background:none;color:inherit;font:inherit;
}
.yt__item:hover{background:var(--surface-2)}
.yt__item.is-active{background:var(--surface-2);border-color:var(--brand)}
.yt__thumb{
  position:relative;width:108px;flex:0 0 auto;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#000;
}
.yt__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.yt__num{
  position:absolute;left:5px;top:5px;background:rgba(0,0,0,.7);color:#fff;
  font-size:.68rem;font-weight:700;border-radius:6px;padding:2px 6px;
}
.yt__item.is-active .yt__num{background:var(--brand);color:#11161b}
.yt__txt{font-size:.86rem;font-weight:500;color:var(--muted);line-height:1.35}
.yt__item.is-active .yt__txt,.yt__item:hover .yt__txt{color:var(--text)}

/* ===== Articles ===== */
.articles{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.article{
  display:flex;flex-direction:column;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:24px 24px 22px;transition:transform .25s,border-color .25s;
}
.article:hover{transform:translateY(-5px);border-color:var(--surface-2)}
.article__head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.article__src{font-size:.74rem;font-weight:700;letter-spacing:.04em;color:var(--brand-2);text-transform:uppercase}
.article__date{font-size:.74rem;color:var(--muted);white-space:nowrap}
.article h3{font-size:1.1rem;margin-bottom:12px;line-height:1.25}
.article p{margin:0 0 18px;color:var(--muted);font-size:.92rem}
.article__link{
  margin-top:auto;align-self:flex-start;text-decoration:none;font-weight:600;font-size:.88rem;color:var(--brand);
  border-bottom:1px solid transparent;transition:.2s;
}
.article__link:hover{border-color:var(--brand)}

/* ===== Footer ===== */
.footer{border-top:1px solid var(--line);background:var(--bg-alt)}
.footer__inner{
  max-width:var(--maxw);margin:0 auto;padding:54px 22px 26px;
  display:grid;grid-template-columns:1.6fr 1fr;gap:34px;
}
.footer__brand{display:flex;align-items:center;gap:9px;font-family:var(--display);font-weight:700;margin:0 0 12px}
.footer__brand strong{color:var(--brand)}
.footer__note{color:var(--muted);font-size:.9rem;max-width:60ch;margin:0}
.footer__links{display:flex;flex-direction:column;gap:10px}
.footer__links a{text-decoration:none;color:var(--muted);font-size:.92rem;transition:.2s}
.footer__links a:hover{color:var(--brand)}
.footer__copy{
  max-width:var(--maxw);margin:0 auto;padding:18px 22px 34px;
  color:var(--muted);font-size:.8rem;border-top:1px solid var(--line);
}

/* ===== Reveal animation ===== */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
.reveal.is-visible{opacity:1;transform:none}

/* ===== Responsive ===== */
@media (max-width:920px){
  .cards,.articles{grid-template-columns:repeat(2,1fr)}
  .yt{grid-template-columns:1fr}
  .yt__list{max-height:none}
}
@media (max-width:640px){
  .nav__links{
    position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:4px;
    background:var(--bg);border-bottom:1px solid var(--line);padding:14px 18px;
    transform:translateY(-12px);opacity:0;pointer-events:none;transition:.25s;
  }
  .nav__links.is-open{transform:none;opacity:1;pointer-events:auto}
  .nav__toggle{display:flex}
  .cards,.articles{grid-template-columns:1fr}
  .hero__stats{grid-template-columns:1fr;gap:22px}
  .player{justify-content:center;text-align:center}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
}
