/* Propuesta Auric × Swedish Candy Market — keynote en scroll
   Noche teal (Auric) ↔ crema/menta (SCM) · Space Grotesk + Space Mono + Cormorant Garamond · acento coral Auric */
:root {
  --night: #0F1A19; --night-2: #142826; --night-3: #1C3532;
  --teal: #4EADA2; --teal-2: #2B8B85; --mint: #DFEDEB; --cream: #F6F1CD; --paper: #FBF8EE; --butter: #E3D361;
  --coral: #E8714A; --ink: #142624; --ink-2: #4C5B58; --on: #F3EEDC; --on-2: rgba(243, 238, 220, .62);
  --sans: 'Space Grotesk', system-ui, sans-serif; --mono: 'Space Mono', ui-monospace, monospace; --serif: 'Cormorant Garamond', Georgia, serif;
  --pad: clamp(20px, 5vw, 96px); --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--night); color: var(--on); font-family: var(--sans); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--coral); color: var(--night); }
em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--teal); letter-spacing: -.01em; }
.mono { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-2); }
.h2 { margin: 0 0 28px; font-weight: 600; font-size: clamp(42px, 6.4vw, 104px); line-height: .98; letter-spacing: -.035em; max-width: 1200px; }
.h2 em { font-size: 1.08em; }
.lead { max-width: 640px; margin: 0 0 40px; font-size: 20px; color: var(--on-2); }
section { position: relative; padding: 150px var(--pad); }
.light { background: var(--paper); color: var(--ink); }

/* número de capítulo */
.chap { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.chap span { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--night); background: var(--coral); padding: 4px 9px; border-radius: 4px; }
.chap p { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 18px 30px; border-radius: 999px; background: var(--coral); color: var(--night); text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .04em; transition: transform .3s var(--ease), background .3s; }
.btn:hover { transform: translateY(-3px); background: var(--teal); }
.btn--ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }

/* cursor */
.cursor { position: fixed; z-index: 99; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--coral); pointer-events: none; display: grid; place-items: center; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease); }
.cursor span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--night); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-big { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
.cursor.is-big span { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

/* cabecera */
.top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px var(--pad); background: linear-gradient(180deg, rgba(15, 26, 25, .85), rgba(15, 26, 25, 0)); }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.top__brand img { height: 28px; width: auto; }
.top__brand i { font-style: normal; color: var(--coral); }
.top__chapters { display: flex; gap: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.top__chapters a { padding: 6px 9px; border-radius: 4px; text-decoration: none; color: var(--on-2); transition: .25s; }
.top__chapters a.is-on { background: var(--coral); color: var(--night); }
.top__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.top__bar i { display: block; height: 100%; background: var(--coral); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 1180px) { .top__chapters { display: none; } }

/* ═════ PORTADA ═════ */
.cover { min-height: 100vh; padding-top: 0; padding-bottom: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: radial-gradient(120% 90% at 70% 10%, var(--night-3), var(--night) 60%); }
.cover__candy { position: absolute; inset: 0; pointer-events: none; }
.cover__candy img { position: absolute; width: var(--s); opacity: .9; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .35)); will-change: transform; }
.cover__inner { position: relative; z-index: 2; max-width: 1100px; padding-top: 80px; }
.cover__title { margin: 22px 0 26px; font-weight: 600; font-size: clamp(70px, 12.5vw, 220px); line-height: .86; letter-spacing: -.05em; }
.cover__title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.cover__title .ln > * { display: inline-block; }
.cover__title em { font-size: 1.12em; color: var(--teal); }
.cover__lead { max-width: 480px; margin: 0; font-size: 21px; color: var(--on-2); }
.cover__crew { position: absolute; z-index: 1; right: -2%; bottom: 0; width: min(56vw, 900px); opacity: .95; }
.cover__scroll { position: absolute; left: var(--pad); bottom: 30px; z-index: 2; }
@media (max-width: 760px) { .cover__crew { width: 120vw; right: -10%; opacity: .5; } }

/* ═════ MOMENTO ═════ */
.moment { background: var(--night); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(243, 238, 220, .14); }
.stat { padding: 34px 30px 40px 0; border-bottom: 1px solid rgba(243, 238, 220, .14); }
.stat:not(:nth-child(3n)) { border-right: 1px solid rgba(243, 238, 220, .14); }
.stat:not(:nth-child(3n+1)) { padding-left: 30px; }
.stat b { display: block; font-weight: 600; font-size: clamp(64px, 7vw, 120px); line-height: 1; letter-spacing: -.05em; color: var(--teal); font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: 12px; max-width: 320px; font-size: 16px; color: var(--on-2); line-height: 1.45; }
.moment__close { max-width: 820px; margin: 60px 0 0; font-size: 26px; line-height: 1.4; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0 !important; padding-left: 0 !important; } }

/* ═════ VALORES ═════ */
.values { background: var(--cream); color: var(--ink); }
.values em, .content em, .year em, .next em { color: var(--teal-2); }
.chap--light p { color: #B5532F; }
.vgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.v { padding: 28px 24px 30px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(20, 38, 36, .1); transition: transform .4s var(--ease), background .3s; }
.v:hover { transform: translateY(-8px) rotate(-1deg); background: var(--teal); }
.v i { font-family: var(--mono); font-style: normal; font-size: 12px; color: #B5532F; }
.v h3 { margin: 40px 0 10px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 46px; line-height: 1; }
.v p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.v:hover p { color: var(--ink); }
.direction { margin-top: 90px; }
.direction__row { display: grid; grid-template-columns: 1fr 200px 1.3fr; align-items: center; gap: 30px; margin-top: 18px; }
.direction .from { font-size: clamp(24px, 2.6vw, 40px); color: var(--ink-2); text-decoration: line-through; text-decoration-color: #B5532F; text-decoration-thickness: 2px; }
.direction .to { font-size: clamp(30px, 3.6vw, 58px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.direction svg { width: 100%; overflow: visible; }
.direction path { fill: none; stroke: #B5532F; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) { .vgrid { grid-template-columns: 1fr !important; } .v h3 { margin-top: 18px; } }
@media (max-width: 1000px) { .vgrid { grid-template-columns: 1fr 1fr; } .direction__row { grid-template-columns: 1fr; } .direction svg { width: 120px; transform: rotate(90deg); } }

/* ═════ HISTORIA (horizontal) ═════ */
.story { padding: 0; background: var(--night-2); }
.story__pin { height: 100vh; display: flex; align-items: center; gap: 60px; overflow: hidden; padding-left: var(--pad); }
.story__head { flex: 0 0 min(520px, 80vw); }
.story__lead { color: var(--on-2); font-size: 18px; max-width: 460px; }
.story__track { display: flex; gap: 22px; padding-right: var(--pad); will-change: transform; }
.node { position: relative; flex: 0 0 360px; height: 560px; padding: 30px; border-radius: 22px; background: var(--night-3); border: 1px solid rgba(243, 238, 220, .1); overflow: hidden; display: flex; flex-direction: column; }
.node:nth-child(2n) { background: #1F3D39; }
.node img { position: absolute; right: -30px; bottom: -10px; height: 300px; width: auto; opacity: .95; transition: transform .5s var(--ease); }
.node:hover img { transform: translateY(-12px) rotate(-3deg); }
.node i { font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: .14em; color: var(--coral); text-transform: uppercase; }
.node h3 { margin: 10px 0 12px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 64px; line-height: .95; color: var(--teal); }
.node p { position: relative; z-index: 2; margin: 0; max-width: 250px; font-size: 16px; color: var(--on); }
.node small { position: relative; z-index: 2; margin-top: auto; max-width: 200px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--on-2); }
@media (max-width: 860px) { .story__pin { height: auto; flex-direction: column; align-items: stretch; padding: 120px var(--pad); } .story__track { flex-direction: column; } .node { flex: auto; height: 420px; } }

/* ═════ WEBS ═════ */
.webs { background: var(--night); }
.webs__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.webs__tabs button { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; border: 1px solid rgba(243, 238, 220, .2); background: transparent; font-weight: 600; font-size: 15px; transition: .25s; }
.webs__tabs button b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-family: var(--mono); background: var(--sw, var(--teal)); color: var(--night); }
.webs__tabs button[aria-selected="true"] { background: var(--on); color: var(--night); border-color: var(--on); }
.webs__stage { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.browser { border-radius: 16px; overflow: hidden; background: #0A1211; border: 1px solid rgba(243, 238, 220, .14); box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .8); }
.browser__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #182A28; }
.browser__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(243, 238, 220, .25); }
.browser__bar span:first-child { background: var(--coral); }
.browser__bar p { flex: 1; margin: 0 0 0 12px; padding: 5px 14px; border-radius: 6px; background: rgba(243, 238, 220, .08); font-family: var(--mono); font-size: 12px; color: var(--on-2); }
.browser__bar a { font-family: var(--mono); font-size: 12px; color: var(--coral); text-decoration: none; }
.browser__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.browser__view iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; }
.webs__info h3 { margin: 0 0 4px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 52px; line-height: 1; color: var(--teal); }
.webs__info .tag { margin: 0 0 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.webs__info p { margin: 0 0 18px; font-size: 16px; color: var(--on-2); }
.swatches { display: flex; gap: 6px; margin: 0 0 20px; }
.swatches i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(243, 238, 220, .2); }
.webs__info ul { margin: 0; padding: 0; list-style: none; }
.webs__info li { padding: 10px 0; border-top: 1px solid rgba(243, 238, 220, .12); font-size: 15px; }
.webs__info li::before { content: "→ "; color: var(--coral); }
@media (max-width: 1100px) { .webs__stage { grid-template-columns: 1fr; } }

/* ═════ CONTENIDO ═════ */
.content { background: var(--paper); color: var(--ink); }
.content .mono { color: var(--ink-2); }
.content__nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 10px 0 50px; }
.content__nums b { display: block; font-weight: 600; font-size: clamp(56px, 6vw, 100px); line-height: 1; letter-spacing: -.05em; color: var(--teal-2); }
.content__nums small { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font-weight: 600; font-size: 14px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 18px; }
.vid { position: relative; cursor: pointer; }
.vid--wide { grid-column: span 2; }
.vid__frame { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--night); border: 6px solid var(--ink); box-shadow: 0 30px 50px -30px rgba(20, 38, 36, .6); transition: transform .45s var(--ease); }
.vid--wide .vid__frame { aspect-ratio: 16 / 9; border-radius: 14px; }
.vid:hover .vid__frame { transform: translateY(-8px) rotate(-1.2deg); }
.vid__frame img, .vid__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid__frame video { opacity: 0; transition: opacity .3s; }
.vid.is-playing video { opacity: 1; }
.vid__dur { position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(15, 26, 25, .78); color: var(--on); font-family: var(--mono); font-size: 11px; }
.vid h4 { margin: 12px 0 2px; font-size: 16px; line-height: 1.2; }
.vid p { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.content__note { margin-top: 30px; }
@media (max-width: 760px) { .content__nums { grid-template-columns: 1fr 1fr; } .vid--wide { grid-column: auto; } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 30px; background: rgba(8, 14, 13, .92); backdrop-filter: blur(8px); }
.lb[hidden] { display: none; }
.lb__body { display: flex; gap: 34px; align-items: center; max-width: 1200px; }
.lb video { max-height: 86vh; max-width: min(90vw, 1000px); border-radius: 16px; background: #000; }
.lb__meta { max-width: 300px; }
.lb__meta h3 { margin: 8px 0 10px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 40px; line-height: 1; color: var(--teal); }
.lb__meta p:last-child { color: var(--on-2); font-size: 16px; }
.lb__close { position: absolute; right: 24px; top: 18px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--coral); color: var(--night); font-size: 30px; line-height: 1; }
@media (max-width: 900px) { .lb__body { flex-direction: column; } .lb__meta { display: none; } }

/* ═════ MOTOR ═════ */
.engine { background: var(--night-2); }
.slot { display: grid; grid-template-columns: repeat(3, 1fr) 120px; gap: 14px; align-items: stretch; max-width: 1200px; }
.slot__win { position: relative; height: 170px; border-radius: 18px; background: var(--night); border: 1px solid rgba(243, 238, 220, .14); overflow: hidden; }
.slot__win small { position: absolute; z-index: 2; left: 16px; top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.slot__win::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0, transparent 28%, transparent 72%, var(--night) 100%); pointer-events: none; }
.reel { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.reel div { height: 170px; display: flex; align-items: center; gap: 16px; padding: 30px 20px 10px; font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1.05; color: var(--on); }
.reel img { height: 96px; width: auto; flex: 0 0 auto; }
.slot__lever { position: relative; border-radius: 18px; border: 0; background: var(--coral); color: var(--night); font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; transition: transform .2s; }
.slot__lever:active { transform: scale(.95); }
.slot__lever::before { content: ""; position: absolute; left: 50%; top: 22px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--night); transition: transform .4s var(--ease); }
.slot__lever.is-pulled::before { transform: translateY(80px); }
.idea { margin-top: 28px; max-width: 1200px; padding: 30px 34px; border-radius: 18px; background: var(--cream); color: var(--ink); }
.idea .mono { color: #B5532F; }
.idea h3 { margin: 8px 0 8px; font-size: clamp(26px, 3vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.idea p:last-child { margin: 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-2); }
@media (max-width: 860px) { .slot { grid-template-columns: 1fr; } .slot__lever { height: 70px; } .slot__lever::before { display: none; } }

/* ═════ AÑO ═════ */
.year { padding: 0; background: var(--mint); color: var(--ink); }
.year__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.year__head { padding: 0 var(--pad); }
.year__head .lead { color: var(--ink-2); margin-bottom: 30px; }
.year__track { display: flex; gap: 16px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.month { flex: 0 0 290px; height: 330px; padding: 22px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(20, 38, 36, .1); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.month:nth-child(3n+2) { background: var(--cream); }
.month:nth-child(5n) { background: var(--teal); }
.month i { font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #B5532F; }
.month h3 { margin: 6px 0 10px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 38px; line-height: .98; }
.month p { margin: 0; font-size: 15px; line-height: 1.4; }
.month .tie { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed rgba(20, 38, 36, .25); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.month .tie img { width: 46px; height: 46px; object-fit: contain; }
@media (max-width: 860px) { .year__pin { height: auto; padding: 120px 0; } .year__track { flex-direction: column; width: auto; } .month { flex: auto; height: auto; min-height: 240px; } }

/* ═════ VIAJE ═════ */
.journey { background: var(--night); }
.journey__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.rhythm { list-style: none; margin: 0; padding: 0; max-width: 560px; }
.rhythm li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(243, 238, 220, .12); font-size: 17px; }
.rhythm b { flex: 0 0 64px; font-size: 28px; color: var(--teal); letter-spacing: -.03em; }
.rhythm__note { margin-top: 14px; }
.loop { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; }
.loop svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.loop__track { fill: none; stroke: rgba(243, 238, 220, .12); stroke-width: 2; stroke-dasharray: 4 10; }
.loop__fill { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; }
.loop__steps { position: absolute; inset: 0; }
.loop__steps span { position: absolute; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px; background: var(--night-3); border: 1px solid rgba(243, 238, 220, .16); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .3s, color .3s; }
.loop__steps span.is-on { background: var(--coral); color: var(--night); border-color: var(--coral); }
.loop__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.loop__center img { width: 64px; margin: 0 auto 10px; }
.loop__center p { margin: 0; font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.understand { margin-top: 120px; padding-top: 60px; border-top: 1px solid rgba(243, 238, 220, .14); }
.understand__q { margin: 0; max-width: 1100px; font-family: var(--serif); font-style: italic; font-size: clamp(40px, 5.4vw, 88px); line-height: 1.02; }
@media (max-width: 960px) { .journey__grid { grid-template-columns: 1fr; } }

/* ═════ SIGUIENTE ═════ */
.next { background: var(--cream); color: var(--ink); }
.steps { list-style: none; margin: 30px 0 50px; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { counter-increment: s; padding: 26px; border-radius: 18px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: 12px; color: #B5532F; }
.steps b { font-size: 22px; line-height: 1.15; }
.steps span { font-size: 15px; color: var(--ink-2); }
.next__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.next .btn--ghost { color: var(--ink); }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.foot { display: flex; align-items: center; gap: 24px; padding: 50px var(--pad); background: var(--night); border-top: 1px solid rgba(243, 238, 220, .1); }
.foot img { height: 60px; width: auto; }
.foot p { margin: 0; font-size: 15px; }
.foot span { color: var(--on-2); font-size: 13px; }
