/* VERDICTUM · web escaparate.
   Misma gramática que el juego: obsidiana de fondo, latón para la jerarquía,
   marfil para lo legible y carmesí sólo donde hay evidencia. Sin fuentes ni
   recursos de terceros: todo sale de este dominio. */

:root {
  color-scheme: dark;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fondo: #090708;
  --fondo-2: #100c0d;
  --panel: #171214;
  --linea: #5f493355;
  --oro: #e8b23c;
  --oro-claro: #f4d894;
  --oro-hondo: #9a6f22;
  --marfil: #f5ecdc;
  --tenue: #b9aea2;
  --carmesi: #b3262b;
  --ancho: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fondo); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--marfil);
  font: 17px/1.65 var(--sans);
  background: var(--fondo);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--oro-claro); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 3px; border-radius: 6px; }

.ancho { width: min(var(--ancho), calc(100% - 40px)); margin-inline: auto; }
.sobretitulo {
  color: var(--oro);
  font: 800 .74rem/1.2 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.titulo-seccion { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; margin-top: .45em; }
.entradilla { color: var(--tenue); font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 62ch; margin-top: 1.1em; }
.latón, .laton {
  background: linear-gradient(100deg, #b98a2e 0%, #f7dfa0 28%, #e8b23c 50%, #fff1c9 68%, #b98a2e 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brillo 9s linear infinite;
}
@keyframes brillo { to { background-position: -220% 0; } }

/* --- barra ---------------------------------------------------------------- */

.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.barra.asentada {
  background: #0b0809d9;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 #e8b23c26, 0 18px 40px #0008;
}
.barra-dentro { display: flex; align-items: center; gap: 22px; height: 68px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--marfil); }
.marca img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 1px #e8b23c55, 0 6px 18px #000a; }
.marca b { font: 600 1.05rem/1 var(--serif); letter-spacing: .22em; }
.barra nav { margin-left: auto; display: flex; gap: 26px; }
.barra nav a { color: #d9cdbd; text-decoration: none; font-size: .9rem; font-weight: 600; opacity: .86; transition: color .2s, opacity .2s; }
.barra nav a:hover { color: var(--oro-claro); opacity: 1; }
.idioma {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border: 1px solid #e8b23c66; border-radius: 999px;
  color: var(--oro-claro); text-decoration: none; font: 700 .8rem/1 var(--sans); letter-spacing: .08em;
  transition: background .2s, border-color .2s;
}
.idioma:hover { background: #e8b23c1f; border-color: var(--oro); }
.idioma svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

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

.heroe {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  display: grid; align-items: center;
  padding: 110px 0 80px;
  overflow: hidden;
}
.heroe-fondo {
  position: absolute; inset: -4%; z-index: -3;
  background: url('img/mesa.webp') center / cover no-repeat;
  filter: saturate(.95) brightness(.82) contrast(1.06);
  transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0) scale(1.04);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.heroe::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 28% 42%, #09070800 0%, #090708b0 70%),
    linear-gradient(90deg, #090708e6 0%, #09070894 38%, #09070840 62%, #090708b8 100%),
    linear-gradient(180deg, #09070899 0%, #09070800 22%, #09070800 62%, var(--fondo) 100%);
}
#polvo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.heroe-rejilla { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; }
.heroe-texto .sobretitulo { display: inline-flex; align-items: center; gap: 12px; }
.heroe-texto .sobretitulo::before { content: ''; width: 34px; height: 1px; background: var(--oro); }
.rotulo {
  font: 600 clamp(2.3rem, 5.3vw, 4.7rem)/1 var(--serif);
  letter-spacing: .09em; margin: .3em 0 0 -.03em; width: max-content; max-width: 100%;
  filter: drop-shadow(0 6px 28px #000c);
}
.lema { font: italic 400 clamp(1.25rem, 2.5vw, 1.9rem)/1.25 var(--serif); color: var(--marfil); margin-top: .55em; }
.lema em { color: var(--oro-claro); }
.heroe-texto .entradilla { color: #d8ccbd; max-width: 50ch; }

.tiendas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.tienda {
  display: inline-flex; align-items: center; gap: 13px;
  min-width: 196px; padding: 11px 20px 11px 16px;
  border-radius: 14px; text-decoration: none;
  color: #17110a; background: linear-gradient(180deg, #f6d98f, #e2a936);
  box-shadow: 0 1px 0 #fff7 inset, 0 14px 34px #e8b23c33, 0 2px 0 #7a5413;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.tienda:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 1px 0 #fff7 inset, 0 20px 44px #e8b23c4d, 0 2px 0 #7a5413; }
.tienda svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.tienda span { display: grid; line-height: 1.12; }
.tienda small { font: 700 .66rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .78; }
.tienda b { font: 700 1.12rem/1.15 var(--sans); }
.tienda.pronto {
  color: var(--marfil); background: linear-gradient(180deg, #2a2123, #1a1416);
  box-shadow: 0 0 0 1px #e8b23c59 inset, 0 14px 34px #0008;
  cursor: default;
}
.tienda.pronto:hover { transform: none; filter: none; }
.tienda.pronto small { color: var(--oro); opacity: 1; }
.datos-rapidos { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: #cfc3b4; font-size: .9rem; }
.datos-rapidos li { display: flex; align-items: center; gap: 8px; }
.datos-rapidos li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--carmesi); box-shadow: 0 0 10px #e63b40; }

/* --- teléfonos ------------------------------------------------------------ */

.telefono {
  position: relative; aspect-ratio: 390 / 844; border-radius: 13.5% / 6.2%;
  padding: 2.6%;
  background: linear-gradient(145deg, #4a3a22, #15100f 30%, #0c0909 70%, #3a2c18);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px #e8b23c40, 0 40px 90px #000d, 0 0 120px #e8b23c14;
}
.telefono img { width: 100%; height: 100%; object-fit: cover; border-radius: 11.4% / 5.3%; background: #0c0a0d; }
.heroe-escena { position: relative; height: clamp(480px, 62vw, 700px); perspective: 1600px; }
.heroe-escena .telefono {
  position: absolute; top: 50%; left: 50%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.heroe-escena .t-frente {
  z-index: 2;
  transform: translate(-58%, -50%) rotateY(calc(-13deg + var(--px, 0) * 7deg)) rotateX(calc(4deg + var(--py, 0) * -5deg)) rotateZ(1.5deg);
  animation: flotar 8s ease-in-out infinite;
}
.heroe-escena .t-fondo {
  height: 86%; opacity: .9; filter: brightness(.7) saturate(.9);
  transform: translate(2%, -52%) rotateY(calc(-20deg + var(--px, 0) * 5deg)) rotateX(calc(5deg + var(--py, 0) * -4deg)) rotateZ(5deg);
  animation: flotar 8s ease-in-out -4s infinite;
}
@keyframes flotar { 50% { margin-top: -12px; } }
.heroe-escena::before {
  content: ''; position: absolute; inset: 12% 8% 6%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, #e8b23c30, #b3262b12 60%, transparent);
  filter: blur(30px);
}
.bajar {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid #e8b23c80; border-radius: 14px;
}
.bajar::after {
  content: ''; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--oro-claro); animation: rueda 2s ease-in-out infinite;
}
@keyframes rueda { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

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

section { position: relative; padding: clamp(72px, 10vw, 136px) 0; }
.cabeza { max-width: 780px; }
.cabeza.centro { margin-inline: auto; text-align: center; }
.cabeza.centro .entradilla { margin-inline: auto; }

/* hilo rojo entre secciones: un cordel de pizarra de investigación */
.hilo { display: block; width: min(var(--ancho), calc(100% - 40px)); height: 46px; margin: 0 auto; overflow: visible; }
.hilo path { fill: none; stroke: var(--carmesi); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; filter: drop-shadow(0 2px 3px #000a); transition: stroke-dashoffset 2.2s cubic-bezier(.3, .6, .2, 1); }
.hilo circle { fill: var(--oro); stroke: #5a3e10; stroke-width: 1; opacity: 0; transition: opacity .5s .2s; }
.hilo.visto path { stroke-dashoffset: 0; }
.hilo.visto circle { opacity: 1; }

/* tráiler */
.trailer { padding-bottom: clamp(24px, 4vw, 48px); }
.pantalla {
  margin-top: clamp(32px, 4.5vw, 56px); border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: #050404;
  box-shadow: 0 0 0 1px #e8b23c59, 0 0 0 7px #120d0d, 0 0 0 8px #e8b23c26, 0 50px 120px #000c, 0 0 140px #e8b23c14;
}
.pantalla video { display: block; width: 100%; height: 100%; object-fit: cover; background: #050404; }

/* cómo se juega */
.pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.4vw, 48px); margin-top: clamp(44px, 6vw, 76px); }
.paso { text-align: center; }
.paso .telefono { width: min(100%, 290px); margin: 0 auto 28px; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.paso:hover .telefono { transform: translateY(-10px) rotate(-1deg); }
.paso .numero { font: 600 .82rem/1 var(--serif); letter-spacing: .3em; color: var(--oro); }
.paso h3 { font-size: 1.55rem; margin: .4em 0 .35em; }
.paso p { color: var(--tenue); font-size: .98rem; max-width: 34ch; margin-inline: auto; }

/* diorama */
.diorama { background: radial-gradient(70% 60% at 50% 40%, #2a1512 0%, #120c0c 55%, var(--fondo) 100%); }
.vitrina {
  position: relative; margin-top: clamp(36px, 5vw, 60px);
  border-radius: 26px; overflow: hidden; aspect-ratio: 1140 / 826;
  background: #0c0909;
  box-shadow: 0 0 0 1px #e8b23c59, 0 0 0 7px #120d0d, 0 0 0 8px #e8b23c26, 0 50px 120px #000c;
}
.vitrina img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.vitrina img.activa { opacity: 1; transform: none; }
.vitrina::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 140px #000b; }
.temas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.temas button {
  font: 700 .86rem/1 var(--sans); letter-spacing: .04em; color: #d9cdbd;
  padding: 11px 18px; border-radius: 999px; border: 1px solid #e8b23c40; background: #171214;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.temas button:hover { border-color: var(--oro); transform: translateY(-1px); }
.temas button[aria-pressed="true"] { color: #17110a; background: linear-gradient(180deg, #f6d98f, #e2a936); border-color: transparent; }

/* modos */
.modos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.modo {
  position: relative; overflow: hidden; border-radius: 18px; isolation: isolate;
  aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; background: #120e0f;
  box-shadow: 0 0 0 1px #e8b23c33, 0 22px 50px #0009;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.modo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: saturate(.9) brightness(.82); }
.modo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #09070800 20%, #090708b8 62%, #090708f5 100%); }
.modo:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px #e8b23c99, 0 30px 70px #000c, 0 0 60px #e8b23c1f; }
.modo:hover img { transform: scale(1.08); filter: saturate(1.05) brightness(1); }
.modo h3 { font-size: 1.32rem; }
.modo p { color: #d2c6b7; font-size: .9rem; line-height: 1.45; margin-top: .35em; }
.modo .sello { position: absolute; top: 16px; left: 16px; font: 800 .62rem/1 var(--sans); letter-spacing: .18em; color: var(--oro-claro); padding: 6px 9px; border: 1px solid #e8b23c80; border-radius: 6px; background: #090708b3; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* cifras */
.cifras { padding: clamp(48px, 6vw, 80px) 0; background: linear-gradient(180deg, #120c0d, #0c0909); border-block: 1px solid #e8b23c26; }
.cifras-rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; }
.cifra b { display: block; font: 600 clamp(2.6rem, 6vw, 4.6rem)/1 var(--serif); }
.cifra span { display: block; margin-top: 10px; color: var(--tenue); font-size: .92rem; letter-spacing: .04em; }

/* juego limpio */
.promesas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.promesa {
  padding: 28px 26px; border-radius: 20px;
  background: linear-gradient(150deg, #1d1719, #130f10);
  box-shadow: 0 0 0 1px #e8b23c2e, inset 0 1px #ffffff0d;
  transition: transform .3s, box-shadow .3s;
}
.promesa:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #e8b23c80, inset 0 1px #ffffff0d, 0 24px 50px #0008; }
.promesa svg { width: 34px; height: 34px; fill: none; stroke: var(--oro); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.promesa h3 { font-size: 1.28rem; margin: 16px 0 8px; }
.promesa p { color: var(--tenue); font-size: .96rem; }

/* galería */
.galeria { overflow: hidden; }
.tira {
  display: flex; gap: clamp(18px, 3vw, 34px); margin-top: clamp(40px, 5vw, 64px);
  padding: 20px max(20px, calc((100% - var(--ancho)) / 2)) 44px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.tira::-webkit-scrollbar { display: none; }
.tira figure { flex: none; width: clamp(210px, 22vw, 262px); margin: 0; scroll-snap-align: center; }
.tira .telefono { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.tira figure:hover .telefono { transform: translateY(-8px); }
.tira figcaption { margin-top: 18px; text-align: center; color: var(--tenue); font-size: .9rem; }
.tira figcaption b { display: block; color: var(--marfil); font: 600 1.08rem/1.3 var(--serif); }

/* cierre */
.cierre { text-align: center; isolation: isolate; overflow: hidden; }
.cierre::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('img/mesa.webp') center / cover no-repeat; filter: brightness(.34) saturate(.8);
}
.cierre::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, #09070866, var(--fondo) 92%), linear-gradient(180deg, var(--fondo), transparent 30%); }
.cierre img.emblema { width: 132px; height: 132px; margin: 0 auto 30px; border-radius: 30px; box-shadow: 0 0 0 1px #e8b23c80, 0 30px 80px #000, 0 0 100px #e8b23c33; }
.cierre .titulo-seccion { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.cierre .tiendas { justify-content: center; }

footer { padding: 34px 0 44px; border-top: 1px solid #e8b23c26; color: #8f857b; font-size: .88rem; }
.pie { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.pie nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pie a { color: #c9bdae; text-decoration: none; }
.pie a:hover { color: var(--oro-claro); }

/* --- aparición al hacer scroll --------------------------------------------- */

.js .aparece { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .aparece.visto { opacity: 1; transform: none; }

/* --- adaptación ------------------------------------------------------------ */

@media (max-width: 980px) {
  .barra nav { display: none; }
  .idioma { margin-left: auto; }
  .heroe { padding-top: 96px; }
  .heroe-rejilla { grid-template-columns: 1fr; text-align: center; }
  .rotulo { margin-inline: auto; }
  .heroe::before {
    background:
      linear-gradient(180deg, #090708d9 0%, #09070899 40%, #090708cc 70%, var(--fondo) 100%);
  }
  .heroe-fondo { background-image: url('img/mesa-movil.webp'); }
  .heroe-texto .sobretitulo::before { display: none; }
  .heroe-texto .entradilla { margin-inline: auto; }
  .tiendas, .datos-rapidos { justify-content: center; }
  .heroe-escena { height: clamp(430px, 112vw, 620px); margin-top: 18px; }
  .heroe-escena .t-frente { transform: translate(-56%, -50%) rotateY(-9deg) rotateX(3deg) rotateZ(1.5deg); }
  .bajar { display: none; }
  .modos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promesas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cifras-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .pasos { grid-template-columns: 1fr; gap: 54px; }
  .paso .telefono { width: min(74%, 280px); }
  .vitrina { border-radius: 16px; aspect-ratio: 1 / 1; }
  .pantalla { border-radius: 14px; }
  .modo { padding: 15px; aspect-ratio: 3 / 4; }
  .modo h3 { font-size: 1.12rem; }
  .modo p { font-size: .82rem; }
  .promesas { grid-template-columns: 1fr; }
  .tienda { min-width: 0; flex: 1 1 150px; justify-content: center; padding-inline: 12px; }
  .tienda small { letter-spacing: .05em; font-size: .62rem; white-space: nowrap; }
  .tira figure { width: 62vw; max-width: 250px; }
  .pie { flex-direction: column; text-align: center; }
  .pie nav { justify-content: center; }
}
@media (max-width: 380px) {
  .modos { gap: 12px; }
  .rotulo { letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .aparece { opacity: 1; transform: none; }
  .hilo path { stroke-dashoffset: 0; }
  .hilo circle { opacity: 1; }
}
