@import url("https://fonts.googleapis.com/css2?family=Anybody:wdth,wght@50..150,500..900&family=Hanken+Grotesk:ital,wght@0,400;0,500;0,700;1,400&display=swap");

/*
  Adivina qué pasó — microsite
  Risografía de fiesta: tintas fluorescentes impresas sobre una mesa índigo.
  La tinta indica el tono del caso, igual que en la app:
  limón = ligero · chicle = absurdo · lila = oscuro.
*/
:root {
  --mesa: #16142a;
  --mesa-baja: #110f22;
  --carta: #221f3d;
  --carta-alta: #2e2a52;
  --canto: #3f3a6c;
  --tiza: #f1edfa;
  --niebla: #a7a1cc;

  --limon: #f6e04b;
  --chicle: #ff6fa3;
  --menta: #5fe0b2;
  --lila: #a48cff;
  --rojo: #ff6170;
  --gris: #a29dc6;

  --display: "Anybody", "Futura-CondensedExtraBold", "Arial Narrow", sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mesa);
  color: var(--tiza);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--menta); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--chicle); color: var(--mesa); }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--display);
  font-weight: 880;
  font-stretch: 72%;
  line-height: .92;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}
h2.display { font-size: clamp(2.75rem, 6.4vw, 4.75rem); }
.measure { max-width: 34em; }
.quiet { color: var(--niebla); }

/* El logotipo: la única impresión desalineada de la página. */
.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 70%;
  line-height: .8;
  margin: 0;
  letter-spacing: 0;
}
.wordmark .a { display: block; font-size: .5em; font-weight: 800; color: var(--tiza); margin: 0 0 .1em .03em; }
.wordmark .b { display: block; color: var(--limon); text-shadow: .045em .045em 0 var(--chicle); }

/* ---------- Cabecera ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--mesa) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: .9375rem; }
.nav nav a:not(.btn) { color: var(--niebla); text-decoration: none; }
.nav nav a:not(.btn):hover { color: var(--tiza); }

/* ---------- Botones ---------- */
.btn {
  --ink: var(--limon); --shade: var(--chicle);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 12px;
  background: var(--ink); color: var(--mesa);
  font: 700 1rem/1 var(--text); text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--shade);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--shade); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shade); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .875rem; border-radius: 10px; box-shadow: 3px 3px 0 var(--shade); }
.btn.small:active { transform: translate(3px, 3px); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Sello de App Store (sin enlace mientras no esté publicada). */
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px 0 18px; border-radius: 12px; background: var(--tiza); color: var(--mesa); text-decoration: none; box-shadow: 4px 4px 0 var(--chicle); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { line-height: 1.05; }
.store small { display: block; font-size: .75rem; font-weight: 500; }
.store b { font-size: 1.25rem; }
a.store:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--chicle); }

/* ---------- Portada ---------- */
.hero { padding: 56px 0 104px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 64px; align-items: start; }
.hero .wordmark { font-size: clamp(5.5rem, 13vw, 11.5rem); }
.hero .pitch { font-size: 1.3125rem; line-height: 1.5; margin: 32px 0 36px; max-width: 22em; }
.hero .pitch strong { color: var(--tiza); font-weight: 700; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.hero .actions .note { font-size: .9375rem; color: var(--niebla); max-width: 14em; line-height: 1.4; }
.hero .left { padding-top: 24px; position: sticky; top: 96px; }

/* ---------- El caso jugable ---------- */
.case {
  --ink: var(--limon);
  position: relative;
  background: var(--ink);
  color: var(--mesa);
  border-radius: 22px;
  padding: 26px 28px 28px;
  box-shadow: 10px 10px 0 var(--mesa-baja), 10px 10px 0 2px var(--canto);
  transition: background-color .25s ease;
}
.case[data-tone="absurdo"] { --ink: var(--chicle); }
.case[data-tone="oscuro"] { --ink: var(--lila); }
/* Grano de impresión sobre la tinta. */
.case::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .1; mix-blend-mode: multiply;
  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%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.case > * { position: relative; }

.tones { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; }
.tones button {
  border: 2px solid var(--mesa); background: transparent; color: var(--mesa);
  border-radius: 999px; padding: 5px 12px 5px 10px; font-size: .875rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.tones button svg { width: 15px; height: 15px; }
.tones button[aria-pressed="true"] { background: var(--mesa); color: var(--ink); }

.case h2 { font-size: clamp(2.5rem, 4.6vw, 3.5rem); margin-bottom: 6px; }
.case .stats { font-size: .9375rem; font-weight: 500; margin: 0 0 16px; opacity: .75; }
.case .prompt { font-size: 1.1875rem; line-height: 1.5; margin: 0 0 24px; font-weight: 500; }

.ask { border-top: 2px solid var(--mesa); padding-top: 18px; }
.ask-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.ask-head p { margin: 0; font-weight: 700; }
.ask-head span { font-size: .875rem; font-weight: 500; opacity: .75; white-space: nowrap; }
.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.questions button {
  width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left; padding: 10px 10px 10px 16px; border-radius: 12px; cursor: pointer;
  background: color-mix(in srgb, var(--mesa) 8%, transparent); border: 1.5px dashed color-mix(in srgb, var(--mesa) 45%, transparent);
  font-weight: 500; font-size: 1rem; color: var(--mesa);
}
.questions button:hover { background: color-mix(in srgb, var(--mesa) 14%, transparent); }
.questions button[aria-disabled="true"] { cursor: default; border-style: solid; border-color: transparent; background: color-mix(in srgb, var(--mesa) 10%, transparent); }
.questions .hint { font-size: .8125rem; font-weight: 700; opacity: .55; white-space: nowrap; }
.questions .note { display: block; font-size: .875rem; font-weight: 400; opacity: .8; margin-top: 2px; }

.stamp {
  flex: none; display: inline-grid; place-items: center; min-width: 74px; height: 32px; padding: 0 10px;
  border-radius: 8px; font-family: var(--display); font-weight: 850; font-stretch: 75%; font-size: 1.0625rem; letter-spacing: .01em;
  color: var(--mesa); background: var(--c); transform: rotate(-4deg);
  box-shadow: 0 0 0 2px var(--mesa);
  animation: stamp .28s cubic-bezier(.2, 1.6, .4, 1) both;
}
.stamp.si { --c: var(--menta); }
.stamp.no { --c: var(--rojo); transform: rotate(3deg); }
.stamp.irrelevante { --c: var(--gris); transform: rotate(-2deg); }
@keyframes stamp { from { transform: scale(1.8) rotate(-14deg); opacity: 0; } to { opacity: 1; } }

/* Solución sellada: mantén pulsado para abrirla. */
.seal {

  position: relative; overflow: hidden; width: 100%; margin-top: 18px; min-height: 56px;
  border: 0; border-radius: 12px; cursor: pointer; background: var(--mesa); color: var(--ink);
  font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px;
  user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none;
}
.seal::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 28%, var(--mesa)); transform-origin: left; transform: scaleX(0); transition: transform .15s ease-out; }
.seal.holding::before { transform: scaleX(1); transition: transform .9s linear; }
.seal > * { position: relative; }
.seal svg { width: 18px; height: 18px; }
.solution { margin-top: 18px; padding: 18px 20px; background: var(--mesa); color: var(--tiza); border-radius: 14px; }
.solution p:first-child { margin: 0 0 6px; font-family: var(--display); font-weight: 850; font-stretch: 70%; font-size: 1.5rem; color: var(--ink); line-height: 1; }
.solution p { margin: 0; }
.solution[hidden] { display: none; }

/* ---------- Cómo se juega ---------- */
section { scroll-margin-top: 72px; }
.how { padding: 104px 0 72px; background: var(--mesa-baja); }
.how .intro { max-width: 36em; margin: 0 0 72px; }
.how .intro p { font-size: 1.1875rem; margin: 18px 0 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 88px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 72px; align-items: center; counter-increment: step; }
.steps li:nth-child(even) { grid-template-columns: minmax(0, 1fr) 300px; }
.steps li:nth-child(even) figure { order: 2; }
.steps figure { margin: 0; }
.steps figure img { width: 100%; border-radius: 30px; box-shadow: 0 0 0 1px var(--canto); }
.steps h3 { font-family: var(--display); font-weight: 880; font-stretch: 72%; font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: .95; margin: 0 0 18px; }
.steps h3::before {
  content: counter(step); display: block; margin-bottom: 14px;
  font-size: 1.4em; color: transparent; -webkit-text-stroke: 2px var(--c); width: max-content;
}
.steps p { margin: 0 0 12px; font-size: 1.125rem; color: var(--niebla); max-width: 30em; }
.steps p strong { color: var(--tiza); }

/* ---------- La caja ---------- */
.box { padding: 104px 0; }
.box-panel {
  border: 2px dashed var(--canto); border-radius: 28px; padding: 48px;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px;
}
.box-panel h2 + p { margin: 18px 0 0; font-size: 1.125rem; }
.specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; align-content: start; }
.specs li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.specs svg { width: 40px; height: 40px; color: var(--c, var(--limon)); }
.specs b { display: block; font-size: 1.0625rem; }
.specs span { color: var(--niebla); font-size: .9375rem; line-height: 1.45; display: block; }
.modes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px dashed var(--canto); padding-top: 36px; margin: 0; }
.modes div { padding: 0 28px; border-left: 1px solid var(--canto); }
.modes div:first-child { padding-left: 0; border-left: 0; }
.modes dt { font-family: var(--display); font-weight: 880; font-stretch: 72%; font-size: 2rem; line-height: 1; margin-bottom: 8px; color: var(--c); }
.modes dd { margin: 0; color: var(--niebla); }

/* ---------- Descarga ---------- */
.get { padding: 40px 0 120px; }
.get .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.get img { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 0 0 1px var(--canto); }
.get h2 { font-size: clamp(2.75rem, 6vw, 4.5rem); }
.get p { margin: 10px 0 0; color: var(--niebla); font-size: 1.0625rem; }

/* ---------- Pie ---------- */
footer { border-top: 1px solid var(--canto); padding: 32px 0 40px; color: var(--niebla); font-size: .9375rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--tiza); text-decoration: underline; }

/* ---------- Páginas de texto (privacidad, soporte) ---------- */
.doc { padding: 56px 0 104px; }
.doc .wrap { max-width: 720px; }
.doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.doc h1 { font-family: var(--display); font-weight: 900; font-stretch: 70%; line-height: .85; margin: 0; font-size: clamp(4rem, 13vw, 7rem); color: var(--limon); text-shadow: .045em .045em 0 var(--chicle); }
.doc .lede { font-size: 1.25rem; line-height: 1.5; margin: 0 0 40px; max-width: 32em; }
.doc h2 { font-size: 1.375rem; margin: 48px 0 10px; line-height: 1.25; }
.doc p, .doc li { color: color-mix(in srgb, var(--tiza) 82%, var(--niebla)); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--niebla); }
.doc a { color: var(--limon); }
.doc .updated { color: var(--niebla); font-size: .9375rem; margin-top: 56px; }

.promise { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 2px; border-radius: 18px; overflow: hidden; }
.promise li { margin: 0 !important; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center; padding: 16px 20px; background: var(--carta); color: var(--tiza) !important; font-weight: 500; font-size: 1.0625rem; }
.promise svg { width: 30px; height: 30px; color: var(--menta); }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--carta); border: 1px solid var(--canto); }
.lang button { border: 0; background: transparent; color: var(--niebla); padding: 7px 14px; border-radius: 999px; font-size: .875rem; font-weight: 700; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--tiza); color: var(--mesa); }
[data-lang-block][hidden], [data-en][hidden], [data-es][hidden] { display: none; }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--canto); }
.faq details { border-bottom: 1px solid var(--canto); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 700; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--carta)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1edfa' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; max-width: 36em; }
.faq summary:hover { color: var(--limon); }

.mailcard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 20px; align-items: center; padding: 24px; border-radius: 20px; background: var(--limon); color: var(--mesa); box-shadow: 6px 6px 0 var(--chicle); }
.mailcard svg { width: 40px; height: 40px; }
.mailcard a { color: var(--mesa) !important; font-weight: 700; font-size: 1.3125rem; }
.mailcard p { margin: 4px 0 0; color: var(--mesa) !important; opacity: .8; font-size: .9375rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 32px 0 80px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero .left { position: static; padding-top: 8px; }
  .steps li, .steps li:nth-child(even) { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .steps li:nth-child(even) figure { order: 0; }
  .box-panel { grid-template-columns: 1fr; padding: 36px; gap: 40px; }
  .get .wrap { grid-template-columns: auto minmax(0, 1fr); }
  .get .store { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav nav a:not(.btn) { display: none; }
  .hero .pitch { font-size: 1.1875rem; margin: 24px 0 28px; }
  .case { padding: 22px 18px 20px; box-shadow: 6px 6px 0 var(--mesa-baja), 6px 6px 0 2px var(--canto); }
  .case .prompt { font-size: 1.0625rem; }
  .questions .hint { display: none; }
  .how, .box { padding: 80px 0; }
  .how .intro { margin-bottom: 48px; }
  .steps { gap: 64px; }
  .steps li, .steps li:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .steps figure { max-width: 240px; }
  .box-panel { padding: 28px 20px; border-radius: 22px; }
  .specs { grid-template-columns: 1fr; gap: 22px; }
  .modes { grid-template-columns: 1fr; gap: 22px; }
  .modes div { padding: 0; border-left: 0; }
  .get .wrap { grid-template-columns: 1fr; gap: 24px; }
  .get img { width: 96px; height: 96px; border-radius: 22px; }
  .mailcard { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
