/* Catálogo de juegos de ALEVIS. Se comparte entre /juegos y /?juegos=1. */
.games-catalog {
  --ink: #142b37;
  --muted: #556d78;
  --line: #dbe5e6;
  color: var(--ink);
}
.games-catalog *, .games-catalog *::before, .games-catalog *::after { box-sizing: border-box; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.catalog-heading-copy { max-width: 790px; }
.catalog-eyebrow { color: #386d77; font-size: 11px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.catalog-heading h1 { max-width: 790px; margin: 13px 0 13px; color: #142b37; font-size: clamp(40px, 5vw, 68px); font-weight: 760; line-height: 1.04; letter-spacing: -.062em; }
.catalog-heading p { max-width: 680px; margin: 0; color: var(--muted); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.6; }
.catalog-count { flex: none; padding: 10px 14px; border: 1px solid #c8dcdd; border-radius: 999px; color: #315c64; background: #edf6f4; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); margin-top: clamp(29px, 3.5vw, 45px); }
.catalog-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: 0 18px 46px #1a344c0b; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.catalog-card:hover { transform: translateY(-4px); border-color: #afc9ce; box-shadow: 0 25px 58px #1a344c18; }
.catalog-media-link { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #101b38; isolation: isolate; }
.catalog-media-link:focus-visible, .games-catalog .catalog-cta:focus-visible { outline: 3px solid #187e96; outline-offset: -3px; }
.catalog-cover { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.catalog-card:hover .catalog-cover { transform: scale(1.035); }
.catalog-card--letters .catalog-cover { object-position: center 48%; }
.catalog-card--runner .catalog-cover { object-position: center 58%; image-rendering: auto; }
.catalog-media-link::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, #06152655, transparent 30%, transparent 55%, #06152683); }
.catalog-card--runner .catalog-media-link::after { background: linear-gradient(180deg, #061e275c, transparent 36%, #09242080); }
.catalog-runner-hero { position: absolute; z-index: 1; left: 11%; bottom: 9%; width: clamp(76px, 16%, 120px); height: auto; image-rendering: pixelated; filter: drop-shadow(0 10px 6px #061512a8); transition: transform .35s ease; }
.catalog-card--runner:hover .catalog-runner-hero { transform: translateY(-5px); }
.catalog-image-label { position: absolute; z-index: 2; left: 19px; top: 18px; padding: 8px 10px; border: 1px solid #ffffff72; border-radius: 8px; color: white; background: #102a3d9c; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(8px); }
.catalog-card--letters .catalog-image-label { background: #1b255ca8; }
.catalog-image-caption { position: absolute; z-index: 2; right: 20px; bottom: 18px; color: white; font-size: 12px; font-weight: 760; text-shadow: 0 2px 8px #000a; }
.catalog-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(23px, 2.7vw, 33px); }
.catalog-card-number { color: #607883; font-size: 11px; font-weight: 820; letter-spacing: .16em; text-transform: uppercase; }
.catalog-card--runner .catalog-card-number { color: #35715d; }
.catalog-card h2 { margin: 12px 0 9px; color: #172c39; font-size: clamp(27px, 2.3vw, 36px); line-height: 1.1; letter-spacing: -.045em; }
.catalog-card p { max-width: 500px; min-height: 3.2em; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.catalog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.catalog-tags li { padding: 7px 10px; border: 1px solid #e0e9eb; border-radius: 999px; color: #47636e; background: #f5f8f8; font-size: 11px; font-weight: 720; }
.catalog-card--runner .catalog-tags li { border-color: #d5e8dc; color: #376d53; background: #f1f8f2; }
.games-catalog .catalog-cta, .games-catalog .launch { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 47px; margin-top: auto; padding: 12px 19px; border: 0; border-radius: 999px; color: #fff; background: #292e66; box-shadow: none; font-size: 14px; font-weight: 790; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.games-catalog .catalog-card--runner .catalog-cta, .games-catalog .catalog-card--runner .launch { background: #205b43; }
.games-catalog .catalog-cta:hover, .games-catalog .launch:hover { color: #fff; background: #414a94; transform: translateY(-2px); text-decoration: none; }
.games-catalog .catalog-card--runner .catalog-cta:hover, .games-catalog .catalog-card--runner .launch:hover { background: #2e7956; }
.catalog-cta-arrow { font-size: 18px; line-height: 1; }
.catalog-card-note { margin-top: 13px; color: #6d8089; font-size: 12px; line-height: 1.45; }
.catalog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e0e8e8; color: #647b85; font-size: 12px; line-height: 1.5; }
.catalog-footer a { color: #286477; font-weight: 750; text-underline-offset: 3px; }
@media (max-width: 800px) {
  .catalog-heading { align-items: flex-start; }
  .catalog-grid { grid-template-columns: 1fr; max-width: 660px; }
  .catalog-card p { min-height: 0; }
}
@media (max-width: 520px) {
  .catalog-heading { display: block; }
  .catalog-count { display: inline-block; margin-top: 20px; }
  .catalog-card { border-radius: 20px; }
  .catalog-card-body { padding: 22px; }
  .catalog-image-label { top: 12px; left: 12px; }
  .catalog-image-caption { right: 13px; bottom: 12px; font-size: 10px; }
  .catalog-runner-hero { width: 18%; bottom: 7%; }
  .games-catalog .catalog-cta, .games-catalog .launch { width: 100%; }
  .catalog-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-card, .catalog-cover, .catalog-runner-hero, .games-catalog .catalog-cta, .games-catalog .launch { transition: none; }
}

/* Copa Geocacher: tercer juego, con su servidor y página propios. */
.catalog-card--georacers .catalog-cover { object-position: center 57%; }
.catalog-card--georacers .catalog-card-number { color: #777020; }
.catalog-card--georacers .catalog-tags li { border-color: #e8e6c8; color: #656321; background: #faf9ec; }
.games-catalog .catalog-card--georacers .catalog-cta,.games-catalog .catalog-card--georacers .launch { background: #47732f; }
.games-catalog .catalog-card--georacers .catalog-cta:hover,.games-catalog .catalog-card--georacers .launch:hover { background: #365d22; }
@media (min-width:1100px) { .catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.catalog-card--quien .catalog-media-link { background:radial-gradient(circle at 50% 45%,#352721,#17150f 72%); }
.catalog-card--quien[hidden] { display:none; }
.catalog-card--quien .catalog-cover { object-fit:contain;padding:5px 10%; }
.catalog-card--quien .catalog-media-link::after { background:linear-gradient(180deg,#17150f65,transparent 32%,#17150f8a); }
.catalog-card--quien .catalog-image-label { background:#ff6247;color:#17150f;border-color:#ffac9b; }
.catalog-card--quien .catalog-card-number { color:#a04435; }
.catalog-card--quien .catalog-tags li { color:#763e33;border-color:#f2d8d2;background:#fff3ed; }
.games-catalog .catalog-card--quien .catalog-cta,.games-catalog .catalog-card--quien .launch { background:#e35339;color:#fff; }
.games-catalog .catalog-card--quien .catalog-cta:hover,.games-catalog .catalog-card--quien .launch:hover { background:#b93725;color:#fff; }
