/* Eco · landing page. Sin dependencias externas. */
:root {
  --paper: #fbfbfd;
  --gray: #f5f5f7;
  --ink: #1d1d1f;
  --mute: #6e6e73;
  --blue: #0071e3;
  --cyan: #64d2ff;
  --amber: #ff9f0a;
  --rose: #ff375f;
  --red: #ff453a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav__inner {
  max-width: 1080px; margin: 0 auto; height: 48px; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav__brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.nav__links { display: flex; gap: 1.75rem; font-size: 0.8125rem; }
.nav__links a { text-decoration: none; color: #424245; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- Botones ---------- */
.pill {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-size: 1.0625rem; font-weight: 500; padding: 0.75rem 1.6rem; border-radius: 980px;
  transition: background .2s, transform .2s;
}
.pill:hover { background: #0077ed; }
.pill:active { transform: scale(0.98); }
.pill--small { font-size: 0.75rem; padding: 0.35rem 0.9rem; }
.textlink { color: var(--blue); text-decoration: none; font-size: 1.0625rem; }
.textlink:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 48px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.5rem 5rem; overflow: hidden;
}
.hero__title { position: relative; display: inline-block; margin-bottom: 1.5rem; }
.echo, .echo__ring {
  font-size: clamp(7rem, 26vw, 17rem);
  font-weight: 700; letter-spacing: -0.06em; line-height: 0.9;
  padding: 0 0.05em;
}
.echo { position: relative; z-index: 2; }
.echo__ring {
  position: absolute; inset: 0; z-index: 1;
  color: transparent; -webkit-text-stroke: 2px var(--blue);
  opacity: 0; pointer-events: none; user-select: none;
  animation: echo 4.8s cubic-bezier(.2, .6, .3, 1) infinite;
}
.echo__ring:nth-of-type(2) { animation-delay: 0s; }
.echo__ring:nth-of-type(3) { animation-delay: 1.2s; }
.echo__ring:nth-of-type(4) { animation-delay: 2.4s; }
@keyframes echo {
  0%   { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0;    transform: scale(1.55); }
}
.hero__lead { font-size: clamp(1.4rem, 3.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.hero__sub { margin-top: 1rem; color: var(--mute); font-size: clamp(1rem, 2vw, 1.3rem); max-width: 30em; }
.hero__actions { margin-top: 2rem; display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Secciones ---------- */
.section { padding: clamp(5rem, 12vw, 9rem) 1.5rem; }
.section--tight { padding-top: clamp(2rem, 6vw, 4rem); }
.section--gray { background: var(--gray); }
.section--dark { background: #1d1d1f; color: #f5f5f7; }
.section--black { background: #000; color: #f5f5f7; }
.container { max-width: 760px; margin: 0 auto; }
.container--wide { max-width: 1020px; }
.center { text-align: center; }

.h2 {
  font-size: clamp(2rem, 5.6vw, 3.5rem); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.07; max-width: 17em;
}
.h2.center { margin-left: auto; margin-right: auto; }
.lead {
  margin-top: 1.1rem; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.4;
  color: var(--mute); max-width: 34em; letter-spacing: -0.01em;
}
.lead.center { margin-left: auto; margin-right: auto; }
.section--dark .lead, .section--black .lead { color: #a1a1a6; }

/* ---------- Video ---------- */
.video {
  margin-top: 3rem; border-radius: 28px; overflow: hidden; background: #000;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}
.video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Historia ---------- */
.beats { margin-top: 3.5rem; border-top: 1px solid rgba(0, 0, 0, 0.12); }
.beats li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem 3rem;
  padding: 1.75rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.beats h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.beats p { color: #424245; }

/* ---------- Tres actos ---------- */
.acts { margin-top: 4rem; }
.acts__bar { display: grid; grid-template-columns: 25fr 50fr 25fr; gap: 4px; font-size: 0.875rem; font-weight: 600; }
.acts__bar span { padding: 0.65rem 0.5rem; text-align: center; color: #fff; }
.acts__bar .a1 { background: #2f9bd8; border-radius: 12px 4px 4px 12px; }
.acts__bar .a2 { background: #e08a00; }
.acts__bar .a3 { background: #e5384f; border-radius: 4px 12px 12px 4px; }
.curve { position: relative; aspect-ratio: 1000 / 300; margin-top: 0.5rem; }
.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.curve__base { stroke: rgba(0, 0, 0, 0.14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.curve__path { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.acts.is-in .curve__path { animation: draw 4.5s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pt { position: absolute; transform: translate(-50%, -50%); width: 0; height: 0; opacity: 0; }
.pt i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--paper); }
.pt b { position: absolute; bottom: 14px; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.pt--3 b { left: auto; right: -4px; transform: none; bottom: auto; top: 14px; }
.acts.is-in .pt { animation: pop .5s ease forwards; }
.acts.is-in .pt--1 { animation-delay: 1.1s; }
.acts.is-in .pt--2 { animation-delay: 3.2s; }
.acts.is-in .pt--3 { animation-delay: 4.1s; }
@keyframes pop { to { opacity: 1; } }

.acts__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.act { padding-top: 1rem; border-top: 4px solid var(--c); }
.act--1 { --c: #2f9bd8; }
.act--2 { --c: #e08a00; }
.act--3 { --c: #e5384f; }
.act h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--c); }
.act p { margin-top: 0.5rem; color: #424245; }

/* ---------- Drama ---------- */
.duo { margin-top: 4rem; }
.duo svg { width: 100%; height: auto; display: block; overflow: visible; }
.duo__letter { font-family: var(--font); font-weight: 700; font-size: 64px; fill: #1d1d1f; }
.ring { fill: none; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ripple 3.6s ease-out infinite; }
.ring--a { stroke: var(--cyan); }
.ring--b { stroke: var(--amber); animation-delay: 1.8s; }
@keyframes ripple { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.duo__name { font-family: var(--font); font-weight: 600; font-size: 30px; fill: #f5f5f7; }
.words { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.25rem 3rem; margin-top: 4rem; }
.words p {
  font-size: clamp(2.4rem, 8vw, 5.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 30%, #8e8e93); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.words p:nth-child(1) { background-image: linear-gradient(180deg, #ff7a93, #ff375f); }
.words p:nth-child(2) { background-image: linear-gradient(180deg, #ffd08a, #ff9f0a); }
.words p:nth-child(3) { background-image: linear-gradient(180deg, #a6e4ff, #64d2ff); }
.words p { -webkit-background-clip: text; background-clip: text; }

/* ---------- Estructura no lineal ---------- */
.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 2.5rem; font-size: 0.9375rem; font-weight: 500; color: #424245; }
.legend li { display: flex; align-items: center; gap: 0.6rem; }
.legend li::before { content: ""; width: 14px; height: 14px; border-radius: 5px; background: var(--k); }
.legend__now { --k: #2f9bd8; }
.legend__then { --k: #e08a00; }
.lanes {
  position: relative; margin-top: 1.75rem;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 84px 84px; gap: 0 10px;
}
.lanes__line { position: absolute; left: 0; right: 0; top: 42px; height: 84px; width: 100%; z-index: 0; overflow: visible; }
.lanes__line polyline { fill: none; stroke: rgba(0, 0, 0, 0.28); stroke-width: 2; stroke-linejoin: round; }
.blk {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0.5rem; margin: 6px 0; border-radius: 14px; font-size: 0.9rem; font-weight: 600; line-height: 1.2;
  grid-column: var(--c);
  border: 2px solid transparent;
  isolation: isolate;
  animation: lit-text 10.5s infinite;
  animation-delay: calc(var(--i) * 1.5s);
}
.blk--now { grid-row: 1; background: #d8eefb; color: #0b4a73; border-color: #8fd0f5; --lit: #2f9bd8; }
.blk--then { grid-row: 2; background: #fdebd0; color: #7a4a00; border-color: #f4c27a; --lit: #e08a00; }
.blk::after {
  content: ""; position: absolute; inset: -2px; border-radius: 14px; background: var(--lit); opacity: 0; z-index: -1;
  animation: lit-bg 10.5s infinite; animation-delay: calc(var(--i) * 1.5s);
}
@keyframes lit-bg { 0% { opacity: 0; } 3% { opacity: 1; } 13% { opacity: 1; } 18%, 100% { opacity: 0; } }
@keyframes lit-text { 3%, 13% { color: #fff; } }

.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3.5rem; font-size: clamp(1.15rem, 2.2vw, 1.45rem); letter-spacing: -0.015em; line-height: 1.35; font-weight: 500; }
.twocol p:last-child { color: var(--mute); }

/* ---------- Suspenso ---------- */
.section--black .h2 { color: #fff; }
.clues { margin: 4rem auto 0; max-width: 640px; border-top: 1px solid rgba(255, 69, 58, 0.5); }
.clues li { padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 69, 58, 0.5); font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; }
.treatment { margin-top: 3rem; text-align: center; color: #a1a1a6; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.question {
  margin-top: 2.5rem; text-align: center; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(2.6rem, 9vw, 6rem); color: #fff;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.ecg { display: block; width: 100%; height: 100px; margin-top: 3.5rem; overflow: hidden; }
.ecg use, .ecg path { fill: none; stroke: var(--red); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ecg__g { animation: ecg 2.4s linear infinite; }
@keyframes ecg { from { transform: translateX(0); } to { transform: translateX(-200px); } }

/* ---------- Cierre ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3.5rem; }
.versus article { border-radius: 28px; padding: clamp(1.75rem, 4vw, 3rem); }
.versus__a { background: #fff0f3; color: #7a0c26; }
.versus__b { background: #1d1d1f; color: #f5f5f7; }
.versus h3 { font-size: 1.1rem; font-weight: 700; color: var(--rose); }
.versus__b h3 { color: var(--red); }
.versus__q { margin-top: 1.25rem; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.versus article p:last-child { margin-top: 0.9rem; opacity: .75; }
.cta { margin-top: 3rem; }

/* ---------- Pie ---------- */
.footer { background: var(--gray); padding: 2.5rem 1.5rem 3rem; font-size: 0.8125rem; color: var(--mute); line-height: 1.7; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.footer strong { color: var(--ink); }

/* ---------- Responsivo ---------- */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .beats li { grid-template-columns: 1fr; gap: 0.35rem; }
  .acts__cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .curve { aspect-ratio: 1000 / 440; margin-top: 3rem; }
  .pt b { font-size: 0.7rem; white-space: normal; width: 7.5em; text-align: center; }
  .pt--2 b { bottom: 12px; width: 8em; }
  .pt--3 b { width: 5em; text-align: right; }
  .duo__name { font-size: 46px; }
  .duo__letter { font-size: 80px; }
  .twocol { grid-template-columns: 1fr; gap: 1.25rem; }
  .versus { grid-template-columns: 1fr; }
  .video { border-radius: 18px; }
}
@media (max-width: 700px) {
  .lanes { display: flex; flex-direction: column; gap: 10px; }
  .lanes__line { display: none; }
  .blk { margin: 0; justify-content: flex-start; text-align: left; padding: 0.9rem 1.1rem; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .echo__ring, .ring, .question, .ecg__g, .blk, .blk::after { animation: none !important; }
  .echo__ring { opacity: 0.25; transform: scale(1.2); }
  .curve__path { stroke-dashoffset: 0; }
  .pt { opacity: 1; }
  .acts.is-in .curve__path, .acts.is-in .pt { animation: none !important; }
  .blk--now { background: #d8eefb; }
  .blk--then { background: #fdebd0; }
}
