/* ==========================================================================
   LA MANCHA — landing page
   ========================================================================== */

:root {
  --bg-dark: #0b0714;
  --bg-panel: #150f26;
  --bg-panel-2: #1c1332;
  --neon-pink: #ff3fa8;
  --neon-purple: #9b5cff;
  --neon-cyan: #3ddbff;
  --neon-yellow: #ffd23f;
  --text-light: #f5f0ff;
  --text-dim: #b6a9d1;
  --border-glow: rgba(155, 92, 255, 0.35);

  --font-display: "Titan One", system-ui, sans-serif;
  --font-body: "Baloo 2", system-ui, sans-serif;

  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.3px;
}

h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h4 { font-size: 1.15rem; color: var(--neon-cyan); }

p { color: var(--text-dim); margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 90px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-yellow);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-yellow);
  box-shadow: 0 0 8px var(--neon-yellow);
}

.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.bg-tile {
  background-image: url("../assets/img/bg-tile.png");
  background-repeat: repeat;
  background-size: 340px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-neon {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
  color: #fff;
  padding: 10px 22px;
  font-size: 0.85rem;
  box-shadow: 0 0 16px rgba(255, 63, 168, 0.45);
}
.btn-neon:hover { transform: translateY(-1px); box-shadow: 0 0 22px rgba(255, 63, 168, 0.65); }
.btn-small { white-space: nowrap; }

.btn-cta {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan));
  background-size: 200% auto;
  color: #fff;
  padding: 20px 44px;
  font-size: 1.25rem;
  box-shadow: 0 0 30px rgba(155, 92, 255, 0.55), 0 0 60px rgba(255, 63, 168, 0.25);
  animation: sheen 5s linear infinite;
}
.btn-cta svg { width: 26px; height: 26px; }
.btn-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 40px rgba(155, 92, 255, 0.75), 0 0 80px rgba(255, 63, 168, 0.4); }

@keyframes sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 7, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
}

.brand img { height: 34px; width: auto; }

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
}
.main-nav a { color: var(--text-dim); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--neon-cyan); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span {
  display: block; width: 22px; height: 2px; margin: 5px 0;
  background: var(--text-light);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-video-wrap {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 420px;
  max-height: 760px;
  overflow: hidden;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.55) saturate(1.1);
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to top, rgba(36, 22, 69, 0.85), transparent);
  pointer-events: none;
}
.hero-copy h1 {
  margin: 0;
  color: var(--text-light);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  text-shadow: 0 0 30px rgba(155, 92, 255, 0.5);
}
.hero-copy p {
  margin: 0.35rem 0 0;
  color: var(--text-light);
  opacity: 0.9;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
}

/* ---------------- Cómo se juega ---------------- */

.como-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.como-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.como-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-light);
}
.como-list svg {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
  color: var(--neon-cyan);
}

.como-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 40px rgba(155, 92, 255, 0.2);
}
.como-media img { width: 100%; }

/* ---------------- Wave panel (alternating bg) ---------------- */

.wave-panel {
  background: linear-gradient(180deg, transparent, var(--bg-panel) 8%, var(--bg-panel) 92%, transparent);
}

/* ---------------- Modos grid ---------------- */

.modos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.modo-card {
  background: var(--bg-panel-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.modo-card:hover { transform: translateY(-4px); border-color: var(--border-glow); }
.modo-ic { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.modo-card p { font-size: 0.92rem; margin: 0; }

/* ---------------- Capturas carousel ---------------- */

.capturas-section { padding: 90px 0 70px; text-align: center; }

.capturas-carousel {
  margin-top: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.capturas-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scroll-left 42s linear infinite;
}
.capturas-track img {
  height: 220px;
  width: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------------- Mapas grid ---------------- */

.mapas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mapa-card {
  background: var(--bg-panel-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.mapa-card img { width: 100%; height: 160px; object-fit: cover; }
.mapa-copy { padding: 18px 20px; }
.mapa-copy p { font-size: 0.88rem; margin: 0; }

.mapa-card--text {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 63, 168, 0.12), rgba(61, 219, 255, 0.1));
}

/* ---------------- Controles ---------------- */

.controles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.controles-table { width: 100%; border-collapse: collapse; }
.controles-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.92rem;
}
.controles-table td:first-child { color: var(--text-light); }
.controles-table td:last-child { text-align: right; }

.key {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-glow);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--neon-cyan);
}

/* ---------------- Jugar con amigos ---------------- */

.amigos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.amigo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 22px;
}
.amigo-card p { font-size: 0.88rem; margin: 0; }
.amigos-note { margin-top: 26px; text-align: center; font-size: 0.9rem; }

/* ---------------- CTA final ---------------- */

.cta-final {
  text-align: center;
  padding: 70px 0 90px;
}
.cta-logo {
  width: min(320px, 70vw);
  margin: 0 auto 30px;
  filter: drop-shadow(0 0 30px rgba(155, 92, 255, 0.4));
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 60px 0 26px;
  background: var(--bg-panel);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img { height: 30px; margin-bottom: 14px; }
.site-footer p { font-size: 0.88rem; }

.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  color: var(--text-light);
}
.social-row svg { width: 18px; height: 18px; }
.social-row a:hover {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  transform: translateY(-2px);
}

.site-footer h5 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { font-size: 0.9rem; color: var(--text-dim); }
.site-footer ul a:hover { color: var(--neon-cyan); }
.footer-credits li { font-size: 0.85rem; color: var(--text-dim); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-bottom .link { color: var(--neon-cyan); }
.footer-bottom .link:hover { text-decoration: underline; }

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 7, 20, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .burger { display: block; }
  .como-grid, .controles-grid { grid-template-columns: 1fr; gap: 36px; }
  .modos-grid { grid-template-columns: repeat(2, 1fr); }
  .mapas-grid { grid-template-columns: repeat(2, 1fr); }
  .amigos-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .modos-grid, .mapas-grid, .amigos-grid { grid-template-columns: 1fr; }
  .btn-cta { padding: 16px 30px; font-size: 1.05rem; }
  .header-actions .btn-small { padding: 8px 14px; font-size: 0.78rem; }
}

/* ===================== JUGAR (embed) ===================== */
.jugar-section { padding: 70px 0 90px; }

.game-embed-wrap {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 1280 / 740;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(155, 92, 255, 0.25);
  background: var(--bg-panel);
}

.game-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.jugar-note { text-align: center; margin-top: 18px; }

/* ===================== CONTACTO ===================== */
.contacto-row { justify-content: center; margin-top: 8px; }
