/* Inquisitio.
   La noche del quemadero: negro violáceo, el hueso de las letras, el oro de los rayos y el verde de la cruz
   (los colores del logo). Títulos y rótulos con la fuente pixel del juego, a múltiplos enteros de su píxel
   (11 filas: 22, 33, 44, 55 px); el texto largo, en la fuente de la casa. */
:root {
  --i-gold: #d9a94e;
  --i-bone: #e8dfcc;
  --i-green: #5a9166;

  --bg: #09080b;
  --bg-2: #0f0d11;
  --bg-3: #161319;
  --fg: #ede5d4;
  --fg-2: #b3aa99;
  --fg-3: #7a7266;
  --line: rgba(232, 223, 204, 0.1);
  --line-2: rgba(232, 223, 204, 0.17);
  --edge: rgba(255, 240, 210, 0.08);
  --accent: #d9a94e;
  --focus: #e8bb62;
}
::selection { background: rgba(217, 169, 78, 0.4); }

/* ---------------------------------------------------------------- tipografía del juego */

.i-label, .i-kicker { font: 22px/24px var(--f-pixel); letter-spacing: 0; color: var(--i-gold); }
.i-h2 { font: 400 44px/48px var(--f-pixel); letter-spacing: 0; color: var(--i-bone); }
.i-text { color: var(--fg-2); max-width: 58ch; }
.i-cap { margin-top: 14px; font: 400 0.8125rem/1.4 var(--f-mono); color: var(--fg-3); }
@media (max-width: 700px) { .i-h2 { font-size: 33px; line-height: 36px; } }

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

.i-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; max-height: 1120px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #050406;
}
.i-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.i-hero__media video { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); max-width: none; }
.i-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 5, 7, 0.9) 0%, rgba(6, 5, 7, 0.62) 32%, rgba(6, 5, 7, 0.08) 64%),
    linear-gradient(0deg, var(--bg) 0%, rgba(9, 8, 11, 0.6) 20%, rgba(9, 8, 11, 0) 46%),
    linear-gradient(180deg, rgba(6, 5, 7, 0.65) 0%, rgba(6, 5, 7, 0) 22%);
}
.i-hero__inner { display: grid; justify-items: start; gap: 22px; padding-block: calc(var(--header-h) + 96px) clamp(64px, 10vh, 112px); }
.i-hero__logo { line-height: 0; width: 366px; max-width: 100%; margin-block: -8px -4px; }
.i-hero__text { font-size: clamp(1.125rem, 1.4vw, 1.3125rem); line-height: 1.5; letter-spacing: -0.012em; color: rgba(237, 229, 212, 0.88); max-width: 40ch; }
.i-hero .actions { margin-top: 4px; }
.i-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 4px; font: 22px/24px var(--f-pixel); color: var(--i-bone); }
.i-facts li { display: inline-flex; align-items: center; gap: 10px; }
.i-facts li::before { content: ""; width: 6px; height: 6px; background: var(--i-gold); }
.i-hero__pause {
  position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: clamp(64px, 10vh, 112px);
  display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--i-bone); background: rgba(232, 223, 204, 0.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color 0.2s;
}
.i-hero__pause:hover { background: rgba(232, 223, 204, 0.22); }
.i-hero__pause svg { width: 14px; height: 14px; }
.i-hero__pause .i-pause, .i-hero__pause.is-playing .i-play { display: none; }
.i-hero__pause.is-playing .i-pause { display: block; }
@media (min-width: 1700px) and (min-height: 1000px) { .i-hero__logo { width: 732px; } }
@media (max-width: 760px) {
  .i-hero::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(9, 8, 11, 0.88) 38%, rgba(9, 8, 11, 0.3) 70%, rgba(9, 8, 11, 0.55) 100%); }
  .i-hero__pause { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 16px); }
}

/* ---------------------------------------------------------------- la historia */

.i-story__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.i-story__copy { display: grid; gap: 22px; justify-items: start; }
.i-story__fig { min-width: 0; }

/* Capturas a escala entera: la caja abraza la imagen (sin bordes negros ni recortes). */
.i-shot { width: fit-content; max-width: 100%; line-height: 0; border-radius: var(--r-md); }
@media (max-width: 900px) { .i-story__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- las clases: elegir condenado */

.cast { --c: #c4452c; display: grid; gap: clamp(28px, 4vw, 48px); }
.cast__panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.cast__art { position: relative; display: grid; place-items: center; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; }
.cast__art::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 34%, transparent), color-mix(in srgb, var(--c) 10%, transparent) 55%, transparent 76%);
}
.cast__portrait { width: 260px; height: 260px; }
.cast__weapon { position: absolute; right: 2%; bottom: 6%; width: 150px; height: 150px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6)); }
.cast__info { display: grid; gap: 16px; justify-items: start; }
.cast__charge { font: 22px/24px var(--f-pixel); color: var(--c); filter: brightness(1.25); }
.cast__name { font: 400 55px/60px var(--f-pixel); letter-spacing: 0; color: var(--i-bone); }
.cast__text { color: var(--fg-2); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.55; max-width: 38ch; }
.cast__panel:not([hidden]) .cast__portrait { animation: entra-retrato 0.5s var(--ease-out) both; }
.cast__panel:not([hidden]) .cast__weapon { animation: entra-arma 0.6s var(--ease-out) 0.08s both; }
.cast__panel:not([hidden]) .cast__info > * { animation: entra-texto 0.5s var(--ease-out) both; }
.cast__panel:not([hidden]) .cast__info > :nth-child(2) { animation-delay: 0.05s; }
.cast__panel:not([hidden]) .cast__info > :nth-child(3) { animation-delay: 0.1s; }
@keyframes entra-retrato { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes entra-arma { from { opacity: 0; transform: translate(-16px, 10px) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes entra-texto { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

.cast__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.cast__pick {
  appearance: none; position: relative; display: grid; justify-items: center; gap: 12px; padding: 8px 4px 14px;
  border: 0; border-radius: var(--r-md); background: none; color: var(--fg-3); cursor: pointer;
  font: 22px/24px var(--f-pixel); letter-spacing: 0; transition: color 0.2s, background-color 0.2s;
}
.cast__pick img { width: 104px; height: 104px; opacity: 0.5; filter: grayscale(0.5); transition: opacity 0.25s, filter 0.25s, transform 0.3s var(--ease); }
.cast__pick::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 24px; height: 4px; background: var(--c); transform: translateX(-50%) scaleX(0); transition: transform 0.3s var(--ease); }
.cast__pick:hover { color: var(--fg-2); }
.cast__pick:hover img { opacity: 0.85; filter: none; }
.cast__pick[aria-selected="true"] { color: var(--i-bone); }
.cast__pick[aria-selected="true"] img { opacity: 1; filter: none; transform: translateY(-4px); }
.cast__pick[aria-selected="true"]::after { transform: translateX(-50%) scaleX(1); }
@media (max-width: 900px) {
  .cast__panel { grid-template-columns: 1fr; justify-items: start; }
  .cast__art { max-width: 300px; justify-self: start; }
  .cast__portrait { width: 208px; height: 208px; }
  .cast__weapon { width: 100px; height: 100px; }
  .cast__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
}

/* ---------------------------------------------------------------- lo que trae */

.i-rows__list { display: grid; gap: clamp(96px, 12vw, 176px); }
.i-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.i-row__media { min-width: 0; }
.i-row--flip .i-row__media { order: 2; }
.i-row--flip .i-row__media .i-shot { margin-left: auto; }
.i-row--flip .i-row__media .i-cap { text-align: right; }
.i-row__copy { display: grid; gap: 20px; justify-items: start; }
.i-regions { display: grid; width: 100%; margin-block: 2px 4px; }
.i-regions li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; padding-block: 11px; border-top: 1px solid var(--line); }
.i-regions li:last-child { border-bottom: 1px solid var(--line); }
.i-regions span { font: 22px/24px var(--f-pixel); color: var(--i-gold); }
.i-regions b { font-weight: 500; letter-spacing: -0.01em; color: var(--fg); }
@media (max-width: 900px) {
  .i-row { grid-template-columns: 1fr; }
  .i-row--flip .i-row__media { order: 0; }
  .i-row--flip .i-row__media .i-shot { margin-left: 0; }
  .i-row--flip .i-row__media .i-cap { text-align: left; }
}

/* ---------------------------------------------------------------- capturas */

.i-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
@media (max-width: 1000px) { .i-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .i-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }

/* ---------------------------------------------------------------- lista de deseados, entre hogueras */

.i-wish { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(140px, 15vw, 220px) clamp(72px, 8vw, 112px); }
.i-wish__art { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #08070a; }
.i-wish__art img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; }
.i-wish__art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(9, 8, 11, 0) 22%, rgba(9, 8, 11, 0) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(9, 8, 11, 0.7) 0%, rgba(9, 8, 11, 0.1) 46%, rgba(9, 8, 11, 0.55) 100%);
}
.i-wish__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px clamp(40px, 6vw, 96px); align-items: end; }
.i-wish__copy { display: grid; gap: 20px; justify-items: start; }
.i-wish__copy .i-text { color: var(--fg); opacity: 0.85; }
.i-wish__spec dd .link { color: var(--fg); }
@media (max-width: 900px) { .i-wish__inner { grid-template-columns: 1fr; } }
