:root {
  --navy: #07101d;
  --navy-2: #0c2037;
  --ink: #10243d;
  --cream: #f6f5f0;
  --orange: #ff714e;
  --cyan: #52d6e8;
  --sky: #5cb4fb;
  --header-h: 72px;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--navy); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h2, .badge, .button, .nav-cta { font-family: 'Space Grotesk', sans-serif; }
.container { width: min(100% - 48px, 1240px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; z-index: 100; top: -100px; left: 16px; padding: 12px 18px; background: #fff; color: #000; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* Cabecera */
.site-header {
  position: fixed; z-index: 30; inset: 0 0 auto 0; height: var(--header-h);
  display: flex; align-items: center; gap: 32px; padding: 0 clamp(20px, 3.5vw, 56px);
  color: #fff; background: rgba(7, 16, 29, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand img { width: 128px; }
.desktop-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.desktop-nav a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; transition: background .2s, color .2s; }
.desktop-nav a:hover { background: rgba(255, 255, 255, .1); }
.desktop-nav a img { width: 28px; height: 28px; border-radius: 7px; }
.desktop-nav .nav-cta { margin-left: 8px; background: var(--orange); color: #091321; padding: 10px 18px; }
.desktop-nav .nav-cta:hover { background: #ff8a6b; }
.menu-toggle, .mobile-nav { display: none; }

/* Botones y etiquetas */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 24px; border-radius: 12px; font-size: 15px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-orange { background: var(--orange); color: #1a0d09; box-shadow: 0 12px 30px rgba(255, 113, 78, .3); }
.button-cyan { background: var(--cyan); color: #04202a; box-shadow: 0 12px 30px rgba(82, 214, 232, .25); }
.button-cyan:hover { background: #7fe3f1; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #1b3a5e; }
.link { font-weight: 700; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 3px; opacity: .8; }
.link:hover { opacity: 1; }

/* Insignias de tienda */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 14px; border-radius: 12px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .35); transition: transform .2s, box-shadow .2s; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 10px; letter-spacing: .02em; opacity: .85; }
.store strong { font: 700 19px 'Space Grotesk', sans-serif; letter-spacing: -.01em; }
.store.is-pending { opacity: .45; cursor: default; }
.panel-more { font-size: 14px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 3px; opacity: .8; }
.panel-more:hover { opacity: 1; }

/* Hero: los dos juegos */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(100svh, 760px); padding-top: var(--header-h); }
.panel { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; isolation: isolate; min-height: 560px; }
.panel-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 32px; width: 100%; }
.panel-tagline { font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; line-height: 1.35; margin: 0; max-width: 600px; min-height: 2.7em; display: flex; align-items: center; }

.panel-spkace { background: radial-gradient(ellipse at 50% 38%, #14477a 0, #0a2748 42%, #050d19 100%); color: #fff; }
.panel-title { height: clamp(210px, 21vw, 300px); width: min(720px, 94%); display: flex; align-items: center; justify-content: center; }
.panel-logo { max-width: min(460px, 82%); max-height: 100%; }
.hex { position: absolute; z-index: 0; aspect-ratio: 1.15; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); background: rgba(82, 214, 232, .07); }
.hex-a { width: 220px; top: 16%; left: -60px; }
.hex-b { width: 150px; top: 8%; right: 7%; background: rgba(82, 214, 232, .11); }
.hex-c { width: 280px; bottom: -80px; right: -70px; }

.panel-tablas { background: linear-gradient(180deg, #72befd 0, #5cb4fb 60%, #4eacf7 100%); color: #0b2a52; }
.panel-art { max-height: 100%; width: auto; max-width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); mask-composite: intersect; }

/* Secciones de juego */
.game { padding: 96px 0; }
.game-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; margin-bottom: 40px; }
.game-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.game-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; opacity: .85; }
.game h2 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -.05em; margin-bottom: 12px; }
.game-desc { font-size: 18px; line-height: 1.5; max-width: 560px; margin: 0; }
.game-links { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.game-links .stores { justify-content: flex-end; }

.game-spkace { background: linear-gradient(180deg, #050d19, #0a2037); color: #fff; }
.game-spkace .game-desc { color: #b7cadb; }
.game-tablas { background: linear-gradient(180deg, #d9efff, #aedcff); color: var(--ink); }
.game-tablas .game-desc { color: #2b4a6f; }

.banner { margin: 0 0 24px; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.banner img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

/* Carrusel de capturas */
.carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 26px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: rgba(127, 150, 175, .6) transparent; }
.shot { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: start; border-radius: 22px; overflow: hidden; transition: transform .25s; }
.shot:hover { transform: translateY(-6px); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

.carousel { --h: 460px; --gap: 16px; }
.carousel-wide { --w: calc((var(--h) - var(--gap)) / 2 * 2.165); display: grid; grid-auto-flow: column; grid-auto-columns: var(--w); grid-template-rows: repeat(2, calc((var(--h) - var(--gap)) / 2)); gap: var(--gap); }
.phone-shot { height: var(--h); aspect-ratio: 9 / 16; border: 5px solid #20395a; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.land-shot { width: var(--w); height: 100%; border: 5px solid #fff; box-shadow: 0 14px 30px rgba(8, 60, 120, .28); }

/* Estudio y contacto */
.studio { background: var(--navy); color: #fff; padding: 72px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.studio-inner { display: flex; align-items: center; gap: 48px; }
.studio-logo { width: 190px; flex: none; }
.studio h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -.03em; margin-bottom: 8px; }
.studio p { margin: 0; color: #9db3c6; font-size: 17px; }
.contact { background: #0b192b; color: #fff; padding: 64px 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact h2 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.04em; margin: 0; }
.site-footer { background: var(--navy); color: #7f93a7; padding: 28px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a:hover { color: #fff; }

/* Galería (lightbox) */
.gallery { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; background: rgba(4, 12, 24, .96); color: #fff; }
.gallery::backdrop { background: rgba(4, 12, 24, .9); }
.gallery-panel { height: 100%; display: flex; flex-direction: column; width: min(100% - 40px, 1200px); margin: auto; }
.gallery-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.gallery-counter { color: var(--cyan); font: 700 11px 'Space Grotesk', sans-serif; letter-spacing: .16em; }
.gallery-title { font: 700 24px 'Space Grotesk', sans-serif; margin: 3px 0 0; }
.gallery-close, .gallery-arrow { border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 50%; width: 44px; height: 44px; font-size: 22px; cursor: pointer; flex: none; }
.gallery-close { font-size: 28px; background: none; }
.gallery-close:hover, .gallery-arrow:hover { background: rgba(255, 255, 255, .18); }
.gallery-stage { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 0; flex: 1; }
.gallery-image { max-height: calc(100vh - 190px); max-width: calc(100vw - 230px); object-fit: contain; border-radius: 12px; box-shadow: 0 20px 55px rgba(0, 0, 0, .4); }
.gallery-dots { display: flex; justify-content: center; gap: 10px; padding: 22px; }
.gallery-dots button { width: 9px; height: 9px; border: 0; border-radius: 50%; background: #5b6c7d; cursor: pointer; padding: 0; }
.gallery-dots button[aria-current="true"] { background: var(--orange); transform: scale(1.3); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .panel { min-height: 520px; }
          .game-head { grid-template-columns: auto 1fr; }
  .game-links { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .game-links .stores { justify-content: flex-start; }
}

/* Móvil */
@media (max-width: 780px) {
  :root { --header-h: 64px; }
  .container { width: calc(100% - 32px); }
  .site-header { padding-inline: 16px; }
  .brand img { width: 112px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; margin-left: auto; border: 0; background: none; flex-direction: column; gap: 6px; padding: 12px; cursor: pointer; }
  .menu-toggle span { width: 24px; height: 2px; background: #fff; transition: transform .25s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav:not([hidden]) { display: flex; position: fixed; z-index: 29; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: #0d1b2e; color: #fff; padding: 8px 20px 20px; box-shadow: 0 20px 35px rgba(0, 0, 0, .35); }
  .mobile-nav a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-weight: 700; font-size: 17px; }
  .mobile-nav a img { border-radius: 9px; }
  .panel { min-height: 500px; }
  .panel-copy { padding: 32px 20px; }
  .panel-title { height: 190px; }
                .game { padding: 64px 0; }
  .game-head { grid-template-columns: 1fr; gap: 18px; }
  .game-icon { width: 84px; height: 84px; border-radius: 20px; }
  .game-desc { font-size: 16px; }
  .banner { border-radius: 14px; }
  .carousel { --h: 400px; }
  .studio-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .gallery-stage { gap: 8px; position: relative; }
  .gallery-image { max-width: calc(100vw - 32px); max-height: calc(100vh - 230px); }
  .gallery-arrow { position: absolute; z-index: 2; bottom: 4px; background: rgba(4, 12, 24, .75); }
  .gallery-prev { left: 0; }
  .gallery-next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
