/* ---------- Base ---------- */
:root{
  --bg:#0a0a0a;
  --panel:#111;
  --panel-2:#141414;
  --muted:#b3b3b3;
  --text:#eee;
  --amber:#f59e0b;
  --amber-2:#ffb000;
  --border:#222;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, Apple Color Emoji, Segoe UI Emoji;
  color:var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(245,158,11,.06), transparent),
              radial-gradient(900px 500px at 90% -10%, rgba(245,158,11,.04), transparent),
              var(--bg);
}

img{max-width:100%; display:block}
.container{max-width:1180px; margin:0 auto; padding:0 16px}
.section{padding:72px 0; border-top:1px solid var(--border)}
.title-xl{font-size: clamp(2rem, 3.5vw, 3.5rem); line-height:1.1; font-weight:700}
.title-lg{font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height:1.15; font-weight:700}
.lead{font-weight:600}
.muted{color:var(--muted)}
.max-w{max-width:60ch}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}

.accent{color:var(--amber)}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.7rem 1rem; border-radius:14px; border:1px solid transparent;
  text-decoration:none; font-weight:600; box-shadow:none; transition: .2s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn-cta{ background:var(--amber); color:#111 }
.btn-cta:hover{ background:var(--amber-2) }
.btn-secondary{ background:#1a1a1a; border-color:#2a2a2a }
.btn-outline{ background:transparent; border-color:#2a2a2a }
.btn-ghost{ background:transparent; color:var(--muted) }
.btn-compact{ padding:.5rem .75rem; font-size:.95rem }
.btn-link{ background:transparent; color:var(--amber) }

.grid-2{ display:grid; gap:28px; grid-template-columns: 1fr; }
.grid-3{ display:grid; gap:20px; grid-template-columns: 1fr; }
@media (min-width: 960px){
  .grid-2{ grid-template-columns: 1.15fr .85fr }
  .grid-3{ grid-template-columns: repeat(3,1fr) }
}

.cards{ margin-top:20px }

.card{
  background: linear-gradient(180deg, #121212, #0d0d0d);
  border:1px solid var(--border); border-radius:18px; padding:18px;
  box-shadow: var(--shadow);
}
.card-min{ padding:16px }
.card .card-title{ margin:10px 0 8px }
.card .card-text{ color:var(--muted); line-height:1.6 }

.row-head{ display:flex; align-items:end; justify-content:space-between; gap:16px }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(1.1) blur(10px);
  background: rgba(10,10,10,.6); border-bottom:1px solid var(--border);
}
.nav-wrap{ display:flex; align-items:center; justify-content:space-between; min-height:64px; }
.brand{ display:flex; align-items:center; gap:.6rem; text-decoration:none }
.brand-logo{ border-radius:10px; box-shadow: 0 12px 28px rgba(245,158,11,.15) }
.brand-name{ font-weight:700; letter-spacing:.2px }

.nav{ display:none; gap:8px; align-items:center }
.nav a{ text-decoration:none; padding:.6rem .8rem; border-radius:10px }
.nav .btn-cta{ padding:.6rem 1rem }
.nav-toggle{
  background:transparent; border:0; display:grid; gap:5px; padding:10px; border-radius:10px;
}
.nav-toggle:hover{ background:#161616 }
.nav-toggle-bar{ width:22px; height:2px; background:#e5e5e5; display:block }

@media (min-width: 900px){
  .nav{ display:flex }
  .nav-toggle{ display:none }
}

/* mobile nav */
.nav.open{ display:flex; position:absolute; right:16px; top:64px; background:#0f0f0f; padding:10px; border:1px solid var(--border); border-radius:12px; flex-direction:column; min-width:200px }

/* ---------- Hero ---------- */
.hero{ border-top:0; padding-top:48px }
.hero .actions{ display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 }
.hero-flags{ list-style:none; padding:0; margin:16px 0 0; display:flex; gap:18px; color:#d6d6d6; font-size:.95rem }
.hero-flags li{ display:flex; align-items:center; gap:8px }

.mockup{
  border:1px solid var(--border); border-radius:22px;
  background: linear-gradient(135deg, #121212, #0a0a0a);
  height: 320px; position:relative; overflow:hidden;
  box-shadow: var(--shadow);
}
.mockup-grid{ position:absolute; inset:0; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:14px; opacity:.9 }
.mockup-grid > div{
  border-radius:14px; border:1px solid #222;
  background: radial-gradient(60% 60% at 50% 50%, rgba(245,158,11,.10), transparent 60%), linear-gradient(120deg, #1a1a1a, transparent 40%);
}
.mockup-note{ position:absolute; left:16px; bottom:14px; color:#cfcfcf; font-size:.95rem; opacity:.9 }

/* ---------- Juegos ---------- */
.card-hero{
  position:relative; border-radius:16px; height:150px; margin:-2px -2px 10px; overflow:hidden;
  border:1px solid var(--border);
}
.hero-1{ background: radial-gradient(100% 100% at 0% 0%, #3b1d00 0%, #0b0a0a 40%, #171717 100%) }
.hero-2{ background: radial-gradient(100% 100% at 100% 0%, #462a00 0%, #0b0a0a 40%, #171717 100%) }
.hero-3{ background: radial-gradient(100% 100% at 50% 100%, #2d1600 0%, #0b0a0a 40%, #171717 100%) }
.card-hero::after{
  content:''; position:absolute; inset:0; opacity:.35;
  background: radial-gradient(circle at 20% 20%, rgba(245,158,11,.35), transparent 45%), radial-gradient(circle at 80% 60%, rgba(245,158,11,.25), transparent 50%);
}
.badge{
  position:absolute; left:10px; top:10px; background: rgba(245,158,11,.92); color:#111; font-weight:700;
  font-size:.8rem; padding:.25rem .5rem; border-radius:10px; box-shadow:0 8px 20px rgba(245,158,11,.25);
}
.chip{
  position:absolute; left:10px; bottom:10px; color:#f1c57a; font-size:.85rem; background: rgba(0,0,0,.3);
  border:1px solid rgba(255,255,255,.08); padding:.25rem .5rem; border-radius:10px; backdrop-filter: blur(6px);
}
.card-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px }

/* ---------- Sobre ---------- */
.list{ margin:14px 0 0; padding-left: 1.1rem; }
.list li{ margin:.3rem 0 }
.stack{ padding:0 18px 18px 18px }
.stack .stack-list{ margin:0; padding: 0 0 0 1rem }
.stack .stack-list li{ margin:.4rem 0 }

/* ---------- Equipo ---------- */
.person{ display:grid; grid-template-columns: 56px 1fr; gap:14px; align-items:start }
.avatar{
  width:56px; height:56px; border-radius:16px; background: linear-gradient(135deg,#1d1d1d,#121212);
  display:grid; place-items:center; border:1px solid #2a2a2a; font-weight:700; color:#f0f0f0
}
.meta{ color:#d2d2d2; font-size:.95rem; margin:.15rem 0 .4rem }

/* ---------- Contacto ---------- */
.form{ display:grid; gap:12px; margin-top:16px }
.field{ display:grid; gap:6px }
.field input, .field textarea{
  background:#0e0e0e; color:#eee; border:1px solid #222; border-radius:12px; padding:.75rem .9rem;
}
.field input:focus, .field textarea:focus{ outline:2px solid #333; border-color:#444 }
.contact-meta{ display:flex; gap:16px; margin-top:10px; color:#d6d6d6; font-size:.95rem }
.social{ display:block }
.social-list{ display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:10px; list-style:none; padding:0; margin:10px 0 0 }
.social-list a{ display:block; border:1px solid var(--border); border-radius:12px; padding:.7rem .9rem; background:#0d0d0d }
.social .note{ margin-top:12px; color:#d6d6d6 }
.hidden{ display:none }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--border); padding:22px 0 }
.footer-grid{ display:grid; align-items:center; gap:10px; grid-template-columns: 1fr; }
.footer-nav{ display:flex; gap:10px; flex-wrap:wrap }
@media (min-width: 820px){
  .footer-grid{ grid-template-columns: 1fr auto auto }
}

/* ---------- Skip link ---------- */
.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  position:fixed; left:16px; top:16px; width:auto; height:auto; padding:.5rem .75rem; z-index:1000;
  background:#000; color:#fff; border-radius:8px; outline:2px solid var(--amber);
}

/* ---------- Success page ---------- */
.success-body{ display:grid; min-height:100svh; place-items:center; background: var(--bg) }
.success{ text-align:center }
.success h1{ margin:.5rem 0 }

/* i18n toggle */
.lang-toggle{ margin-left:.5rem; border:1px solid #2a2a2a; border-radius:10px; padding:.45rem .7rem; background:#121212 }
.lang-toggle:hover{ background:#161616 }

/* disabled buttons */
.btn[disabled], .btn.disabled{ opacity:.6; cursor:not-allowed; transform:none !important; }

/* social icons */
.social-card{ display:flex; align-items:center; gap:12px }
.social-card .icon{ width:20px; height:20px; color:#f5f5f5; opacity:.9 }
.social-card:hover .icon{ opacity:1 }

/* badge small */
.badge-soft{ background:#161616; border:1px solid #2a2a2a; color:#e5e5e5; border-radius:10px; padding:.25rem .5rem; font-size:.8rem }

/* ---------- Contact split ---------- */
.contact-split .contact-visual{
  margin: 0 0 12px;
  border:1px solid var(--border); border-radius:18px; overflow:hidden; box-shadow: var(--shadow);
}
.contact-split .contact-visual img{ width:100%; height:auto; display:block }

.contact-social .social-tiles{
  display:grid; grid-template-columns: repeat(4, 64px); gap:12px; margin-top:10px;
}
.contact-social .tile{
  width:64px; height:64px; display:grid; place-items:center; border-radius:12px;
  background:#0f0f0f; border:1px solid #222; transition:.2s ease;
}
.contact-social .tile:hover{ transform: translateY(-2px); background:#131313; border-color:#2a2a2a }
.contact-social .tile img{ width:24px; height:24px; opacity:.9 }
@media (max-width: 640px){
  .contact-social .social-tiles{ grid-template-columns: repeat(4, 1fr) }
}

/* ---------- Contact overlay variant ---------- */
.contact-visual.overlayed{ position:relative; border:1px solid var(--border); border-radius:18px; overflow:hidden; box-shadow: var(--shadow) }
.contact-visual.overlayed img{ width:100%; height:auto; display:block }
.contact-visual.overlayed .overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.55));
}
.social-overlay{
  position:absolute; left:14px; bottom:14px; right:14px;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  border-radius:14px; padding:10px;
}
.social-overlay .card-title{ margin:0 0 8px; font-size:1rem }
.social-overlay .social-tiles{ display:grid; grid-template-columns: repeat(4, 56px); gap:10px }
.social-overlay .tile{ width:56px; height:56px; display:grid; place-items:center; border-radius:12px; background:#111; border:1px solid #222 }
.social-overlay .tile:hover{ transform:translateY(-2px) }
.social-overlay .tile img{ width:22px; height:22px }

@media (max-width: 640px){
  .social-overlay{ position:static; margin-top:8px }
}

/* ---------- Footer legal ---------- */
.footer-legal{
  border-top:1px solid var(--border);
  padding:12px 16px; text-align:center; color:var(--muted); font-size:.85rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:1000;
  background: rgba(10,10,10,.95); border:1px solid var(--border); border-radius:14px; box-shadow: var(--shadow);
}
.cookie-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px }
.cookie-inner p{ margin:0; color:#e5e5e5 }
.cookie-actions{ display:flex; gap:10px }
@media (max-width: 640px){
  .cookie-inner{ flex-direction:column; align-items:stretch }
}

/* ---------- Our Games cards ---------- */
.game-card{ position:relative }
.game-card-art{
  height:140px; border-radius:14px; overflow:hidden;
  border:1px solid var(--border);
  background: radial-gradient(50% 60% at 50% 40%, rgba(245,158,11,.18), transparent 60%), #0f0f0f;
  display:flex; align-items:center; justify-content:center;
}
.app-icon{
  width:72px; height:72px; border-radius:16px; display:grid; place-items:center;
  background:#1b1b1b; border:1px solid #2a2a2a; font-weight:800; font-size:1.1rem; letter-spacing:.5px;
}
.store-badge{
  margin-top:10px; display:inline-flex; align-items:center; gap:8px;
  border:1px solid #2a2a2a; border-radius:10px; padding:.35rem .55rem; font-size:.9rem; color:#eaeaea;
}
.store-badge img{ width:16px; height:16px; opacity:.9 }
.store-badge:hover{ background:#151515 }

/* WB icon image */
.app-icon-img{
  width:72px; height:72px; border-radius:16px; object-fit:cover;
  background:#1b1b1b; border:1px solid #2a2a2a; display:block;
}

/* === Parallax Splash (added) === */
.hero-splash{ position:relative; height:100vh; overflow:hidden; isolation:isolate; }
.hero-splash .hero-layer{ position:absolute; inset:0; will-change: transform; }
.hero-splash .hero-layer.bg{ background-size:cover; background-position:center; transform: translate3d(0,0,0); }
.hero-splash .hero-layer.logo{
  position:absolute; left:50%; top:12%; transform: translate(-50%, -55%) translate3d(0,0,0);
  max-height:32vh; width:auto; filter: drop-shadow(0 12px 32px rgba(0,0,0,.6));
  user-select:none; -webkit-user-drag:none; pointer-events:none;
}


/* Splash bg bleed to avoid edges while parallax moves */
.hero-splash .hero-layer.bg{ inset:-6% !important; }

/* === Overlay Splash behavior === */
.hero-splash{ position:fixed; inset:0; height:100vh; z-index:5; }
.hero-splash.is-hidden{ opacity:0; visibility:hidden; pointer-events:none; transition: opacity .35s ease, visibility .35s ease; }


/* === Animated transitions between splash and content === */
@media (prefers-reduced-motion: no-preference){
  body.anim-pre-in   > *:not(.hero-splash){ transform: translateY(40px); opacity: 0; }
  body.anim-in       > *:not(.hero-splash){ transform: translateY(0);   opacity: 1;
    transition: transform .45s ease, opacity .45s ease; will-change: transform, opacity; }
  body.anim-pre-out  > *:not(.hero-splash){ transform: translateY(0);   opacity: 1; }
  body.anim-out      > *:not(.hero-splash){ transform: translateY(40px);opacity: 0;
    transition: transform .45s ease, opacity .45s ease; will-change: transform, opacity; }
}

/* Header visibility toggle (hide when splash visible) */
.site-header{ position: sticky; top:0; z-index:50; transition: transform .24s ease, opacity .24s ease; }
.site-header.is-hidden{ transform: translateY(-100%); opacity:0; pointer-events:none; }

/* === Splash scroll indicator === */
.splash-indicator{ position:absolute; left:0; right:0; bottom:18px; z-index:3; display:grid; place-items:center; }
.scroll-indicator{
  display:grid; place-items:center; padding:.5rem; border-radius:999px;
  background: rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.12);
  cursor:pointer; backdrop-filter: blur(6px); transition: transform .2s ease, background .2s ease;
}
.scroll-indicator:hover{ transform: translateY(-2px); background: rgba(0,0,0,.6); }
@keyframes bounceY { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(6px) } }
@media (prefers-reduced-motion: no-preference){
  .scroll-indicator{ animation: bounceY 1.4s ease-in-out infinite; }
}

/* === Scroll indicator: text above, arrow below (v32 base) === */
.scroll-indicator{ display:flex; flex-direction:column; align-items:center; gap:4px; }
.scroll-indicator-label{
  order: -1; /* ensure text is above even if HTML order changes */
  font-size:.8rem; line-height:1; font-weight:800;
  color:#fff; letter-spacing:.1em; text-transform:uppercase;
  text-shadow:0 1px 2px rgba(0,0,0,.45); user-select:none;
}
@keyframes labelPulse { 0%,100%{ transform: translateY(0); opacity:.92 } 50%{ transform: translateY(3px); opacity:1 } }
@media (prefers-reduced-motion: no-preference){
  .scroll-indicator-label{ animation: labelPulse 1.6s ease-in-out infinite; animation-delay:.12s; }
}


/* v42: logo size & position */
.hero-splash .hero-layer.logo{
  top: 14% !important;         /* slightly lower */
  max-height: 34vh !important; /* larger */
}
@media (max-width: 600px){
  .hero-splash .hero-layer.logo{
    top: 15% !important;
    max-height: 30vh !important;
  }
}


/* v43: logo size & position (lower & larger) */
.hero-splash .hero-layer.logo{
  top: 16% !important;
  max-height: 36vh !important;
}
@media (max-width: 600px){
  .hero-splash .hero-layer.logo{
    top: 17% !important;
    max-height: 32vh !important;
  }
}


/* v44: logo position 25% and size 44vh */
.hero-splash .hero-layer.logo{
  top: 25% !important;
  max-height: 44vh !important;
}
@media (max-width: 600px){
  .hero-splash .hero-layer.logo{
    top: 26% !important;
    max-height: 38vh !important;
  }
}

/* Splash note under the logo */
.splash-note{
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  text-align: center;
}
.splash-note .note-title{
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  font-size: 1.2rem;
  line-height: 1.1;
}
.splash-note .note-sub{
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  line-height: 1.1;
}
@media (max-width: 600px){
  .splash-note{
    top: 64%;
    padding: 7px 10px;
  }
  .splash-note .note-title{ font-size: 1.1rem; }
  .splash-note .note-sub{ font-size: .78rem; }
}

/* disable textarea resize */
#contact textarea, .contact textarea, form textarea{ resize: none; }

/* WB badge placement under description */
.store-links-inline{ margin-top: .75rem; }
.store-links-inline .store-badge{ display:inline-block; line-height:0; }
.store-links-inline .store-badge img{ width: 200px; height:auto; display:block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
@media (max-width: 760px){
  .store-links-inline{ display:flex; }
  .store-links-inline .store-badge img{ width: 190px; }
}

/* center WB badge */
.game-card .store-links-inline{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}
.game-card .store-links-inline .store-badge img{
  width: 200px;
  height: auto;
}
@media (max-width: 760px){
  .game-card .store-links-inline .store-badge img{ width: 190px; }
}

/* Prevent scrolling while hero/content animation runs */
.scroll-lock{ overflow: hidden; }
