:root {
  --bg: #0b0d14;
  --bg-2: #11141e;
  --card: #161a26;
  --line: #262b3b;
  --text: #f2f4f8;
  --muted: #a3a9ba;
  --accent: #00e0b8;
  --accent-2: #7c5cff;
  --wa: #25d366;
  --radius: 20px;
  --max: 1200px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(11, 13, 20, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-dragon { height: 60px; width: auto; display: block; filter: drop-shadow(0 4px 10px rgba(230, 30, 40, 0.35)); transition: transform 0.3s ease; }
.brand:hover .brand-dragon { transform: rotate(-6deg) scale(1.06); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-jansei {
  font: 800 1.95rem/1 "Cinzel", Georgia, serif; letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff3c4 0%, #f6d26b 38%, #c8901f 62%, #f3cf6a 82%, #a8741a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}
.brand-inc {
  margin-top: 4px; align-self: flex-end;
  font: 600 0.62rem/1 "Cinzel", Georgia, serif; letter-spacing: 0.42em; color: #d9b25a;
}
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07110f; font: 800 1.3rem var(--display);
}
.brand-name { font: 700 1.25rem var(--display); letter-spacing: -0.02em; }
.brand-name span { color: var(--muted); font-weight: 500; margin-left: 4px; font-size: 0.9rem; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 0.95rem; color: var(--muted); }
.nav a:hover { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 7px 12px; font: 600 0.8rem var(--body); cursor: pointer;
}
.lang:hover { border-color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-weight: 600; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.btn-wa { background: var(--wa); color: #04210f; }
.btn-wa:hover { background: #3ee07b; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(100vh - 84px); min-height: 620px; max-height: 1100px; background: #07080d; overflow: hidden; display: flex; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 8, 13, 0.6) 0%, rgba(7, 8, 13, 0.25) 40%, rgba(7, 8, 13, 0) 62%),
              linear-gradient(to top, rgba(7, 8, 13, 0.85) 0%, rgba(7, 8, 13, 0) 30%);
}
.hero-wrap {
  position: relative; flex: 1;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 18px;
  padding: 30px max(16px, calc((100vw - var(--max)) / 2)) 24px;
}
.hero-top { max-width: 640px; }
.hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 20ch; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7); }

/* productos que salen de las brasas */
.hero-products {
  align-self: center; align-content: center; overflow: hidden;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  width: min(50%, 600px); max-height: 100%;
}
.hero-products .product { opacity: 0; transform: translateY(18px) scale(0.6); filter: blur(10px) brightness(2.2) sepia(1) saturate(4) hue-rotate(-20deg); pointer-events: none; }
.hero.lit .hero-products .product, .hero.lit .see-all {
  opacity: 1; transform: none; filter: none; pointer-events: auto;
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.3), filter 1.1s ease;
  transition-delay: calc(var(--i) * 0.14s);
}
.hero.lit .hero-products .product { animation: ember 1.6s ease-out calc(var(--i) * 0.14s) both; }
@keyframes ember {
  0% { box-shadow: 0 0 60px 20px rgba(255, 120, 20, 0.9); }
  100% { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8); }
}
.see-all {
  grid-column: 1 / -1; justify-self: start;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  background: rgba(255, 150, 40, 0.16); border: 1px solid rgba(255, 160, 60, 0.6); color: #ffd7a8;
}
.see-all:hover { background: rgba(255, 150, 40, 0.3); }

.product {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: #fff; color: #10131c;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px #ff9a3c, 0 16px 40px -10px rgba(255, 120, 20, 0.6); }
.product-img { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 10px; background: #fff; }
.product-img { overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; display: block; min-height: 0; }
.product-name { padding: 8px 12px 0; font-weight: 600; font-size: 0.86rem; line-height: 1.25; }
.product-ask { padding: 4px 12px 10px; font-size: 0.78rem; font-weight: 600; color: #128c4a; display: inline-flex; align-items: center; gap: 5px; }
.hero-products .product-name { font-size: 0.74rem; padding: 6px 10px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-products .product-img { aspect-ratio: auto; height: clamp(84px, 14vh, 170px); padding: 8px; }
.hero-products .product-ask { display: none; }

.hero-embers { display: none; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }

.replay {
  position: absolute; right: 22px; top: 22px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.45); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); cursor: pointer;
  opacity: 0; transition: opacity 0.4s;
}
.hero.lit .replay { opacity: 0.8; }
.replay:hover { opacity: 1; }

.phone-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  padding: 18px 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(37, 211, 102, 0.16), rgba(16, 19, 28, 0.85) 55%);
  border: 1px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 30px 80px -30px rgba(37, 211, 102, 0.4);
  backdrop-filter: blur(10px);
}
.phone-label { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wa); }
.phone-big {
  display: block;
  font: 700 clamp(2.4rem, 5.4vw, 4.2rem) var(--display);
  letter-spacing: -0.03em; line-height: 1.05;
  white-space: nowrap;
}
.phone-big:hover { color: var(--wa); }
.phone-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.phone-hours { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- Cover art (shared by hero and grid) ---------- */
.cover {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  color: #fff;
}
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 80% 15%, rgba(255,255,255,0.35), transparent 40%),
              repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px);
}
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 60%);
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cover img.fit-contain { object-fit: contain; object-position: center 35%; padding: 14px; }
.cover:has(img:not(.fit-contain))::before { display: none; }
.cover:has(img:not(.fit-contain)) .cover-title, .cover:has(img:not(.fit-contain)) .cover-plat { display: none; }
.cover-title { font: 700 1.3rem/1.05 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.cover-plat { font-size: 0.75rem; opacity: 0.85; margin-top: 6px; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.marquee-track {
  display: flex; gap: 56px; width: max-content; padding: 18px 0;
  animation: scroll 32s linear infinite;
  font: 600 1.05rem var(--display); color: var(--muted); white-space: nowrap;
}
.marquee-track span::before { content: "◆"; color: var(--accent); margin-right: 56px; font-size: 0.7em; vertical-align: 2px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px max(16px, calc((100vw - var(--max)) / 2)); }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 22ch; }
.section-head .muted { margin: 12px 0 0; }

/* Games grid */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.game {
  display: block; border-radius: 16px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.game:hover { transform: translateY(-6px); border-color: var(--accent); }
.game .cover { aspect-ratio: 3 / 4; }
.game-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; font-size: 0.85rem; }
.game-date { color: var(--muted); }
.game-ask { color: var(--wa); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.tag {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px);
}
.tag-new { background: var(--accent); color: #04140f; }
.tag-preorder { background: #ffcc33; color: #2a1d00; }
.tag-best { background: #ff4d6d; color: #fff; }

/* News */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-item {
  padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.news-item:first-child { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: center;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.22), var(--card) 60%); }
.news-item time { font-size: 0.8rem; color: var(--accent); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.news-item h3 { font-size: 1.35rem; margin: 10px 0; }
.news-item:first-child h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.news-item p { margin: 0; color: var(--muted); }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.why-item h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.why-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.why-ico { width: 34px; height: 34px; color: var(--accent); }
.why-big {
  grid-column: span 4; display: grid; grid-template-columns: auto 1fr; column-gap: 32px; align-items: center;
  background: linear-gradient(120deg, rgba(0, 224, 184, 0.16), var(--card) 55%);
}
.why-num { grid-row: span 2; font: 700 clamp(4.5rem, 10vw, 7.5rem)/0.9 var(--display); letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-big h3 { font-size: 1.7rem; margin: 0 0 6px; }

/* Contact */
.contact-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; overflow: hidden;
  border-radius: 28px; border: 1px solid var(--line); background: var(--card);
}
.contact-main { padding: 48px; }
.contact-main h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.phone-big-2 { margin-top: 22px; color: var(--wa); }
.phone-big-2:hover { color: var(--text); }
.info { margin: 34px 0 0; display: grid; gap: 16px; }
.info div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.info dt { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 2px; }
.info dd { margin: 0; }
.map { min-height: 380px; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.6); }

/* Footer */
.footer { padding: 40px 16px 110px; text-align: center; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
.footer p { margin: 4px 0; }
.footer-small { font-size: 0.78rem; opacity: 0.7; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, 0.6);
  animation: pulse 2.6s ease-in-out infinite;
}
.wa-float .ico { width: 34px; height: 34px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-height: 760px) and (min-width: 721px) {
  .hero-products .product-img { height: 10vh; }
  .hero h1 { font-size: 1.9rem; }
}
@media (max-width: 1000px) {
  .hero-products { width: min(72%, 700px); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .why-big { grid-column: span 2; }
  .news { grid-template-columns: 1fr 1fr; }
  .news-item:first-child { grid-column: span 2; grid-template-columns: 1fr; gap: 0; }
  .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .btn-sm span { display: none; }
  .btn-sm { padding: 9px; }
  .brand-dragon { height: 40px; }
  .brand-jansei { font-size: 1.3rem; }
  .brand-inc { font-size: 0.52rem; }
  .hero { display: block; height: auto; min-height: 0; max-height: none; }
  .hero-video { position: relative; height: 56vh; min-height: 300px; object-position: 72% center; }
  .hero-shade { height: 56vh; min-height: 300px; background: linear-gradient(to bottom, rgba(7, 8, 13, 0) 60%, #07080d 100%); }
  .hero-wrap { padding: 0 16px 28px; margin-top: 16px; gap: 18px; }
  /* 3 productos encima del video, salen de las brasas */
  .hero-embers {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    position: absolute; z-index: 2; left: 12px; right: 12px;
    top: calc(max(56vh, 300px) - 128px);
  }
  .hero-embers .product { opacity: 0; transform: translateY(18px) scale(0.6); filter: blur(10px) brightness(2.2) sepia(1) saturate(4) hue-rotate(-20deg); pointer-events: none; border-radius: 12px; }
  .hero.lit .hero-embers .product {
    opacity: 1; transform: none; filter: none; pointer-events: auto;
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.3), filter 1.1s ease;
    transition-delay: calc(var(--i) * 0.16s);
    animation: ember 1.6s ease-out calc(var(--i) * 0.16s) both;
  }
  .hero-embers .product-img { height: 78px; aspect-ratio: auto; padding: 6px; }
  .hero-embers .product-name { font-size: 0.66rem; padding: 4px 7px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-embers .product-ask { display: none; }
  /* abajo se ven los siguientes (4, 5, 6) y el botón de ver todos */
  .hero-products .product:nth-child(-n+3) { display: none; }
  .hero-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-products .product-img { height: 78px; padding: 6px; }
  .hero-products .product-name { font-size: 0.66rem; padding: 4px 7px 6px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-products { width: 100%; order: 3; }
  .hero-wrap { display: flex; flex-direction: column; }
  .hero-top { order: 1; } .phone-card { order: 2; }
  .replay { top: 14px; right: 14px; }
  .phone-card { padding: 20px 18px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .phone-big { font-size: clamp(2rem, 10.5vw, 3rem); }
  .phone-actions .btn { flex: 1 1 100%; }
  .section { padding-block: 72px; }
  .games { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cover-title { font-size: 1.05rem; }
  .game-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .news, .why { grid-template-columns: 1fr; }
  .news-item:first-child, .why-big { grid-column: span 1; }
  .why-big { grid-template-columns: 1fr; }
  .contact-main { padding: 28px 20px; }
  .info div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .wa-float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
