/* ==========================================================================
   Vázquez Software — estilos de la web principal
   Portada, /android/, /ios/ y /policy.html (Tarot añade los suyos encima).

   Estilo: papel claro, tinta negra y un único acento naranja. Fichas blancas con
   borde y sombra dura; cada categoría tiene su color. Sin imágenes de fondo.
   ========================================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f3eee4;          /* papel */
  --bg-2: #e9e2d3;
  --surface: #fffdf8;     /* fichas */
  --text: #16130f;        /* tinta */
  --text-2: #3d3830;
  --muted: #6b6457;
  --edge: #16130f;        /* bordes marcados */
  --shade: #16130f;       /* sombras duras */
  --line: rgba(22, 19, 15, .13);
  --line-2: rgba(22, 19, 15, .24);
  --brand: #94c3d2;       /* azul verdoso del logotipo de Vázquez Software */
  --brand-2: #6eaabd;     /* el mismo, un punto más intenso (bordes, subrayados) */
  --accent: #19697f;      /* versión oscura para textos y detalles pequeños (contraste AA) */
  --accent-2: #19697f;
  --on-accent: #fff;
  --on-brand: #16130f;
  --star: #f2a900;
  --footer-bg: #16130f;
  --footer-text: #f3eee4;
  --footer-muted: #a59d8e;

  --r: 18px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --smooth: cubic-bezier(.4, 0, .2, 1);   /* arranca y termina despacio, sin rebote */
  --font-display: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

/* Un color por categoría: fondo pastel (--c) y tinta a juego (--c-ink) */
.cat-mystic          { --c: #ddd0ff; --c-ink: #4a32b8; }
.cat-tools           { --c: #c9e6ff; --c-ink: #17599f; }
.cat-productivity    { --c: #ffe68f; --c-ink: #7d5300; }
.cat-sound           { --c: #c6f1d8; --c-ink: #0c6e43; }
.cat-games           { --c: #ffd2b8; --c-ink: #a8380b; }
.cat-personalization { --c: #ffcde5; --c-ink: #a51d62; }

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, dl, dd, ul, ol, address { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 760px) { .wrap { padding-inline: 32px; } }

.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border: 2px solid var(--edge);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 700;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* Fondo: papel con una trama de puntos muy suave arriba */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}
.bg__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--brand) 1.4px, transparent 1.85px);   /* puntos del color del logotipo */
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 55vh, rgba(0, 0, 0, .55) 100vh);
  mask-image: linear-gradient(180deg, #000 0, #000 55vh, rgba(0, 0, 0, .55) 100vh);
}

/* Etiqueta pequeña en monoespaciada */
.label {
  font: 600 .74rem/1.3 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- cabecera */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid transparent;
  transition: border-color .3s;
}
.site-header.is-stuck { border-bottom-color: var(--edge); }
.site-header__in {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font: 750 1.08rem/1 var(--font-display);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand__mark { flex: none; border-radius: 50%; transition: transform .5s var(--spring); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.08); }
.nav { display: none; gap: 4px; }
@media (min-width: 680px) { .nav { display: flex; } }
.nav__link {
  position: relative;
  padding: 8px 12px;
  color: var(--text-2);
  font-size: .94rem;
  font-weight: 600;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover, .nav__link[aria-current] { color: var(--text); }
.langs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  background: var(--surface);
}
.langs__link {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 30px;
  padding-inline: 7px;
  border-radius: 999px;
  font: 700 .72rem/1 var(--font-mono);
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.langs__link:hover { color: var(--text); }
.langs__link[aria-current] { background: var(--text); color: var(--bg); }
@media (pointer: coarse) { .langs__link { min-height: 40px; min-width: 40px; } }

/* --------------------------------------------------------------- botones */

.btn {
  --tx: 0px;
  --ty: 0px;
  --lift: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 2px solid var(--edge);
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-display);
  letter-spacing: -.01em;
  text-align: center;
  transform: translate(calc(var(--tx) + var(--lift)), calc(var(--ty) + var(--lift)));
  transition: transform .35s var(--spring), box-shadow .25s var(--ease), background .2s;
}
.btn--primary { background: var(--text); color: var(--bg); box-shadow: 4px 4px 0 var(--brand); }
.btn--ghost { background: var(--surface); color: var(--text); box-shadow: 4px 4px 0 var(--shade); }
.btn__arrow { display: inline-block; transition: transform .35s var(--spring); }
@media (hover: hover) {
  .btn:hover { --lift: -2px; }
  .btn--primary:hover { box-shadow: 6px 6px 0 var(--brand); }
  .btn--ghost:hover { box-shadow: 6px 6px 0 var(--shade); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}
.btn:active { --lift: 3px; box-shadow: 1px 1px 0 var(--shade); transition-duration: .08s; }
.btn--primary:active { box-shadow: 1px 1px 0 var(--brand); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: underline;
  text-decoration-color: var(--brand-2);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.more span { display: inline-block; transition: transform .3s var(--spring); }
.more:hover span { transform: translateX(5px); }

/* ---------------------------------------------------------------- portada */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 .78rem/1.3 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); }
}

.lead {
  margin-top: 22px;
  max-width: 52ch;
  color: var(--text-2);
  font-size: clamp(1.04rem, 1.3vw, 1.18rem);
}
.lead__count { color: var(--text); font-weight: 700; white-space: nowrap; }

.hero {
  display: grid;
  gap: 36px;
  align-items: center;
  padding-block: 40px 40px;
}
@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding-block: 64px 64px;
  }
}
.hero__title {
  margin-top: 22px;
  font: 780 clamp(3rem, 7vw, 5.9rem)/.96 var(--font-display);
  letter-spacing: -.045em;
}
.hero__line { display: block; }
.hl {
  position: relative;
  display: inline-block;
  padding: 0 .08em;
  margin: 0 -.08em;
  color: var(--text);
  background: linear-gradient(100deg, var(--brand) 0 100%) no-repeat 0 82% / 0% 46%;
  animation: marker .9s var(--ease) .45s forwards;
}
@keyframes marker { to { background-size: 100% 46%; } }
.hl__scribble { display: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1.5px dashed var(--line-2);
}
.stat { display: flex; flex-direction: column-reverse; }
.stat dd {
  font: 760 clamp(2rem, 3.4vw, 2.8rem)/1 var(--font-display);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat dt { margin-top: 8px; color: var(--muted); font: 600 .72rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

/* Contador tipo cuentakilómetros */
.odo { display: inline-flex; align-items: flex-start; }
.odo__digit { display: inline-block; height: 1em; overflow: hidden; clip-path: inset(0); contain: paint; }  /* recorte seguro también en Safari */
.odo__strip { display: block; transition: transform 1.7s cubic-bezier(.16, .9, .12, 1); }
.odo__strip > span { display: block; height: 1em; line-height: 1; }

.hero__text > *, .page-hero > *, .spotlight { animation: rise .8s var(--ease) both; }
.hero__text > :nth-child(2), .page-hero > :nth-child(2) { animation-delay: .07s; }
.hero__text > :nth-child(3), .page-hero > :nth-child(3) { animation-delay: .14s; }
.hero__text > :nth-child(4), .spotlight { animation-delay: .21s; }
.hero__text > :nth-child(5) { animation-delay: .28s; }
@keyframes rise {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}

/* Letras que cambian de grosor al acercar el cursor (las crea site.js) */
.px-w { display: inline-block; white-space: nowrap; }
.px-l { display: inline-block; font-variation-settings: "wght" var(--w, 780); transition: font-variation-settings .35s var(--ease); }

/* ---------------------------------------------------- zona de juego (iconos) */

.play {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--edge);
  border-radius: 28px;
  background: #16130f;
  box-shadow: 8px 8px 0 var(--brand);
  color: #f3eee4;
  overflow: hidden;
  animation: rise .9s var(--ease) both .25s;
}
.play__stage {
  position: relative;
  height: 480px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.play__icon {
  flex: none;
  width: var(--size, 58px);
  height: var(--size, 58px);
  border-radius: 22.5%;
  background: #2a2620;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .7), 0 0 0 1.5px rgba(243, 238, 228, .14);
  cursor: grab;
  touch-action: none;
  -webkit-user-drag: none;
}
.play__icon img { width: 100%; height: 100%; border-radius: inherit; pointer-events: none; -webkit-user-drag: none; }
.play__stage.is-live { display: block; padding: 0; }
.play__stage.is-live .play__icon { position: absolute; left: 0; top: 0; will-change: transform; }
.play__icon.is-held { cursor: grabbing; z-index: 2; box-shadow: 0 22px 34px -10px rgba(0, 0, 0, .85), 0 0 0 2.5px var(--brand); }
.play__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 12px 20px;
  border-top: 1.5px solid rgba(243, 238, 228, .14);
}
/* Móvil: menos iconos y sin sombras difuminadas, que al moverse cuestan mucho */
@media (max-width: 999px), (hover: none) {
  .play__icon--desk { display: none; }
  .play__icon { box-shadow: 0 0 0 1.5px rgba(243, 238, 228, .16); }
  .play__icon.is-held { box-shadow: 0 0 0 2.5px var(--brand); }
}
.play__hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .play__hint-mouse { display: none; }
  .play__hint-touch { display: inline; }
}
/* Panal de iconos (pantallas táctiles): lo coloca y mueve site.js */
.play__stage.is-hex { display: block; padding: 0; touch-action: none; }
.play__stage.is-hex .play__icon { position: absolute; left: 0; top: 0; cursor: pointer; will-change: transform, opacity; }
.play__icon.is-press { filter: brightness(.78); }
.play__hint { color: #a59d8e; font: 600 .74rem/1.3 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.play__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  cursor: pointer;
  border: 1.5px solid #f3eee4;
  border-radius: 999px;
  background: transparent;
  color: #f3eee4;
  font: 700 .88rem/1 var(--font-display);
  transition: background .2s, color .2s, transform .3s var(--spring);
}
.play__btn:hover { background: #f3eee4; color: #16130f; }
.play__btn:active { transform: scale(.94); }
.play__btn svg { transition: transform .5s var(--spring); }
.play__btn:hover svg { transform: rotate(-25deg); }
@media (max-width: 999px) {
  .play__stage { height: 340px; }
  .play { --size: 46px; }
}
/* Versión baja, en las páginas de Android e iOS */
.play-row { margin-bottom: 26px; }
.play--compact .play__stage { height: 300px; }
@media (max-width: 999px) { .play--compact .play__stage { height: 300px; } }

/* ----------------------------------------------------- cinta de nombres */

.marquee {
  margin-block: 20px 8px;
  border-block: 2px solid var(--edge);
  background: var(--brand);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 22px 16px 0;
  font: 760 clamp(1.7rem, 3.6vw, 2.9rem)/1.1 var(--font-display);
  letter-spacing: -.035em;
  white-space: nowrap;
}
.marquee__item img {
  width: 1.15em;
  height: 1.15em;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1.5px var(--edge);
  transition: transform .5s var(--spring);
}
.marquee__item:hover img { transform: rotate(-14deg) scale(1.15); }
.marquee__star { color: #fff; font-size: .7em; }

/* -------------------------------------------------------------- secciones */

.section { padding-block: 56px; }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 20px;
  margin-bottom: 30px;
}
.section__num {
  flex-basis: 100%;
  color: var(--accent-2);
  font: 600 .78rem/1.3 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.section__title {
  font: 780 clamp(2rem, 4.4vw, 3.3rem)/1 var(--font-display);
  letter-spacing: -.04em;
}
.section__sub { color: var(--muted); padding-bottom: 4px; }

.page-hero { padding-block: 40px 24px; }
.page-hero__title {
  margin-top: 16px;
  font: 780 clamp(2.4rem, 8vw, 4rem)/.98 var(--font-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.page-hero .lead { margin-top: 14px; }
.spotlight { margin-bottom: 18px; }
.more-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-block: 40px 8px;
}

/* ------------------------------------------------------------- destacadas */

.bento { display: grid; gap: 18px; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .feature--big { grid-column: span 2; }
}
@media (min-width: 1060px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento .feature--big { grid-column: span 2; grid-row: span 2; }
}

.feature {
  --sx: 5px;
  --sy: 5px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  overflow: hidden;
  border: 2px solid var(--edge);
  border-radius: 24px;
  background: var(--c, var(--surface));
  box-shadow: var(--sx) var(--sy) 0 var(--shade);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), box-shadow .35s var(--ease);
}
.feature--big { gap: 18px; padding: clamp(24px, 3.6vw, 38px); }
.feature__head { display: flex; align-items: center; gap: 16px; }
.feature__icon { flex: none; transition: transform .7s var(--smooth); }
.feature__icon img { border-radius: 22.5%; box-shadow: 0 0 0 2px var(--edge), 4px 4px 0 var(--shade); }
@media (hover: hover) {
  .feature:hover .feature__icon { transform: rotate(-6deg) scale(1.05); }
}
.feature__titles { min-width: 0; }
.feature__cat { color: var(--c-ink, var(--muted)); font: 700 .72rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.feature__name {
  margin-top: 4px;
  font: 760 1.32rem/1.12 var(--font-display);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.feature--big .feature__name { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1; }
.feature__tag { color: var(--text-2); font-size: .98rem; }
.feature--big .feature__tag { max-width: 46ch; font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.feature__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: auto;
  padding-top: 6px;
}
.badge-link {
  display: inline-flex;
  border-radius: 9px;
  transition: transform .35s var(--spring);
}
@media (hover: hover) { .badge-link:hover { transform: translateY(-3px) rotate(-2deg); } }
.badge-link:active { transform: scale(.96); }
.badge { width: auto; height: 42px; max-width: none; }

/* Captura en la ficha principal y, si no hay, el icono grande */
.feature__art, .feature__phone { position: absolute; z-index: -1; transition: transform .6s var(--spring); }
.feature__art {
  right: -26px;
  bottom: -40px;
  width: min(40%, 280px);
  height: auto;
  border-radius: 22.5%;
  box-shadow: 0 0 0 2px var(--edge);
  transform: rotate(10deg);
}
.feature__phone {
  right: clamp(22px, 5vw, 56px);
  bottom: -110px;
  width: min(32%, 230px);
  overflow: hidden;
  border: 2px solid var(--edge);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--shade);
  transform: rotate(6deg);
}
.feature__phone img { width: 100%; height: auto; }
@media (hover: hover) {
  .feature:hover .feature__phone { transform: rotate(2deg) translateY(-18px); }
  .feature:hover .feature__art { transform: rotate(2deg) translateY(-10px); }
}
@media (max-width: 719px) { .feature__art, .feature__phone { display: none; } }
@media (min-width: 720px) {
  .feature--big.has-art .feature__tag, .feature--big.has-art .chips, .feature--big.has-art .feature__actions { max-width: 60%; }
}

/* --------------------------------------------------------------- etiquetas */

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.chip svg { flex: none; }
.chip--star svg { color: var(--star); }
.chip__sub { color: var(--muted); font-weight: 500; }
.chip__sub::before { content: "· "; }
.chip--new { background: var(--brand); color: var(--on-brand); }

/* ------------------------------------------------------------------ fichas */

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  --sx: 3px;
  --sy: 3px;
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-content: start;
  gap: 4px 14px;
  padding: 16px;
  border: 1.5px solid var(--edge);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--sx) var(--sy) 0 var(--shade);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ease), box-shadow .3s var(--ease), background .25s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: var(--r) 0 0 var(--r);
  background: var(--c, transparent);
  border-right: 1.5px solid var(--edge);
  opacity: 0;
  transition: opacity .25s;
}
@media (hover: hover) {
  .card:hover { --sx: 7px; --sy: 7px; }
  .card:hover::after { opacity: 1; }
  .card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
}
.card:active { --sx: 1px; --sy: 1px; transform: translate(2px, 2px); transition-duration: .08s; }
.card__icon {
  grid-row: span 2;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1.5px var(--edge);
  transition: transform .6s var(--smooth);
}
.card__icon img { width: 100%; height: 100%; }
.card__body { min-width: 0; }
.card__name {
  font: 720 1.08rem/1.2 var(--font-display);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.card__link::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.card__tag {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.card__cat {
  display: inline-block;
  margin-top: 9px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--c, var(--bg-2));
  color: var(--c-ink, var(--text-2));
  font: 700 .66rem/1.5 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.card .chips { margin-top: 8px; }
.card__badge, .card__stores { grid-column: 2; margin-top: 10px; }
.card__badge .badge { height: 34px; }
.card__stores { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.store {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  background: var(--surface);
  font-size: .82rem;
  font-weight: 700;
  transition: background .2s, color .2s, transform .3s var(--spring);
}
.store::after { content: "\2197"; margin-left: 6px; transition: transform .3s var(--spring); }
.store:hover { background: var(--text); color: var(--bg); }
.store:hover::after { transform: translate(2px, -2px); }
.store:active { transform: scale(.95); }
.store--more { border-color: transparent; background: transparent; text-decoration: underline; text-decoration-color: var(--brand-2); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.store--more::after { content: "\2192"; }
.store--more:hover { background: transparent; color: var(--text); }
.store--more:hover::after { transform: translateX(3px); }
@media (pointer: coarse) { .store { min-height: 42px; } }

/* Ficha a la que se llega desde un icono de la zona de juego */
.card.is-flash { animation: flash 1.6s var(--ease); }
.feature.is-flash { animation: flash-feature 1.6s var(--ease); }
@keyframes flash-feature {
  0%, 60% { box-shadow: 10px 10px 0 var(--brand); }
}
@keyframes flash {
  0%, 60% { background: var(--c, #ffe68f); --sx: 8px; --sy: 8px; }
  100% { background: var(--surface); }
}

/* ----------------------------------------------------------------- filtros */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  margin-bottom: 26px;
}
.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  background: var(--surface);
}
.seg__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--text);
  transition: transform .45s var(--spring), width .45s var(--spring);
}
.seg__btn, .pill { position: relative; cursor: pointer; border: 0; background: transparent; }
.seg__btn {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 700;
  transition: color .25s;
}
.seg__btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg.has-thumb .seg__btn[aria-pressed="true"] { background: transparent; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 38px;
  padding: 0 15px;
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  transition: background .25s, transform .3s var(--spring), box-shadow .25s;
}
.pill:hover { transform: translateY(-2px); box-shadow: 2px 2px 0 var(--shade); }
.pill:active { transform: scale(.95); }
.pill[aria-pressed="true"] { background: var(--c, var(--text)); color: var(--c-ink, var(--bg)); box-shadow: 3px 3px 0 var(--shade); }
.filters__count { margin-left: auto; color: var(--muted); font: 600 .8rem/1.3 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.empty { padding: 48px 0; color: var(--muted); text-align: center; }

/* --------------------------------------------------------------------- pie */

.site-footer {
  margin-top: 88px;
  background: var(--footer-bg);
  color: var(--footer-text);
  overflow: hidden;
}
.site-footer__in { display: grid; gap: 32px; padding-block: 56px 28px; }
@media (min-width: 760px) { .site-footer__in { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer__name { font: 760 1.2rem/1.2 var(--font-display); letter-spacing: -.02em; }
.site-footer__tag { margin-top: 6px; color: var(--footer-muted); }
.site-footer__addr { margin-top: 16px; color: var(--footer-muted); font-size: .9rem; font-style: normal; }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__title { margin-bottom: 8px; color: var(--brand); font: 600 .74rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.site-footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--footer-text);
  transition: color .2s, transform .3s var(--spring);
}
.site-footer__col a:hover { color: var(--brand); transform: translateX(4px); }
.site-footer__legal {
  display: grid;
  gap: 8px;
  padding-block: 20px 24px;
  border-top: 1px solid color-mix(in srgb, var(--footer-text) 18%, transparent);
  color: var(--footer-muted);
  font-size: .84rem;
}
.site-footer__tm { max-width: 100ch; font-size: .74rem; line-height: 1.5; }
.site-footer__word {
  display: block;
  padding: 0 0 .06em;
  margin-bottom: -.2em;
  font: 780 min(calc((100vw - 72px) / 8.3), 8.5rem)/.9 var(--font-display);
  letter-spacing: -.055em;
  white-space: nowrap;
  color: var(--footer-text);
  user-select: none;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 2px solid var(--edge);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: 3px 3px 0 var(--shade);
  animation: rise .3s var(--ease) both;
  transition: transform .35s var(--spring), box-shadow .2s;
}
.to-top:hover { transform: translateY(-3px); box-shadow: 5px 5px 0 var(--shade); }
.to-top:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shade); }

/* ----------------------------------------------------- aparición al bajar */
/* Solo se ocultan los elementos que el script "arma" y que están fuera de pantalla,
   así que sin JavaScript se ve todo. */

.reveal.is-armed { opacity: 0; translate: 0 26px; }
.reveal.is-armed.is-in {
  opacity: 1;
  translate: 0 0;
  transition: opacity .6s var(--ease), translate .7s var(--spring);
  transition-delay: calc(var(--i, 0) * 50ms);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* ------------------------------------------------- página legal (policy) */

.legal { display: grid; gap: 28px; padding-block: 28px 16px; }
@media (min-width: 1000px) {
  .legal { grid-template-columns: 260px minmax(0, 1fr); gap: 60px; align-items: start; }
  .legal__toc { position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow-y: auto; }
}
.legal__toc-title { margin-bottom: 10px; color: var(--accent-2); font: 600 .74rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.legal__toc a {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid var(--line-2);
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.35;
  transition: color .2s, border-color .2s, padding .3s var(--ease);
}
.legal__toc a:hover { color: var(--text); border-left-color: var(--brand-2); padding-left: 16px; }
.legal__toc .is-sub { padding-left: 24px; font-size: .85rem; }
.legal__toc .is-sub:hover { padding-left: 28px; }
.legal__body { min-width: 0; max-width: 78ch; }
.legal__body > :first-child { margin-top: 0; }
.legal__body h2 { margin-top: 60px; font: 760 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-display); letter-spacing: -.035em; }
.legal__body h3 {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1.5px dashed var(--line-2);
  font: 720 1.3rem/1.25 var(--font-display);
  letter-spacing: -.02em;
}
.legal__body h4 { margin-top: 26px; font: 700 1.04rem/1.35 var(--font-body); }
.legal__body h5 { margin: 0; font: 700 .98rem/1.4 var(--font-body); }
.legal__body p, .legal__body li { margin-top: 12px; color: var(--text-2); }
.legal__body ul { padding-left: 22px; list-style: disc; }
.legal__body li::marker { color: var(--accent); }
.legal__body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand-2); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__body a:hover { color: var(--accent-2); }
.legal__body strong { color: var(--text); font-weight: 700; }
.legal__body address { margin-top: 12px; color: var(--text-2); font-style: normal; }
.legal__box {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1.5px solid var(--edge);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--shade);
}
.legal__box > :first-child { margin-top: 0; }
.legal__updated { margin-top: 40px; color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------------------ preferencias */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .feature, .card { transform: none !important; }
}

@media (forced-colors: active) {
  .card, .feature, .btn, .chip { border-color: CanvasText; }
}

@media print {
  .bg, .site-header, .to-top, .legal__toc, .play, .marquee, .site-footer__word { display: none !important; }
  body { background: #fff; }
  .legal__box { box-shadow: none; }
}
