/* Lodos Media — estilos únicos. Escala de espaciado base 8 px: 4 8 12 16 24 32 48 64 96 128 */

@font-face {
  font-family: "Aldrich";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("../fonts/aldrich-400.woff2") format("woff2");
}

:root {
  --c-bg: #000;
  --c-text: #fff;
  --c-muted: #8a8a8a;
  --c-body-soft: #d4d4d4;
  --c-accent: #9abeff;
  --c-surface: #111;
  --c-surface-2: #222;
  --c-border: #333;

  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-64: 64px;

  --gap-section: var(--s-48);
  --pad-page: var(--s-32);
  --w-content: 1000px;
  --w-legal: 680px;
  --radius: 10px;

  --f-family: "Aldrich", sans-serif;
  --f-small: 0.875rem;
  --f-medium: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.227), 1.125rem);
  --f-large: clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.455), 1.375rem);
  --f-x-large: clamp(1.75rem, 1.75rem + ((1vw - 0.2rem) * 0.455), 2rem);
  --f-foot: 13px;
}

@media (min-width: 900px) {
  :root { --gap-section: var(--s-64); }
}

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-family);
  font-size: var(--f-medium);
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.5;
}

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.125;
  text-wrap: balance;
}

h1, h2 { font-size: var(--f-x-large); }
h3 { font-size: var(--f-large); }
p, blockquote, figcaption { text-wrap: pretty; }

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

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.1em; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.hl { color: var(--c-accent); }

.skip-link {
  position: absolute;
  top: var(--s-8);
  left: var(--s-8);
  z-index: 30;
  padding: var(--s-8) var(--s-16);
  background: var(--c-text);
  color: var(--c-bg);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Cabecera */
.site-header {
  display: grid;
  grid-template-areas: "lang" "logo";
  justify-items: center;
  padding: var(--s-12) var(--pad-page) var(--s-32);
}

.site-logo { grid-area: logo; margin-top: var(--s-12); }
.site-logo img { width: 306px; }

.lang {
  grid-area: lang;
  justify-self: end;
  display: flex;
  align-items: center;
  font-size: var(--f-foot);
  letter-spacing: 0.08em;
  line-height: 1;
}

.lang a,
.lang [aria-current] {
  display: inline-flex;
  align-items: center;
  min-width: 24px;
  min-height: 24px;
  justify-content: center;
  color: var(--c-text);
}
.lang a { color: var(--c-muted); }
.lang a:hover { color: var(--c-text); text-decoration: none; }
.lang [aria-current] { font-weight: 700; }
.lang__sep { margin-inline: var(--s-4); color: var(--c-muted); }

@media (min-width: 782px) {
  .site-header {
    grid-template-areas: ". logo lang";
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-top: var(--s-24);
  }
  .site-logo { margin-top: 0; }
  .lang { font-size: var(--f-small); }
}

/* Contenido */
.content {
  width: 100%;
  max-width: calc(var(--w-content) + 2 * var(--pad-page));
  margin-inline: auto;
  padding-inline: var(--pad-page);
}

.content > * + * { margin-top: var(--gap-section); }

.block > h1,
.block > h2 { text-align: center; }
.block > h1 + *,
.block > h2 + * { margin-top: var(--s-24); }

.hero-video { width: 100%; aspect-ratio: 16 / 9; background: var(--c-bg); }

/* Rejillas de vídeo y juegos */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-12);
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .grid { gap: var(--s-16); }
  .grid--video { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .grid { gap: var(--s-24); }
  .grid--video { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .grid--games > :first-child { grid-column: 1 / -1; }
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 45%);
  pointer-events: none;
}

.tile:hover { text-decoration: none; }
.tile:hover img { transform: scale(1.04); }

.tile__title,
.tile__meta {
  position: absolute;
  z-index: 2;
  left: var(--s-12);
  right: var(--s-12);
  line-height: 1.25;
}

.tile__title { bottom: var(--s-12); font-size: 14px; color: var(--c-text); }
.tile__meta { bottom: var(--s-12); font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.tile__title:has(+ .tile__meta) { bottom: var(--s-32); }

.tile__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--c-accent);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.tile__play svg { width: 20px; height: 20px; margin-left: 3px; fill: var(--c-accent); }

.tile:hover .tile__play,
.tile:focus-visible .tile__play { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .tile__play { opacity: 0.9; }
}

@media (max-width: 599px) {
  .tile__title { left: var(--s-8); right: var(--s-8); bottom: var(--s-8); font-size: 12px; }
  .tile__play { width: 40px; height: 40px; }
  .tile__play svg { width: 16px; height: 16px; }
}

.tile--soon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  background: linear-gradient(135deg, #151515, #0b0b0b);
  cursor: default;
}
.tile--soon::after { content: none; }
.tile--soon span {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* Animación Audiovisual / Interactividad / logo */
.motion {
  --mo-a: var(--c-accent);
  position: relative;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 45%, #1f1f1f 0%, #121212 55%, #080808 100%);
  container-type: inline-size;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--c-text);
}

.motion::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .6 0 0 0 0 .75 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(rgba(154, 190, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 190, 255, 0.06) 1px, transparent 1px);
  background-size: 160px 160px, 3.3333cqw 3.3333cqw, 3.3333cqw 3.3333cqw;
  background-position: 0 0, center, center;
  opacity: 0.55;
}

.motion__s {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: mo-s 12s infinite both;
}
.motion__s--2 { animation-delay: 4s; }
.motion__s--3 { animation-delay: 8s; }

.motion__box { display: flex; flex-direction: column; align-items: stretch; }

.motion__t {
  font-size: 8.4cqw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
  clip-path: inset(0 100% 0 0);
  animation: mo-wipe 12s infinite both;
  animation-delay: inherit;
}

.motion__l {
  height: max(1px, 0.12cqw);
  margin: 2.4cqw 0 2.2cqw;
  background: rgba(255, 255, 255, 0.55);
  transform: scaleX(0);
  animation: mo-line 12s infinite both;
  animation-delay: inherit;
}

.motion__d {
  font-size: 2.35cqw;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--mo-a);
  opacity: 0;
  animation: mo-up 12s infinite both;
  animation-delay: inherit;
}

.motion__logo {
  width: 42cqw;
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.96);
  animation: mo-logo 12s 8s infinite both;
}

@keyframes mo-s {
  0% { opacity: 0; }
  2% { opacity: 1; }
  29% { opacity: 1; filter: blur(0); }
  33.3% { opacity: 0; filter: blur(6px); }
  100% { opacity: 0; }
}
@keyframes mo-wipe {
  0%, 3% { clip-path: inset(0 100% 0 0); }
  11%, 100% { clip-path: inset(0 0 0 0); }
}
@keyframes mo-line {
  0%, 6% { transform: scaleX(0); }
  13%, 100% { transform: scaleX(1); }
}
@keyframes mo-up {
  0%, 10% { opacity: 0; transform: translateY(0.6cqw); }
  16%, 100% { opacity: 1; transform: none; }
}
@keyframes mo-logo {
  0% { opacity: 0; filter: blur(8px); transform: scale(0.96); }
  8% { opacity: 1; filter: blur(0); transform: scale(1); }
  28% { opacity: 1; filter: blur(0); transform: scale(1.02); }
  33.3%, 100% { opacity: 0; filter: blur(8px); transform: scale(1.02); }
}

@media (max-width: 599px) {
  .motion__t { font-size: 9cqw; }
  .motion__d { font-size: 3.6cqw; letter-spacing: 0.06em; }
  .motion__logo { width: 52cqw; }
}

/* Tarjetas */
.cards {
  display: grid;
  gap: var(--s-24);
  padding: 0;
  list-style: none;
}

@media (min-width: 782px) {
  .cards { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--s-24);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
}

@media (min-width: 768px) {
  .card { padding: var(--s-32); }
}

.card > * + * { margin-top: var(--s-12); }

.card__icon {
  margin-top: auto;
  padding-top: var(--s-24);
  line-height: 0;
  text-align: center;
  color: var(--c-accent);
}
.card__icon svg { display: inline-block; width: 64px; height: 64px; }

.cards--small p { font-size: 0.88em; line-height: 1.55; }

/* Logos de clientes */
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-16);
  padding: 0;
  list-style: none;
}
.logos > li { flex: 0 0 calc((100% - var(--s-16)) / 2); }
.logos img { width: 100%; }

@media (min-width: 600px) {
  .logos { gap: var(--s-24); }
  .logos > li { flex-basis: calc((100% - 2 * var(--s-24)) / 3); }
}

@media (min-width: 900px) {
  .logos { gap: var(--s-32); }
  .logos > li { flex-basis: calc((100% - 4 * var(--s-32)) / 5); }
}

/* Testimonios */
.tm {
  position: relative;
  width: 100%;
  margin-inline: auto;
}

.tm__vp {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  outline-offset: 4px;
}
.tm__vp::-webkit-scrollbar { display: none; }

.tm__list { display: flex; gap: var(--s-12); padding: 0; list-style: none; }

.tm__item { flex: 0 0 100%; display: flex; scroll-snap-align: start; }

.tm__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: var(--s-24);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  text-align: center;
}

.tm__card blockquote { font-size: 0.88em; line-height: 1.55; }

.tm__stars {
  margin: var(--s-24) 0 var(--s-16);
  color: var(--c-accent);
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
}

.tm__card figcaption { margin-top: auto; }
.tm__name { display: block; font-style: normal; font-size: 14px; line-height: 1.4; }
.tm__role { display: block; margin-top: var(--s-4); font-size: 12px; line-height: 1.4; }

.tm__btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--c-text);
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-text);
  cursor: pointer;
  transform: translateY(-75%);
}
.tm__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm__btn:hover { background: #1a1a1a; }
.tm__btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.tm__prev { left: 0; }
.tm__next { right: 0; }

.tm__dots { display: flex; justify-content: center; gap: var(--s-4); margin-top: var(--s-12); }
.tm__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.tm__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--c-text);
  border-radius: 50%;
}
.tm__dot[aria-current="true"]::before { background: var(--c-accent); border-color: var(--c-accent); }

.tm.is-static .tm__btn,
.tm.is-static .tm__dots { display: none; }

.tm:not(.is-static) { padding-inline: var(--s-48); }

@media (min-width: 768px) {
  .tm__card { padding: var(--s-32); }
  .tm__list { gap: var(--s-16); }
  .tm__item { flex-basis: calc((100% - var(--s-16)) / 2); }
  .tm__vp { scroll-behavior: smooth; }
}

@media (min-width: 1024px) {
  .tm__list { gap: var(--s-24); }
  .tm__item { flex-basis: calc((100% - 2 * var(--s-24)) / 3); }
}

/* Bio */
.bio {
  display: grid;
  gap: var(--s-24);
  align-items: center;
}

.bio__photo {
  justify-self: center;
  width: 220px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.bio__text > * + * { margin-top: var(--s-12); }
.bio__quote { font-style: italic; }

@media (min-width: 782px) {
  .bio { grid-template-columns: 3fr 7fr; column-gap: var(--s-32); }
}

/* Llamada a la acción */
.cta {
  padding: var(--s-24);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  text-align: center;
}
.cta > * + * { margin-top: var(--s-12); }
.cta > .cta__actions { margin-top: var(--s-32); }

@media (min-width: 768px) {
  .cta { padding: var(--s-48) var(--s-32); }
}

.button {
  display: inline-block;
  padding: var(--s-16) var(--s-32);
  border-radius: 9999px;
  background: var(--c-text);
  color: var(--c-bg);
  font-size: var(--f-medium);
  text-align: center;
}
.button:hover { background: color-mix(in srgb, var(--c-text) 85%, transparent); text-decoration: none; }

/* Páginas legales */
.legal {
  max-width: calc(var(--w-legal) + 2 * var(--pad-page));
  color: var(--c-body-soft);
  font-size: clamp(14px, 13.5px + 0.15vw, 15px);
  line-height: 1.6;
}

.legal > * + * { margin-top: var(--s-8); }
.legal :is(h1, h2, h3) { color: var(--c-text); line-height: 1.25; }
.legal h1 { font-size: clamp(24px, 22.25px + 0.45vw, 28px); line-height: 1.15; }
.legal h2 {
  margin-top: var(--s-48);
  padding-top: var(--s-24);
  border-top: 1px solid var(--c-border);
  font-size: clamp(19px, 17.7px + 0.35vw, 22px);
}
.legal h1 + h2 { margin-top: var(--s-24); padding-top: 0; border-top: 0; }
.legal h3 { margin-top: var(--s-24); font-size: clamp(15px, 14.5px + 0.2vw, 16.5px); }
.legal h2 + h3 { margin-top: var(--s-16); }
.legal ul { padding-left: var(--s-16); }
.legal li + li { margin-top: var(--s-4); }
.legal .n { color: var(--c-accent); }
.legal .k { color: var(--c-muted); }
.legal > .legal__updated { margin-top: var(--s-48); font-size: var(--f-foot); color: var(--c-muted); }

/* Pie */
.site-footer {
  margin-top: var(--gap-section);
  padding: var(--s-32) var(--pad-page);
  background: var(--c-surface-2);
  text-align: center;
}
.site-footer > * + * { margin-top: var(--s-12); }

.footnote { color: var(--c-muted); font-size: var(--f-foot); line-height: 1.5; }
.footnote a { color: inherit; }
.footnote a:hover { color: var(--c-accent); }

/* Lightbox de vídeo */
html.is-modal-open { overflow: hidden; }

.vm {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--s-16);
  border: 0;
  background: rgba(0, 0, 0, 0.92);
  color: var(--c-text);
}
.vm[open] { display: flex; align-items: center; justify-content: center; }
.vm::backdrop { background: transparent; }

.vm__stage {
  --ar: 1.7778;
  position: relative;
  width: min(100%, calc((100vh - 96px) * var(--ar)), 1400px);
  width: min(100%, calc((100dvh - 96px) * var(--ar)), 1400px);
  margin-top: var(--s-48);
  aspect-ratio: var(--ar);
  background: #000;
}

.vm__video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.vm__video.is-ready { opacity: 1; }

.vm__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-16);
  color: var(--c-text);
  pointer-events: none;
}
.vm__video.is-ready ~ .vm__loader { display: none; }
.vm__spin {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: vm-spin 0.8s linear infinite;
}
@keyframes vm-spin { to { transform: rotate(360deg); } }

.vm__close {
  position: absolute;
  top: calc(-1 * var(--s-48));
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--c-accent);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: var(--c-accent);
  cursor: pointer;
}
.vm__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.vm__close:hover { background: var(--c-accent); color: #000; }
.vm__close:focus-visible { outline-color: var(--c-text); }

@media (prefers-reduced-motion: reduce) {
  .vm__spin { animation-duration: 2s; }
  .tile img { transition: none; }
  .tile:hover img { transform: none; }
  .tm__vp { scroll-behavior: auto; }
  .motion__s,
  .motion__t,
  .motion__l,
  .motion__d,
  .motion__logo { animation: none; }
  .motion__s--3,
  .motion__logo { opacity: 1; filter: none; transform: none; }
}
