/* reportygo — la web es una ciudad vista desde arriba: asfalto, pintura vial y una manzana por juego. */
:root {
  --asphalt: #3a3f4b;
  --asphalt-deep: #2b2f38;
  --curb: #c9ccd2;
  --paint: #f4f0e0;
  --tape: #ffc93c;
  --ink: #1a1d24;
  --siren-red: #e8402f;
  --siren-blue: #2f6bff;
  --grass: #7ab857;
  --muted: #b9bdc7;

  --display: 'Bungee', 'Arial Black', Impact, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --radius-block: 28px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--asphalt);
  /* Grano de asfalto. */
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1.5px),
    radial-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1.5px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
  color: var(--paint);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: var(--tape); }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--tape);
  color: var(--ink);
  font-weight: 800;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 16px; }

/* ---------- Hero: el nombre pintado en la calzada ---------- */

.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: end;
  padding: 96px var(--gutter) 72px;
  isolation: isolate;
  max-width: 1240px;
  margin: 0 auto;
}

.lane {
  position: absolute;
  top: 0;
  bottom: 0;
  right: clamp(24px, 18vw, 260px);
  width: 12px;
  background: repeating-linear-gradient(to bottom, var(--paint) 0 56px, transparent 56px 104px);
  opacity: 0.8;
  z-index: -1;
}

.car {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 46px;
  margin-left: -23px;
  filter: drop-shadow(0 10px 6px rgba(0, 0, 0, 0.35));
  transform: rotate(-8deg);
  animation: drive 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

@keyframes drive {
  from { transform: translateY(70vh) rotate(0deg); }
  70% { transform: translateY(-10px) rotate(-14deg); }
  to { transform: translateY(0) rotate(-8deg); }
}

.hero-text { max-width: 62rem; }

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 11.5vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--paint);
  /* Pintura vial con sombra dura. */
  text-shadow: 0 6px 0 var(--ink);
  white-space: nowrap;
}

.tagline {
  margin: 28px 0 0;
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.45;
  font-weight: 600;
  color: var(--paint);
}

/* ---------- Manzanas ---------- */

main {
  display: grid;
  gap: 88px;
  padding: 0 var(--gutter) 96px;
  max-width: 1240px;
  margin: 0 auto;
}

.block {
  position: relative;
  border-radius: var(--radius-block);
}

/* Línea discontinua de la calle entre manzanas. */
.block + .block::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: -48px;
  height: 8px;
  background: repeating-linear-gradient(to right, var(--paint) 0 48px, transparent 48px 90px);
  opacity: 0.7;
}

.block-game {
  background: var(--asphalt-deep);
  border: 14px solid var(--curb);
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px) clamp(32px, 5vw, 56px);
  overflow: hidden;
}

.tape {
  margin: calc(-1 * clamp(28px, 5vw, 56px)) calc(-1 * clamp(20px, 5vw, 56px)) 40px;
  padding: 10px 0;
  background: var(--tape);
  border-block: 5px solid var(--ink);
  color: var(--ink);
  font: 400 1.05rem/1 var(--display);
  white-space: nowrap;
  overflow: hidden;
  transform: rotate(-2deg) scale(1.04);
}
.tape span { display: inline-block; padding-left: 12px; }

.game-head {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}

.game-icon {
  width: clamp(84px, 14vw, 128px);
  height: auto;
  border-radius: 24%;
  box-shadow: 0 6px 0 var(--ink);
  flex: none;
}

.game-title {
  margin: 0;
  font: 400 clamp(2.2rem, 7vw, 4.6rem)/0.95 var(--display);
  color: var(--tape);
  text-shadow: 0 4px 0 var(--ink);
}

.game-pitch {
  margin: 10px 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
}

.game-body { margin-top: 36px; }

.game-copy { max-width: 64ch; }
.game-copy > p { margin: 0 0 20px; font-size: 1.15rem; }

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.features li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}
.features li strong { color: var(--paint); font-weight: 800; }
/* Viñeta: estrella de búsqueda, como en el juego. */
.features li::before {
  content: '★';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--tape);
  font-size: 1.25rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.store {
  display: inline-block;
  padding: 10px 16px;
  border: 2px dashed var(--muted);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Vídeos y capturas ---------- */

.clips, .gallery { margin-top: 56px; }

.clips-title {
  margin: 0 0 20px;
  font: 400 1.5rem/1.1 var(--display);
  color: var(--paint);
}

.clips-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 32px);
}

.clip { margin: 0; }
.clip figcaption {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 30ch;
}

.phone {
  border: 8px solid var(--ink);
  border-radius: 30px;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 390 / 844;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.3);
}
.phone video { width: 100%; height: 100%; object-fit: cover; }

.shots { margin: 0; }

.shots-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-color: var(--curb) transparent;
  overscroll-behavior-x: contain;
}
.shots-track img {
  flex: none;
  width: clamp(150px, 22vw, 230px);
  border-radius: 18px;
  border: 5px solid var(--ink);
  scroll-snap-align: start;
}
.shots figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Catálogo: la ciudad, una manzana por juego ---------- */

main.catalog { gap: 28px; }

.catalog-title {
  margin: 0;
  font: 400 clamp(1.5rem, 3.5vw, 2.2rem)/1.1 var(--display);
  color: var(--paint);
}

.city {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  /* El hueco entre manzanas es la calle. */
  gap: 56px;
}

.lot-card { display: flex; }
.lot-card > * { flex: 1; }

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--asphalt-deep);
  border: 12px solid var(--curb);
  border-radius: var(--radius-block);
  overflow: hidden;
  color: var(--paint);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--tape); }
.game-card:focus-visible { outline-offset: 6px; border-radius: var(--radius-block); }

.card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 5px solid var(--ink);
}

.card-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 22px 8px;
}

.card-icon {
  width: 64px;
  border-radius: 24%;
  box-shadow: 0 4px 0 var(--ink);
  flex: none;
}

.card-title {
  margin: 0;
  font: 400 1.6rem/1 var(--display);
  color: var(--tape);
}

.card-pitch { margin: 8px 0 0; font-weight: 600; line-height: 1.45; }
.card-tags { margin: 6px 0 0; font-size: 0.92rem; color: var(--muted); }

.card-cta {
  align-self: flex-start;
  margin: auto 22px 22px 102px;
  padding: 10px 18px;
  background: var(--tape);
  color: var(--ink);
  font-weight: 800;
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink);
}

/* ---------- Página de un juego ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
}
.topbar-mark {
  font: 400 1.4rem/1 var(--display);
  color: var(--paint);
  text-decoration: none;
  text-shadow: 0 3px 0 var(--ink);
}
.topbar-back {
  font-weight: 600;
  color: var(--paint);
  text-decoration-color: var(--tape);
  text-underline-offset: 4px;
}
.topbar-back::before { content: '‹ '; color: var(--tape); }

.game-page { padding-top: 8px; }

.topbar-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}
.lang-switch {
  padding: 4px 10px;
  border: 2px solid var(--muted);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--paint);
  text-decoration: none;
}
.lang-switch:hover { border-color: var(--tape); }

.game-copy > .platforms { margin: 24px 0 0; }

/* Botón de tienda ya publicado (enlace real, no el aviso "Pronto"). */
.store-live {
  border: 0;
  background: var(--tape);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
}
[hidden] { display: none !important; }

.game-meta {
  margin: 40px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Capturas en horizontal. */
.shots-track-wide img { width: clamp(260px, 52vw, 520px); }

/* Versión en otro idioma de la misma página. */
.block-lang .game-title { font-size: clamp(1.8rem, 5vw, 3rem); }
.block-lang .game-copy { margin-top: 24px; }
.block-lang .game-copy > p { margin: 0 0 16px; }
.lang-label {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  background: var(--tape);
  color: var(--ink);
  font: 400 0.9rem/1.2 var(--display);
  border-radius: 6px;
}

/* ---------- Textos legales ---------- */

.policy { max-width: 860px; width: 100%; margin: 0 auto; }
.policy-title {
  margin: 0;
  font: 400 clamp(1.6rem, 5vw, 2.6rem)/1.1 var(--display);
  color: var(--tape);
  text-shadow: 0 3px 0 var(--ink);
  overflow-wrap: break-word;
}
.policy-date { margin: 12px 0 28px; color: var(--muted); font-size: 0.95rem; }
.policy-list {
  margin: 24px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 14px;
}
.policy-list li { padding-left: 4px; }
.policy-list li::marker { color: var(--tape); }
.policy-back { margin: 36px 0 0; font-weight: 600; }

.footer .footer-links { margin-bottom: 10px; }

/* ---------- Solar en obras ---------- */

.block-lot {
  padding: 56px clamp(20px, 5vw, 56px);
  text-align: center;
  border-radius: var(--radius-block);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Valla de obra: rayas amarillas y negras alrededor de un solar vacío. */
  border: 14px solid transparent;
  background:
    linear-gradient(#4a4438, #4a4438) padding-box,
    repeating-linear-gradient(45deg, var(--tape) 0 18px, var(--ink) 18px 36px) border-box;
}

.lot-title {
  margin: 18px 0 8px;
  font: 400 clamp(1.6rem, 4vw, 2.4rem)/1 var(--display);
  color: var(--paint);
}
.block-lot p { margin: 0; color: var(--muted); font-size: 1.1rem; }

.cones { display: flex; justify-content: center; gap: 22px; }
.cones i {
  display: block;
  width: 34px;
  height: 40px;
  background:
    linear-gradient(transparent 38%, var(--paint) 38% 54%, transparent 54%),
    #f07a2a;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
}

/* ---------- Pie ---------- */

.footer {
  padding: 32px var(--gutter) 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer p { margin: 0; }
.footer-mark { font-family: var(--display); color: var(--paint); }

/* ---------- Móvil ---------- */

@media (max-width: 720px) {
  .hero { min-height: 64vh; padding-bottom: 56px; }
  .lane { right: 22px; width: 8px; }
  .wordmark { font-size: 13.5vw; }
  .tagline { max-width: calc(100% - 48px); }
  .car { width: 30px; margin-left: -15px; bottom: 62%; }
  main { gap: 72px; }
  .block-game, .block-lot { border-width: 10px; }
  .clips-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 8px;
  }
  .clip { flex: none; width: 62vw; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .car { animation: none; }
  .game-card { transition: none; }
  .game-card:hover { transform: none; }
}
