/* Portada de MANDRIL: los mismos colores, letras y formas que el juego. */
@font-face { font-family: 'Lilita'; src: url('fonts/lilita.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 600; src: url('fonts/nunito-600.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 800; src: url('fonts/nunito-800.ttf') format('truetype'); font-display: swap; }

:root {
  --wine: #9A1414;
  --wine-dark: #7A0E0E;
  --wine-deep: #7A0E0E;
  --sand: #FFE7C2;
  --sand-edge: #d9bd8e;
  --lime: #85bb65;
  --lime-dark: #5f9444;
  --green-ink: #12331c;
  --ink: #16211a;
  --yes: #3e9b4f;
  --no: #e5373f;
  --shade: rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wine); color: #fff; font-family: 'Nunito', system-ui, sans-serif; font-weight: 600; font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); }
h1, h2, h3 { font-family: 'Lilita', 'Nunito', sans-serif; font-weight: 400; letter-spacing: 0.3px; margin: 0; }
h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; color: var(--sand); text-align: center; }
h3 { font-size: 24px; color: var(--sand); }
p { margin: 0; }
em { font-style: italic; font-weight: 800; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sand); color: var(--wine-deep); padding: 8px 14px; border-radius: 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-bottom: 4px solid transparent; border-radius: 18px; font-family: 'Lilita', sans-serif; font-size: 19px; letter-spacing: 0.3px; text-decoration: none; cursor: pointer; transition: transform 0.08s ease-out; }
.btn:active { transform: scale(0.95); }
.btn.lime { background: var(--lime); border-color: var(--lime-dark); color: var(--green-ink); }
.btn.light { background: #fff; border-color: #e1e5db; color: var(--ink); }
.btn.big { min-height: 64px; padding: 0 30px; font-size: 24px; border-bottom-width: 6px; border-radius: 22px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 6px 18px; border-radius: 16px; border: 2px solid var(--sand); background: rgba(0, 0, 0, 0.2); color: var(--sand); text-decoration: none; line-height: 1.15; }
.store small { font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; opacity: 0.85; }
.store b { font-family: 'Lilita', sans-serif; font-weight: 400; font-size: 20px; }
.store[aria-disabled='true'] { opacity: 0.7; cursor: default; border-style: dashed; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.stores.center { justify-content: center; margin-top: 22px; }

/* ---------- cabecera ---------- */
.hero { position: relative; overflow: hidden; background: var(--wine); }
.rays { position: absolute; inset: -60%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.09) 0deg 6.4deg, transparent 6.4deg 12.8deg); mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); animation: spin 180s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1120px; margin: 0 auto; padding: 14px 20px; }
.chip { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #f4efd9; border: 3px solid var(--sand); box-shadow: 0 0 0 3px var(--wine-deep); }
.links { display: flex; align-items: center; gap: 6px; }
.links a { color: var(--sand); text-decoration: none; font-weight: 800; font-size: 16px; padding: 10px 12px; border-radius: 12px; }
.links a:hover { background: var(--shade); }
.links .pill { background: var(--sand); color: var(--wine-deep); }
.links .pill:hover { background: #fff; }
/* El mandril está dibujado para asomar por el borde: la columna de la derecha llega hasta el filo de la pantalla. */
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 20px; padding: 20px 0 0 max(20px, calc((100vw - 1120px) / 2 + 20px)); min-height: min(78vh, 720px); }
.hero-text { padding-bottom: 56px; align-self: center; }
.wordmark { font-size: clamp(64px, 12vw, 136px); line-height: 1; color: var(--sand); text-shadow: -0.02em 0 0 var(--wine-deep), 0.02em 0 0 var(--wine-deep), 0 -0.02em 0 var(--wine-deep), 0 0.02em 0 var(--wine-deep), -0.015em -0.015em 0 var(--wine-deep), 0.015em -0.015em 0 var(--wine-deep), -0.015em 0.015em 0 var(--wine-deep), 0.015em 0.015em 0 var(--wine-deep), 0 0.06em 0 var(--wine-dark), 0.02em 0.06em 0 var(--wine-dark), -0.02em 0.06em 0 var(--wine-dark); }
.ribbon { display: inline-block; margin: 14px 0 22px; transform: rotate(-2deg); background: var(--wine-deep); border-radius: 16px; padding-bottom: 5px; }
.ribbon span { display: block; background: var(--sand); color: var(--wine-deep); font-weight: 800; font-size: clamp(18px, 2.6vw, 26px); padding: 8px 18px; border-radius: 16px; }
.lead { font-size: clamp(18px, 2.1vw, 22px); max-width: 25em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 26px 0 14px; }
.fine { font-size: 14px; opacity: 0.8; }
.hero-art { position: relative; align-self: end; min-height: 420px; }
.monkey { position: relative; margin-left: auto; width: min(100%, 330px); margin-bottom: -40px; filter: drop-shadow(0 18px 24px rgba(30, 2, 2, 0.45)); }
.fan { position: absolute; width: 34%; border-radius: 6%; box-shadow: 0 14px 30px rgba(30, 2, 2, 0.5); bottom: 12%; }
.fan.f1 { left: 4%; transform: rotate(-14deg); }
.fan.f2 { left: 22%; bottom: 20%; transform: rotate(-3deg); }
.fan.f3 { left: 40%; transform: rotate(9deg); }

/* ---------- bandas ---------- */
.band { max-width: 1120px; margin: 0 auto; padding: 72px 20px; }
.band.dark { max-width: none; background: var(--wine-deep); }
.band.dark > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.sub { text-align: center; color: rgba(255, 255, 255, 0.85); margin-top: 10px; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { background: var(--shade); border-radius: 24px; padding: 22px 18px; }
.num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--sand); border-bottom: 4px solid var(--sand-edge); color: var(--wine-deep); font-family: 'Lilita', sans-serif; font-size: 26px; margin-bottom: 12px; transform: rotate(-4deg); }
.steps p { margin-top: 6px; color: rgba(255, 255, 255, 0.9); font-size: 16px; }

.asks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.ask { margin: 0; background: #fff; color: var(--ink); border-radius: 24px; padding: 16px; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.ask img { border-radius: 7px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); }
.q { font-weight: 800; font-size: 18px; line-height: 1.3; }
.a { display: inline-block; margin-top: 8px; font-family: 'Lilita', sans-serif; font-size: 20px; color: #fff; padding: 2px 14px; border-radius: 10px; }
.a.yes { background: var(--yes); }
.a.no { background: var(--no); }
.note { margin-top: 8px; font-size: 15px; color: #646b63; }

.rules { list-style: none; padding: 0; margin: 32px auto 0; max-width: 760px; display: grid; gap: 10px; }
.rules li { background: var(--shade); border-radius: 20px; padding: 16px 18px; }
.rules strong { color: var(--sand); font-weight: 800; }

.tabs { display: flex; gap: 8px; width: fit-content; margin: 28px auto 22px; background: var(--shade); border-radius: 20px; padding: 6px; }
.tabs button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; background: transparent; color: var(--sand); font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 17px; cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--sand); color: var(--wine-deep); }
.tabs button[data-tab='dinero'][aria-selected='true'], .tabs button[data-tab='guia'][aria-selected='true'] { background: var(--lime); color: var(--green-ink); }
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.deck button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 7%; transition: transform 0.12s ease-out; }
.deck button:hover { transform: translateY(-4px) rotate(-1.5deg); }
.deck.single { grid-template-columns: minmax(0, 340px); justify-content: center; }
.deck.single img { aspect-ratio: auto; border-radius: 5%; }
.deck img { width: 100%; aspect-ratio: 420 / 676; border-radius: 7%; background: rgba(255, 255, 255, 0.08); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }

.wait { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: center; }
.wait-art img { width: min(100%, 380px); margin: 0 auto; filter: drop-shadow(0 18px 24px rgba(30, 2, 2, 0.45)); }
.wait-box { background: var(--sand); color: var(--ink); border-radius: 28px; border-bottom: 8px solid var(--sand-edge); padding: 28px; }
.wait-box h2 { color: var(--wine); text-align: left; font-size: clamp(28px, 4vw, 40px); }
.wait-box > p { margin-top: 12px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--wine-dark); margin: 0 0 6px !important; }
form { margin-top: 20px; }
form > label[for] { display: block; font-weight: 800; font-size: 14px; color: var(--wine-dark); margin-bottom: 6px; }
.field { display: flex; gap: 10px; }
.field input { flex: 1; min-width: 0; height: 56px; padding: 0 16px; border-radius: 18px; border: 2px solid var(--wine-deep); border-bottom-width: 5px; background: #fff; color: var(--ink); font: 800 18px 'Nunito', sans-serif; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--wine); }
.check a { color: var(--wine); font-weight: 800; }
.price { margin: 18px 0 14px; display: flex; flex-direction: column; align-items: flex-start; background: var(--wine-deep); color: var(--sand); border-radius: 20px; border-bottom: 5px solid #560909; padding: 12px 18px; width: fit-content; }
.price span, .price small { font-size: 13px; font-weight: 800; opacity: 0.85; }
.price span { letter-spacing: 1px; text-transform: uppercase; }
.price strong { font-family: 'Lilita', sans-serif; font-weight: 400; font-size: 44px; line-height: 1.1; color: var(--lime); }
.reserve { width: 100%; }
.reserve[hidden] { display: none; }
.almost { margin: 16px 0 14px; }
.msg { min-height: 24px; margin-top: 12px; font-weight: 800; }
.msg.ok { color: #2b7539; }
.msg.bad { color: #b8252c; }
.dark-text { color: #5b4a3a; opacity: 1; margin-top: 6px !important; }

footer { background: var(--wine-deep); text-align: center; padding: 40px 20px 48px; display: grid; gap: 8px; justify-items: center; }
footer img { background: #f4efd9; border-radius: 50%; border: 3px solid var(--sand); padding: 5px; width: 54px; height: 54px; }
footer a { color: var(--sand); }

dialog { border: 0; border-radius: 28px; padding: 18px; background: var(--sand); color: var(--ink); width: min(92vw, 380px); text-align: center; }
dialog::backdrop { background: rgba(30, 4, 4, 0.8); }
dialog img { width: 100%; border-radius: 6%; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
dialog img { transition: transform 0.16s ease-in; }
dialog img.turning { transform: scaleX(0); }
.flip { display: block; margin: 0 auto 12px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--wine); color: var(--sand); font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px; cursor: pointer; }
.flip[hidden] { display: none; }
dialog p { font-family: 'Lilita', sans-serif; font-size: 24px; color: var(--wine); margin: 12px 0; }

/* ---------- móvil ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .links a:not(.pill) { display: none; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding: 8px 0 0; }
  .hero-text { padding: 0 20px 8px; text-align: center; }
  .lead { margin: 0 auto; }
  .cta { justify-content: center; }
  .cta .stores { justify-content: center; }
  .hero-art { min-height: 0; height: 300px; margin-top: 8px; }
  .monkey { width: 190px; margin: 0 0 0 auto; position: absolute; right: -6px; bottom: -70px; }
  .fan { width: 28%; bottom: 8%; }
  .fan.f1 { left: 2%; }
  .fan.f2 { left: 21%; bottom: 16%; }
  .fan.f3 { left: 40%; }
  .band { padding: 52px 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .asks { grid-template-columns: 1fr; }
  .wait { grid-template-columns: 1fr; }
  .wait-art img { width: 220px; }
  .wait-box { padding: 22px 18px; }
  .field { flex-direction: column; }
  .deck { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .tabs { gap: 4px; }
  .tabs button { padding: 0 13px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rays { animation: none; }
  .btn, .deck button { transition: none; }
}
