:root {
  --paper: #15202c;
  --paper-2: #1a2836;
  --ink: #c9dbe6;
  --surface: #101820;
  --muted: #8aa3b5;
  --line: rgba(126, 196, 224, 0.16);
  --accent: #8ecae0;
  --hot: #e09a62;
  --stage: #101820;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Anton", "Arial Narrow", sans-serif;
  --script: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  padding-bottom: 64px;
}

a { color: inherit; }

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  animation: curtain 0.75s cubic-bezier(0.7, 0, 0.2, 1) 1.15s forwards;
}

.loader-word {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 8vw, 84px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: word-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loader-word i {
  color: var(--hot);
  font-style: normal;
}

@keyframes word-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes curtain {
  to { transform: translateY(-105%); }
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(21, 32, 44, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.top.scrolled { border-bottom-color: var(--line); }

.top-row {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.brand strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.nav { display: flex; gap: 18px; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover { color: var(--ink); }
.nav a.donar { color: var(--hot); }

.hero {
  position: relative;
  padding: 36px 0 28px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(142, 202, 224, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 202, 224, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 11vw, 128px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.line {
  display: block;
  overflow: hidden;
}

.line > span {
  display: block;
  transform: translateY(110%);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards;
}

.line:nth-child(2) > span { animation-delay: 1.16s; }
.line:nth-child(3) > span { animation-delay: 1.28s; }

.line-script {
  margin-top: 6px;
  text-transform: none;
  font-family: var(--script);
  font-weight: 560;
  font-style: italic;
  font-size: 0.72em;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 0.95;
}

@keyframes rise {
  to { transform: translateY(0); }
}

.lead {
  max-width: 38rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.8s ease 1.45s forwards;
}

@keyframes fade-up {
  to { opacity: 1; transform: none; }
}

.stage-wrap {
  position: relative;
  margin: 28px auto 0;
  max-width: 860px;
}

.stage {
  border: 1px solid rgba(142, 202, 224, 0.16);
  border-radius: 22px;
  overflow: hidden;
  background: var(--stage);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

#clay {
  display: block;
  width: 100%;
  height: min(460px, 68vw);
  cursor: crosshair;
  touch-action: none;
}

.stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(142, 202, 224, 0.12);
}

.stage-note {
  margin: 0;
  color: #9eb4c4;
  font-size: 14px;
}

.text {
  background: none;
  border: 0;
  padding: 0;
  color: #c9dbe6;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.text:hover { color: #e7f4fb; }

.chip {
  position: absolute;
  z-index: 1;
  padding: 10px 14px;
  background: #1c3040;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  font-weight: 750;
  pointer-events: none;
  animation: float 4.6s ease-in-out infinite;
}

.chip small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
}

.chip-a { top: 8%; left: 0; }
.chip-b { top: 6%; right: 0; animation-delay: 0.6s; }
.chip-c { bottom: 22%; left: 2%; animation-delay: 1.1s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: block;
  padding: 18px 16px;
  background: var(--surface);
  color: var(--hot);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 750;
}

.bar:hover { background: #1c3040; color: #f0d2b0; }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: march 28s linear infinite;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marquee-track .dot { color: var(--accent); }

@keyframes march {
  to { transform: translateX(-50%); }
}

.paths { padding: 72px 0 24px; }

.paths h2,
.ask h2,
.rail-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

em {
  font-family: var(--script);
  font-style: italic;
  font-weight: 560;
  text-transform: none;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-play-state: paused;
}

.reveal.in { animation-play-state: running; }

.path-list { margin-top: 28px; }

.path {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 22px 0;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.path:last-child { border-bottom: 1px solid var(--line); }

.path-num {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.path strong { display: block; font-size: 20px; }

.path p {
  margin: 4px 0 0;
  color: var(--muted);
}

.arrow {
  font-size: 22px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.path:hover .arrow { transform: translateX(10px); }

.rail { height: 280vh; background: var(--paper-2); }

.rail-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 84px 0 88px;
}

.rail-head {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 22px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.rail-count {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.rail-count b { color: var(--ink); font-size: 20px; }

.rail-window { overflow: hidden; }

.rail-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding-left: max(20px, calc((100% - 1080px) / 2));
  padding-right: 20px;
  will-change: transform;
}

.card {
  width: min(680px, 78vw);
  min-height: 280px;
  padding: 28px;
  background: #1c3040;
  color: var(--ink);
  border-radius: 22px;
}

.card .num {
  margin: 0;
  color: var(--accent);
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.04em;
}

.card h3 {
  margin: 14px 0 10px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.95;
}

.card p { margin: 0; color: #9eb4c4; max-width: 36ch; }

.ask { padding: 72px 0 48px; }

.ask .sub {
  margin: 12px 0 0;
  color: var(--muted);
}

.faq { display: grid; gap: 0; margin: 28px 0 0; }

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.plus {
  color: var(--muted);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .plus { transform: rotate(45deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }

.faq-a > div { overflow: hidden; }

.faq-a p {
  margin: 0;
  padding: 0 0 16px;
  max-width: 62ch;
  color: var(--muted);
}

.gustados { padding: 28px 0 8px; }
.gustados h2 { margin: 0 0 16px; font-family: Fraunces, serif; font-weight: 560; letter-spacing: -0.03em; }
.gustados-rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.gustado {
  background: #1c3040;
  border-radius: 16px;
  overflow: hidden;
}
.gustado img, .gustado .hueco {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #101820;
}
.gustado div { padding: 12px 14px 14px; }
.gustado strong { display: block; }
.gustado span { color: var(--muted); font-size: 13px; }

.foot {
  background: var(--surface);
  color: #8aa3b5;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 36px;
  font-size: 14px;
}

.foot a { color: var(--ink); }

@media (max-width: 760px) {
  .nav { display: none; }
  .chip { display: none; }
  .path { grid-template-columns: 52px 1fr auto; }
  .rail { height: auto; }
  .rail-sticky {
    position: static;
    height: auto;
    padding: 56px 0 64px;
  }
  .rail-head { flex-direction: column; align-items: start; }
  .rail-track {
    flex-direction: column;
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0;
    transform: none !important;
  }
  .card { width: auto; }
  .stage-foot { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .line > span,
  .lead,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .marquee-track,
  .chip { animation: none; }
  .rail { height: auto; }
  .rail-sticky { position: static; height: auto; }
  .rail-track { flex-direction: column; width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 0; }
  .card { width: auto; }
}
