:root {
  --yellow: #feec48;
  --blue: #9fd8f7;
  --blue-light: #d3ebfb;
  --fin: #1aa6dc;
  --mono: #7ad8fd;
  --cream: #fefce3;
  --ink: #141414;
  --skin: #f8d5b4;
  --grey: #c9c9c9;
  --line: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }

/* ---------- barra de progreso ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 8px; z-index: 50;
  background: rgba(20,20,20,.12);
}
.progress span {
  display: block; height: 100%; width: 100%;
  background: var(--fin);
  border-right: 3px solid var(--ink);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- portada ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 40px 16px 110px;
  overflow: hidden;
  background: var(--yellow);
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-logo {
  width: min(560px, 82vw);
  margin: 0 auto 24px;
}
.hero-tag {
  margin: -8px auto 0;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 500; line-height: 1.35;
}
.hero-tag strong { font-weight: 700; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: .04em;
  animation: hint 1.6s ease-in-out infinite;
}
@keyframes hint { 50% { transform: translate(-50%, 10px); } }

.doodles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.dd {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(46px * var(--s)); height: calc(46px * var(--s));
}
.dd.star::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}
.dd.plus::before, .dd.plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 100%; height: 8px; background: var(--fin); border-radius: 8px;
  transform: translate(-50%, -50%);
}
.dd.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.dd.ring { border: 6px solid var(--ink); border-radius: 50%; background: var(--blue); }

/* ---------- secciones de personaje ---------- */
.char-sec { position: relative; overflow: hidden; }
.kiwo-sec { background: var(--blue); }
.al-sec { background: var(--cream); }
.pin {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 48px 16px;
  overflow: hidden;
}
.marquee {
  position: absolute; top: 50%; left: 0;
  transform: translateY(-50%);
  white-space: nowrap; pointer-events: none;
  font-weight: 700; line-height: 1;
  font-size: clamp(7rem, 24vw, 20rem);
  color: transparent;
  -webkit-text-stroke: 3px rgba(20,20,20,.16);
}
.kiwo-sec .marquee { color: rgba(255,255,255,.28); }
.al-sec .marquee { color: rgba(201,201,201,.28); }
.marquee span { display: inline-block; }

.layout {
  position: relative; z-index: 2;
  width: min(1100px, 100%);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(16px, 4vw, 56px);
}
.layout.reverse .stage { order: 2; }

.stage {
  position: relative;
  display: grid; place-items: end center;
  height: min(62vh, 520px);
}
.char-wrap { position: relative; width: 100%; height: 100%; }
.stage .char-wrap { position: absolute; inset: 0; }
.char-wrap svg { width: 100%; height: 100%; overflow: visible; }
.shadow {
  position: absolute; bottom: 2%; left: 50%;
  width: 46%; height: 22px; margin-left: -23%;
  background: rgba(20,20,20,.18); border-radius: 50%;
}

.tag {
  position: absolute; z-index: 3;
  background: #fff; border: 4px solid var(--ink); border-radius: 999px;
  padding: 6px 16px; font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.35rem);
  box-shadow: 4px 4px 0 var(--ink);
  white-space: nowrap;
}
.fin-tag { top: 4%; right: 6%; }
.fin-tag::after {
  content: ""; position: absolute; left: 6px; bottom: -22px;
  width: 26px; height: 18px; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.hi-tag { top: 2%; left: 6%; }
.hi-tag::after {
  content: ""; position: absolute; right: 14px; bottom: -22px;
  width: 26px; height: 18px; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.card {
  background: #fff;
  border: var(--line) solid var(--ink);
  border-radius: 28px;
  padding: clamp(20px, 3.5vw, 40px);
  box-shadow: 10px 10px 0 var(--ink);
}
.label {
  display: inline-block;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px;
  padding: 2px 12px; font-weight: 600; font-size: .9rem;
}
.card h2 {
  margin: 12px 0 14px;
  font-size: clamp(2.3rem, 5.5vw, 4.2rem); line-height: 1; font-weight: 700;
}
.card h2 em { font-style: normal; display: inline-block; }
.kiwo-sec .card h2 em { color: var(--fin); }
.al-sec .card h2 em {
  color: var(--ink); background: var(--yellow);
  padding: 0 10px; border-radius: 12px;
}
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li {
  position: relative; padding-left: 34px;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.35;
}
.facts li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--blue);
}
.al-sec .facts li::before { background: var(--yellow); }
.facts strong { font-weight: 700; }

/* ---------- juntos ---------- */
.together { position: relative; background: var(--cream); overflow: hidden; }
.together .pin { place-items: start center; align-content: start; padding-top: clamp(56px, 10vh, 110px); }
.together-title {
  position: relative; z-index: 3;
  margin: 0; text-align: center;
  font-size: clamp(3.2rem, 11vw, 8.5rem); line-height: .95; font-weight: 700;
}
.together-title .w { display: inline-block; }
.together-title .w:first-child { color: var(--blue); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.together-title .w:last-child { color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.together-title .amp { font-size: .55em; vertical-align: middle; }
.together-sub {
  position: relative; z-index: 3;
  margin: 10px 0 0; text-align: center;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem); font-weight: 500;
}
.duo {
  position: absolute; z-index: 2;
  left: 50%; bottom: 9%;
  width: min(900px, 100vw); height: min(56vh, 520px);
  transform: translateX(-50%);
}
.duo .char-wrap { position: absolute; bottom: 0; height: 100%; width: 48%; }
.duo-kiwo { left: 4%; height: 84% !important; }
.duo-al { right: 4%; }
.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10%;
  background: var(--yellow); border-top: var(--line) solid var(--ink);
}
.burst {
  position: absolute; z-index: 1;
  left: 50%; bottom: 52%;
  width: 0; height: 0;
}
.burst i {
  position: absolute; left: 0; top: 0;
  width: 14px; height: 70px; margin-left: -7px;
  background: var(--ink); border-radius: 10px;
  transform: rotate(var(--r)) translateY(-90px);
  transform-origin: 50% 0;
}

/* ---------- cierre ---------- */
.outro {
  background: var(--ink); color: var(--cream);
  text-align: center;
  padding: 90px 16px 40px;
  display: grid; justify-items: center; gap: 6px;
}
.mono {
  width: min(220px, 50vw);
  border-radius: 36px; border: 5px solid var(--cream);
}
.outro-title { margin: 20px 0 0; font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: .02em; }
.outro-sub { margin: 0; font-size: 1.2rem; opacity: .85; }
.back-top {
  margin-top: 22px;
  color: var(--ink); background: var(--yellow);
  border: 4px solid var(--cream); border-radius: 999px;
  padding: 10px 22px; font-weight: 600; text-decoration: none;
  transition: transform .2s;
}
.back-top:hover { transform: translateY(-3px) rotate(-2deg); }
.outro small { margin-top: 36px; opacity: .55; }

/* ---------- móvil ---------- */
@media (max-width: 760px) {
  .layout, .layout.reverse { grid-template-columns: 1fr; gap: 10px; }
  .layout.reverse .stage { order: 0; }
  .stage { height: 40vh; height: 40svh; }
  .card { box-shadow: 6px 6px 0 var(--ink); border-width: 5px; }
  .card h2 { margin: 8px 0 10px; }
  .facts { gap: 6px; }
  .pin { padding: 28px 16px; }
  .duo { height: 40vh; bottom: 9%; }
  .burst { bottom: 46%; }
  .burst i { transform: rotate(var(--r)) translateY(-60px); height: 44px; width: 10px; margin-left: -5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint { animation: none; }
}
