/* Inicio de la demo */

/* ---------- Héroe ---------- */
.h-hero { position: relative; min-height: calc(100svh - var(--vd-bar, 48px)); display: flex; flex-direction: column; overflow: hidden; color: var(--white);
  background: radial-gradient(80% 90% at 75% 40%, #036A38 0%, #02301A 55%, #011F11 100%); }
.h-hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-hero__grain { position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.h-hero__nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.h-hero__logo { height: 36px; width: auto; }
.h-hero__in { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 96px; }
.h-hero__title { margin-top: 24px; }
.h-hero__muted { color: rgba(255, 255, 255, .42); }
.h-hero__lead { margin-top: 28px; color: rgba(255, 255, 255, .82); max-width: 560px; }
.h-hero__lead b { color: var(--white); }
.h-hero__cta { margin-top: 36px; }
.h-hero__hint { margin-top: 20px; font-size: var(--text-caption); color: rgba(255, 255, 255, .55); }
.h-hero__hint kbd { font-family: inherit; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; padding: 1px 7px; }
.h-hero__stats { position: relative; display: grid; gap: 16px; }
.h-stat { padding: 24px 28px; transition: transform .5s var(--ease-reveal); will-change: transform; }
.h-stat .vd-stat b { font-size: clamp(36px, 3.6vw, 56px); }
.h-stat--b { margin-left: 48px; }
.h-stat--c { margin-left: 16px; }
.h-hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 24px; width: 48px; height: 48px; margin-left: -24px; display: grid; place-items: center; border-radius: 50%;
  color: var(--white); border: 1px solid rgba(255, 255, 255, .4); animation: h-bob 2.4s var(--ease-in-out) infinite; }
.h-hero__scroll svg { width: 20px; height: 20px; }
@keyframes h-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- Fusión ---------- */
.h-fuse { position: relative; height: 320vh; background: var(--green-950); color: var(--white); }
.h-fuse__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(60% 60% at 50% 60%, rgba(0, 154, 68, .22) 0%, rgba(1, 31, 17, 0) 70%), var(--green-950); }
.h-fuse__copy { position: relative; z-index: 3; padding-top: clamp(40px, 7vh, 80px); }
.h-fuse__copy h2 { position: relative; margin-top: 16px; min-height: 2.3em; max-width: 900px; color: var(--white); }
.h-fuse__line { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity .7s var(--ease-reveal), transform .7s var(--ease-reveal), filter .7s var(--ease-reveal); }
.h-fuse__line.is-on { opacity: 1; transform: none; filter: none; }
.h-fuse__stage { position: relative; flex: 1; margin: 0 auto; width: min(1200px, 100%); }
.h-fuse__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.h-fuse__wires path { fill: none; stroke: rgba(205, 235, 217, .45); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.h-fuse__wires path.is-dash { stroke: rgba(205, 235, 217, .3); }
.h-fuse__site, .h-fuse__bu, .h-fuse__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); will-change: transform, opacity; }
.h-fuse__site { width: 250px; padding: 14px 18px 18px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 4px; }
.h-fuse__site:nth-of-type(odd) { filter: saturate(.6); }
.h-fuse__dots { display: flex; gap: 5px; margin-bottom: 10px; }
.h-fuse__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.h-fuse__site b { font-size: 18px; }
.h-fuse__site small { font-size: 13px; color: rgba(255, 255, 255, .6); }
.h-fuse__core { display: grid; justify-items: center; gap: 10px; opacity: 0; }
.h-fuse__core img { width: 92px; height: auto; position: relative; filter: drop-shadow(0 12px 40px rgba(0, 154, 68, .6)); }
.h-fuse__core b { position: relative; font-size: 20px; letter-spacing: -0.01em; }
.h-fuse__glow { position: absolute; left: 50%; top: 40%; width: 420px; height: 420px; transform: translate(-50%, -50%); background: var(--glow-green); filter: blur(10px); animation: h-breathe 5s var(--ease-in-out) infinite; }
@keyframes h-breathe { 0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(.92); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
.h-fuse__bu { display: grid; justify-items: center; gap: 8px; opacity: 0; padding: 14px 18px; border-radius: var(--radius-lg);
  background: var(--glass-dark); border: 1px solid var(--glass-border-soft); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.h-fuse__bu small { font-size: 12px; color: rgba(255, 255, 255, .6); font-family: var(--font-mono); }
.h-fuse__bu--new { border-style: dashed; background: transparent; }
.h-fuse__plus { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.h-fuse__plus svg { width: 18px; height: 18px; }
.h-fuse__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.h-fuse__progress i { display: block; height: 100%; width: 0; background: var(--green-500); }

/* ---------- Retos ---------- */
.h-retos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.h-reto { padding: 28px; display: grid; align-content: start; gap: 12px; }
.h-reto > svg { width: 32px; height: 32px; color: var(--green-500); margin-bottom: 8px; }
.h-reto p { color: var(--ink-700); font-size: var(--text-body-sm); }

/* ---------- Bento de actos ---------- */
.h-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 260px; gap: var(--grid-gap); }
.h-bento .vd-photo-card { aspect-ratio: auto; }
.h-bento .vd-photo-card__cap { max-width: 520px; }
.h-bento__a { grid-column: span 2; grid-row: span 2; }
.h-bento__b { grid-column: span 2; grid-row: span 2; }
.h-bento__c { grid-column: span 2; grid-row: span 2; }
.h-bento__d { grid-column: span 4; grid-row: span 2; }
.h-bento__e { grid-column: span 2; grid-row: span 2; }

/* ---------- Manifiesto ---------- */
.h-manifesto { min-height: 90vh; display: flex; align-items: center; }
.h-manifesto__img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.h-manifesto__in { display: grid; gap: 28px; padding-top: 120px; padding-bottom: 120px; }
.h-manifesto h2 { max-width: 19ch; font-size: clamp(36px, 4.6vw, 68px); }
.h-manifesto::after { background: linear-gradient(90deg, rgba(1,31,17,.88) 0%, rgba(2,48,26,.55) 45%, rgba(2,48,26,0) 75%); }

@media (max-width: 1100px) {
  .h-retos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; }
  .h-bento > * { grid-column: span 1 !important; grid-row: span 2 !important; }
  .h-bento__d { grid-column: span 2 !important; }
}
@media (max-width: 900px) {
  .h-hero__in { grid-template-columns: 1fr; }
  .h-stat--b, .h-stat--c { margin-left: 0; }
  .h-hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .h-stat { padding: 16px; }
  .h-stat .vd-stat b { font-size: 28px; }
  .h-fuse__site { width: 170px; padding: 10px 12px 12px; }
  .h-fuse__site b { font-size: 14px; }
  .h-fuse__bu { padding: 10px; }
  .h-fuse__bu .vd-lockup img { height: 16px; }
  .h-fuse__bu .vd-lockup__geo { font-size: 11px; }
}
@media (max-width: 640px) {
  .h-retos { grid-template-columns: 1fr; }
  .h-bento { grid-template-columns: 1fr; }
  .h-bento > * { grid-column: span 1 !important; }
  .h-hero__stats { grid-template-columns: 1fr; }
  .h-fuse__site small, .h-fuse__bu small { display: none; }
  .h-fuse__site { width: 140px; }
  .h-fuse__bu .vd-lockup img { display: none; }
  .h-fuse__bu .vd-lockup__geo { border: 0; padding: 0; font-size: 13px; font-weight: 700; }
  .h-fuse__site b { font-size: 12px; }
}
