/* ==========================================================================
   MundoDoPlayer — styles.css
   Visual DNA: Penpot (deep-space violet stage + rationed bright-teal accent).
   BEM naming. No drop shadows: depth via color blocks + hairline borders.
   ========================================================================== */

:root {
  /* Colors */
  --violet: #151035;
  --violet-2: #1c1547;
  --rich-violet: #2f226c;
  --teal: #1ccac7;
  --teal-ink: #0c2f2f;
  --off-white: #fafafa;
  --light-gray: #eeeeee;
  --silver: #d3d3d3;
  --black: #000000;
  --ink: #17142e;         /* body text on light */
  --muted: #5c5872;       /* muted text on light */
  --muted-dark: #b7b3d6;  /* muted text on dark */
  --line: #e6e6ee;        /* hairline on light */
  --line-dark: #322a63;   /* hairline on dark */
  --card: #ffffff;

  /* Type */
  --font: 'Work Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tracking: -0.028em;

  /* Radii */
  --r-ctrl: 8px;
  --r-card: 20px;
  --r-pill: 9999px;

  /* Spacing / layout */
  --container: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --header-h: 68px;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--tracking);
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; letter-spacing: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: var(--tracking); }
p { margin: 0; }
ul { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--dark { background: var(--violet); color: var(--off-white); }
.section--light { background: var(--off-white); color: var(--ink); }
.section--tint { background: var(--light-gray); color: var(--ink); }
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal); margin-bottom: 12px;
}
.section--light .section__eyebrow, .section--tint .section__eyebrow { color: var(--rich-violet); }
.section__title { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.section__lead { margin-top: 16px; font-size: clamp(1rem, 1.6vw, 1.125rem); color: var(--muted); max-width: 60ch; }
.section--dark .section__lead { color: var(--muted-dark); }
.accent { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; font-size: 16px; line-height: 1; padding: 14px 22px;
  border-radius: var(--r-ctrl); border: 1px solid transparent; transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: var(--violet); border-color: var(--teal); font-weight: 700; }
.btn--primary:hover { background: #33d8d5; }
.btn--ghost { background: transparent; color: var(--off-white); border-color: var(--off-white); }
.btn--ghost:hover { background: rgba(250,250,250,.08); }
.btn--ghost-dark { background: transparent; color: var(--violet); border-color: var(--silver); }
.btn--ghost-dark:hover { border-color: var(--violet); }
.btn--block { width: 100%; }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60; background: var(--violet);
  border-bottom: 1px solid var(--line-dark);
}
.header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--off-white); white-space: nowrap; }
.brand__accent { color: var(--teal); }
.header__nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header__list { list-style: none; display: flex; align-items: center; gap: 2px; padding: 0; margin: 0; }
.header__link {
  display: inline-block; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--muted-dark);
  border-radius: var(--r-ctrl); transition: color .15s ease, background-color .15s ease;
}
.header__link:hover { color: var(--off-white); background: rgba(250,250,250,.06); }
.header__cta { margin-left: 8px; }
.header__burger {
  display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-dark); border-radius: var(--r-ctrl); color: var(--off-white);
}
.header__burger .ico { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .header__burger { display: inline-flex; }
  .header__nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--violet); border-bottom: 1px solid var(--line-dark); padding: 16px var(--pad-x) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .header__nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .header__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .header__link { padding: 12px 10px; font-size: 16px; }
  .header__cta { margin-left: 0; margin-top: 8px; }
  .header__cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--violet); color: var(--off-white);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: -30% 40% auto -10%; height: 90%;
  background: radial-gradient(closest-side, rgba(47,34,108,.9), transparent 70%);
  filter: blur(10px); z-index: 0;
}
.hero::after {
  content: ""; position: absolute; right: -8%; top: -20%; width: 55%; height: 90%;
  background: radial-gradient(closest-side, rgba(28,202,199,.14), transparent 70%);
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 5vw, 4rem); text-align: center; justify-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-dark); background: rgba(250,250,250,.04); font-size: 13px; font-weight: 500; color: var(--muted-dark);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero__title { font-size: clamp(2.5rem, 6.6vw, 4.5rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 15ch; }
.hero__sub { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted-dark); max-width: 52ch; margin-inline: auto; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__facts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; list-style: none; padding: 0; font-size: 14px; color: var(--muted-dark); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .ico { width: 16px; height: 16px; color: var(--teal); }

.showcase {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px);
  width: 100%; max-width: 640px;
}
.showcase__item {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--line-dark); background: var(--violet-2);
}
.showcase__item img { width: 100%; height: 100%; object-fit: cover; }
.showcase__item:nth-child(2), .showcase__item:nth-child(7) { transform: translateY(-10px); }
.showcase__item:nth-child(3), .showcase__item:nth-child(6) { transform: translateY(10px); }
@media (max-width: 520px) {
  .showcase { grid-template-columns: repeat(4, 1fr); max-width: 420px; gap: 8px; }
  .showcase__item:nth-child(n) { transform: none; }
}

/* ---------- Games catalogue ---------- */
.games__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 20px);
}
@media (max-width: 1024px) { .games__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .games__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .games__grid { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 18px; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--teal); }
.card__top { display: flex; align-items: center; gap: 14px; }
.card__icon {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: var(--light-gray);
}
.card__icon img { width: 100%; height: 100%; object-fit: cover; }
.card__heading { min-width: 0; }
.card__title { font-size: 17px; }
.card__dev { margin-top: 2px; font-size: 13px; color: var(--muted); }
.card__genre {
  align-self: flex-start; margin-top: 14px; padding: 4px 12px; border-radius: var(--r-pill);
  background: rgba(47,34,108,.08); color: var(--rich-violet); font-size: 12px; font-weight: 500;
}
.card__desc { margin-top: 12px; font-size: 14.5px; color: var(--muted); flex: 1 1 auto; }
.card__foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__btn { padding: 10px 14px; font-size: 14px; }

/* Rating stars */
.rating { display: inline-flex; align-items: center; gap: 8px; }
.rating__stars { position: relative; display: inline-block; line-height: 0; }
.rating__base, .rating__on { display: flex; gap: 2px; }
.rating__on { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; }
.rating__stars .ico { width: 17px; height: 17px; flex: 0 0 auto; }
.rating__base .ico { color: var(--silver); }
.rating__on .ico { color: var(--rich-violet); }
.rating__num { font-size: 14px; font-weight: 700; color: var(--ink); }
.section--dark .rating__base .ico { color: var(--line-dark); }
.section--dark .rating__on .ico { color: var(--teal); }
.section--dark .rating__num { color: var(--off-white); }

/* ---------- Stats / numbers ---------- */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 780px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 24px; border: 1px solid var(--line-dark); border-radius: var(--r-card); background: var(--violet-2); }
.stat__num { font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 700; color: var(--teal); line-height: 1; }
.stat__label { margin-top: 10px; font-size: 15px; color: var(--muted-dark); }

/* ---------- Method / trust ---------- */
.method__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 22px); }
@media (max-width: 900px) { .method__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .method__grid { grid-template-columns: 1fr; } }
.method__card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.method__ico {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 14px; background: rgba(28,202,199,.12); color: var(--rich-violet); margin-bottom: 16px;
}
.method__ico .ico { width: 24px; height: 24px; }
.method__title { font-size: 18px; }
.method__text { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* ---------- Demo / screenshots ---------- */
.demo__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 20px); }
@media (max-width: 860px) { .demo__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .demo__grid { grid-template-columns: 1fr; } }
.demo__item { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--card); }
.demo__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--light-gray); }
.demo__media img { width: 100%; height: 100%; object-fit: cover; }
.demo__cap { padding: 12px 16px; font-size: 14px; font-weight: 500; color: var(--muted); }

/* ---------- Earn / transparency ---------- */
.earn__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 860px) { .earn__grid { grid-template-columns: 1fr; } }
.earn__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.earn__list li { position: relative; padding-left: 34px; font-size: 15.5px; color: var(--muted-dark); }
.earn__list .ico { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; color: var(--teal); }
.earn__list strong { color: var(--off-white); font-weight: 700; }
.earn__note { margin-top: 24px; font-size: 14px; color: var(--muted-dark); }
.earn__note a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.earn__visual { border: 1px solid var(--line-dark); border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--violet-2); }
.earn__visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Steps ---------- */
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 780px) { .steps__grid { grid-template-columns: 1fr; } }
.step { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--r-pill); background: var(--teal); color: var(--violet); font-weight: 700; font-size: 18px; margin-bottom: 16px;
}
.step__title { font-size: 18px; }
.step__text { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 860px) { .reviews__grid { grid-template-columns: 1fr; } }
.review { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); display: flex; flex-direction: column; gap: 16px; }
.review__quote { font-size: 16px; color: var(--ink); flex: 1 1 auto; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--rich-violet); color: var(--off-white); font-weight: 700; font-size: 15px; letter-spacing: 0;
}
.review__name { font-size: 15px; font-weight: 700; }
.review__role { font-size: 13px; color: var(--muted); }

/* ---------- Subscribe form ---------- */
.subscribe__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .subscribe__wrap { grid-template-columns: 1fr; } }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 500; color: var(--muted-dark); }
.field__input {
  width: 100%; padding: 13px 14px; font-family: inherit; font-size: 15px; letter-spacing: inherit;
  color: var(--off-white); background: var(--violet-2); border: 1px solid var(--line-dark); border-radius: var(--r-ctrl);
}
.field__input::placeholder { color: #7a76a0; }
.field__input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted-dark); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--teal); flex: 0 0 auto; }
.consent a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.form__note { font-size: 12.5px; color: #8580ac; }
.form__success {
  display: none; padding: 20px; border: 1px solid var(--teal); border-radius: var(--r-card);
  background: rgba(28,202,199,.08); color: var(--off-white);
}
.form__success.is-visible { display: block; }
.form__success .ico { width: 22px; height: 22px; color: var(--teal); margin-bottom: 8px; }
.is-hidden { display: none !important; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  padding: 18px 20px; background: transparent; border: 0; font-size: 16px; font-weight: 500; color: var(--ink);
}
.faq__q .ico { width: 20px; height: 20px; flex: 0 0 auto; color: var(--rich-violet); transition: transform .2s ease; }
.faq__item.is-open .faq__q .ico { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a-inner { padding: 0 20px 18px; font-size: 15px; color: var(--muted); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 780px) { .about__grid { grid-template-columns: 1fr; } }
.about__text p + p { margin-top: 16px; }
.about__text p { color: var(--muted); font-size: 16px; }
.about__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.about__points li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink); }
.about__points .ico { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; color: var(--teal); }

/* ---------- Footer ---------- */
.footer { background: var(--violet); color: var(--off-white); border-top: 1px solid var(--line-dark); }
.footer__inner { padding-block: clamp(3rem, 5vw, 4rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.footer__tag { margin-top: 12px; font-size: 14px; color: var(--muted-dark); max-width: 34ch; }
.footer__col-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-dark); margin-bottom: 14px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__link { font-size: 15px; color: var(--off-white); }
.footer__link:hover { color: var(--teal); }
.footer__mail { color: var(--teal); }
.footer__bottom { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--muted-dark); }

/* ---------- Legal pages ---------- */
.legal { background: var(--off-white); }
.legal__inner { max-width: 820px; padding-block: clamp(3rem, 6vw, 5rem); }
.legal__back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--rich-violet); margin-bottom: 24px; }
.legal__back .ico { width: 16px; height: 16px; }
.legal__title { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.legal__updated { margin-top: 10px; font-size: 14px; color: var(--muted); }
.legal__body { margin-top: 32px; }
.legal__body h2 { font-size: 1.4rem; margin-top: 36px; }
.legal__body h3 { font-size: 1.1rem; margin-top: 24px; }
.legal__body p { margin-top: 12px; color: var(--ink); font-size: 15.5px; }
.legal__body ul { margin-top: 12px; padding-left: 22px; display: grid; gap: 8px; color: var(--ink); font-size: 15.5px; }
.legal__body a { color: var(--rich-violet); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 50;
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--violet); border: 0; border-radius: var(--r-pill);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop .ico { width: 22px; height: 22px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 70;
  width: min(720px, calc(100% - 32px)); background: var(--violet-2); color: var(--off-white);
  border: 1px solid var(--line-dark); border-radius: var(--r-card); padding: 18px 20px;
  display: none; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie.is-visible { display: flex; }
.cookie__text { flex: 1 1 260px; font-size: 14px; color: var(--muted-dark); }
.cookie__text a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie__actions .btn { padding: 10px 18px; font-size: 14px; }
