/* Crumble Post — web de descarga. Mismo estilo que el juego:
   tinta cálida, botones con volumen, papelería postal, cielo de atardecer. */
@font-face { font-family: 'Fredoka'; src: url('fonts/fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/nunito.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #3b2419;
  --paper: #fff7ea;
  --paper-2: #f6e4c8;
  --yellow: #ffc93c; --yellow-d: #d9930f;
  --red: #e8553e; --red-d: #b23a28;
  --green: #6cc25a;
  --blue: #4d96ff;
  --sky-1: #b8a4dc; --sky-2: #f2b8a2; --sky-3: #fde3cc;
  --outline: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink),
             2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink);
  --font-title: 'Fredoka', system-ui, sans-serif;
  --font-ui: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-ui); color: var(--ink); font-size: 17px; line-height: 1.5;
  background: linear-gradient(to bottom, var(--sky-1), var(--sky-2) 22%, var(--sky-3) 48%, #fff3e6 100%);
  background-attachment: fixed; min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
b { font-weight: 800; }

/* ---------------------------------------------------------------- Botones */
.btn {
  --c: var(--yellow); --cd: var(--yellow-d);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none;
  font-family: var(--font-title); font-weight: 700; color: #fff; text-shadow: var(--outline);
  background: var(--c); border: 3px solid var(--ink); border-radius: 20px; padding: 12px 22px; font-size: 20px; line-height: 1;
  box-shadow: inset 0 -5px 0 var(--cd), inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 5px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:active { transform: translateY(4px); box-shadow: inset 0 -2px 0 var(--cd), inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 1px 0 var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 16px; border-radius: 14px; box-shadow: inset 0 -4px 0 var(--cd), inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 4px 0 var(--ink); }
.btn-xl { padding: 16px 30px; font-size: 30px; border-radius: 26px; }
.btn-xl span { display: flex; flex-direction: column; align-items: flex-start; }
.btn-xl small { font-size: 15px; margin-top: 3px; opacity: 0.95; }
.btn-yellow { --c: var(--yellow); --cd: var(--yellow-d); }

/* ---------------------------------------------------------------- Portada */
.hero { position: relative; overflow: hidden; padding-bottom: 0; }
.nav {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 16px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-title); font-weight: 700; font-size: 20px; }
.brand img { border-radius: 12px; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 24px 16px 0; }
.logo { display: inline-flex; flex-direction: column; align-items: center; animation: drop 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.logo-crumble {
  font-family: var(--font-title); font-weight: 700; font-size: clamp(64px, 14vw, 140px); line-height: 0.95; color: #fff4e0; letter-spacing: 0.02em;
  text-shadow: 4px 0 0 var(--ink), -4px 0 0 var(--ink), 0 4px 0 var(--ink), 0 -4px 0 var(--ink), 4px 4px 0 var(--ink), -4px 4px 0 var(--ink), 4px -4px 0 var(--ink), -4px -4px 0 var(--ink),
    0 8px 0 var(--ink), 0 12px 0 var(--ink), 0 20px 26px rgba(59, 36, 25, 0.3);
  transform: rotate(-3deg);
}
.logo-post { transform: rotate(3deg); margin-top: 2px; }
.logo-post span {
  display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: clamp(46px, 10vw, 96px); line-height: 1; color: #fff;
  background: var(--red); padding: 6px 30px 12px; border: 4px solid var(--ink); border-radius: 14px; letter-spacing: 0.12em;
  box-shadow: inset 0 -8px 0 var(--red-d), inset 0 4px 0 rgba(255, 255, 255, 0.4), 0 8px 0 var(--ink); text-shadow: var(--outline);
  outline: 3px dashed rgba(255, 244, 224, 0.8); outline-offset: -12px;
}
.tagline { font-family: var(--font-title); font-weight: 600; font-size: clamp(18px, 3vw, 26px); margin: 26px auto 22px; max-width: 640px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta .btn { animation: breathe 2.4s ease-in-out infinite; }
.cta-note { margin: 4px 0 0; font-weight: 800; font-size: 14px; opacity: 0.8; }
.hero-art { width: 100%; height: auto; max-width: 1400px; margin: 10px auto 0; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent); }

/* -------------------------------------------------------------- Secciones */
main { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
.section { padding: 56px 0 8px; }
.section-title { text-align: center; margin: 0 0 28px; }
.section-title span {
  display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: clamp(26px, 5vw, 40px); color: #fff; line-height: 1.15;
  background: var(--red); border: 3px solid var(--ink); border-radius: 12px; padding: 8px 26px 10px; text-shadow: var(--outline);
  box-shadow: inset 0 -5px 0 var(--red-d), inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 5px 0 var(--ink); transform: rotate(-1.5deg);
}
.lead, .promise, .caption { text-align: center; max-width: 680px; margin: 0 auto 24px; font-weight: 700; }
.promise { margin-top: 26px; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; padding: 14px 20px; box-shadow: 0 5px 0 var(--ink); }
.caption { font-size: 14px; opacity: 0.7; margin-top: 16px; }

.card {
  position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: 24px;
  box-shadow: 0 6px 0 var(--ink), 0 16px 34px rgba(59, 36, 25, 0.18);
}
.card::before { content: ''; position: absolute; inset: 6px; border: 2px dashed rgba(59, 36, 25, 0.16); border-radius: 18px; pointer-events: none; }
.card h3 { font-family: var(--font-title); font-size: 22px; margin: 8px 0 4px; }
.card p { margin: 0; font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.step { padding: 26px 22px 22px; text-align: center; }
.step-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); border: 3px solid var(--ink); font-family: var(--font-title); font-weight: 700; font-size: 20px;
}
.step-ico { width: 64px; height: 64px; margin: 6px auto 0; }

.shots { display: flex; justify-content: center; align-items: center; gap: 22px; }
.phone {
  margin: 0; width: min(30%, 260px); border: 10px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--ink);
  box-shadow: 0 10px 0 rgba(59, 36, 25, 0.25), 0 24px 50px rgba(59, 36, 25, 0.3);
}
.phone img { width: 100%; height: auto; border-radius: 26px; }
.phone:nth-child(1) { transform: rotate(-4deg) translateY(16px); }
.phone:nth-child(3) { transform: rotate(4deg) translateY(16px); }
.phone.tall { width: min(34%, 290px); z-index: 1; }

.mechs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.mech { padding: 20px 18px 18px; text-align: center; }
.mech-ico { width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; background: var(--paper-2); border: 2.5px solid var(--ink); border-radius: 18px; }
.mech-ico svg { width: 52px; height: 52px; }
.mech p { font-size: 15px; }
.tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 900; background: var(--blue); color: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; }

.cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; }
.char { margin: 0; background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); padding: 6px 6px 12px; text-align: center; position: relative; overflow: hidden; }
.char img { width: 100%; height: auto; transition: transform 0.25s; }
.char:hover img { transform: scale(1.08) rotate(-3deg); }
.char figcaption { display: flex; flex-direction: column; }
.char b { font-family: var(--font-title); font-size: 19px; }
.char span { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.r-common span { color: #8a7a68; }
.r-rare { border-color: #2f6bc4; box-shadow: 0 5px 0 #2f6bc4; background: linear-gradient(#fff7ea, #e6f0ff); }
.r-rare span { color: #2f6bc4; }
.r-epic { border-color: #6447a8; box-shadow: 0 5px 0 #6447a8, 0 0 18px rgba(160, 95, 214, 0.45); background: linear-gradient(#fff7ea, #f0e3ff); }
.r-epic span { color: #6447a8; }
.r-legendary { border-color: #b8740d; box-shadow: 0 5px 0 #b8740d, 0 0 22px rgba(255, 190, 60, 0.6); background: linear-gradient(#fff9e8, #ffe9b8); }
.r-legendary span { color: #b8740d; }
.r-legendary::after, .r-mythic::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.7) 45%, transparent 60%); background-size: 250% 100%;
  animation: shine 2.6s linear infinite;
}
.r-mythic {
  border-color: transparent;
  background: linear-gradient(#fff7f9, #ffe3f1) padding-box, linear-gradient(90deg, #ff6b6b, #ffd166, #6dbb6a, #4d96ff, #a05fd6) border-box;
  box-shadow: 0 5px 0 var(--ink), 0 0 26px rgba(255, 120, 200, 0.6);
}
.r-mythic span { background: linear-gradient(90deg, #e8457a, #a05fd6, #4d96ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feature { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: rgba(255, 247, 234, 0.9); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); }
.feature b { font-family: var(--font-title); font-size: 19px; }
.feature span { font-weight: 600; font-size: 15px; }

.download { display: flex; justify-content: center; }
.download-card { width: min(100%, 640px); padding: 34px 26px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dl-icon { width: 120px; height: 120px; border-radius: 28px; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); margin-top: -90px; background: var(--paper); }
.download-card h2 { font-family: var(--font-title); font-size: 32px; margin: 8px 0 0; }
.dl-meta { font-weight: 800; opacity: 0.8; margin-bottom: 10px !important; }
.desktop-hint { display: none; margin-top: 14px !important; background: #fff1d6; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 14px; font-size: 14px; }
.desktop .desktop-hint { display: block; }
.download-card h3 { margin-top: 22px; }
.install { text-align: left; margin: 4px 0 0; padding-left: 22px; font-weight: 600; }
.install li { margin: 8px 0; }

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.about-card { padding: 22px; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; font-weight: 700; }
.checks li { padding-left: 30px; position: relative; margin: 6px 0; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--green); border: 2px solid var(--ink); }
.checks li::after { content: ''; position: absolute; left: 6px; top: 6px; width: 6px; height: 10px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(40deg); }

.footer { text-align: center; padding: 30px 16px 40px; font-weight: 700; }
.footer img { margin: 0 auto 8px; border-radius: 12px; border: 2.5px solid var(--ink); }
.footer p { margin: 2px 0; }
.small { font-size: 13px; opacity: 0.7; }

/* --------------------------------------------------------------- Animación */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s cubic-bezier(0.2, 1.2, 0.4, 1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-60px); } }
@keyframes breathe { 50% { transform: scale(1.04); } }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ Móvil */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .shots { gap: 8px; }
  .phone { border-width: 6px; border-radius: 22px; }
  .phone img { border-radius: 16px; }
  .btn-xl { font-size: 26px; padding: 14px 24px; }
  .hero-art { aspect-ratio: 5 / 4; object-position: 46% 60%; }
}
