/* ═══════════════════════════════════════════
   ALERIAN — Game Page Styles (Mejorado)
   Colores más vivos, diseño más moderno
   Sin frameworks
   ═══════════════════════════════════════════ */

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

:root {
  --bg: #0a0a0f;
  --bg-dark: #060609;
  --bg-card: #111118;
  --bg-card-hover: #18181f;
  --border: #1f1f2e;
  --border-accent: #2d2d42;
  --blood: #dc2626;
  --blood-dark: #991b1b;
  --blood-light: #f87171;
  --blood-glow: rgba(220, 38, 38, 0.3);
  --gold: #f59e0b;
  --gold-dim: #b45309;
  --gold-bright: #fbbf24;
  --silver: #94a3b8;
  --silver-light: #e2e8f0;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-accent: 'Crimson Text', Georgia, serif;
  --max-w: 900px;
  --max-w-narrow: 700px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); background: var(--bg); color: var(--text);
  line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: rgba(220,38,38,.4); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blood-dark); }
* { scrollbar-width: thin; scrollbar-color: var(--border-accent) var(--bg-dark); }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; }
h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem); color: var(--silver-light); letter-spacing: .02em;
  background: linear-gradient(135deg, var(--silver-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
h3 { font-size: clamp(.95rem, 2vw, 1.1rem); color: var(--silver-light); letter-spacing: .02em; margin-top: 1.75rem; margin-bottom: .75rem; }

/* ─── Layout ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--max-w-narrow); }
.divider { width: 6rem; height: 2px; margin: 1.25rem auto; background: linear-gradient(90deg, transparent, var(--blood), var(--gold), transparent); border-radius: 1px; }
.divider-sm { width: 4rem; height: 1px; margin: .75rem auto; background: linear-gradient(90deg, transparent, var(--blood), transparent); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; font-family: var(--font-heading);
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  border-radius: 4px; transition: all .3s var(--ease); cursor: pointer;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--blood), var(--blood-dark));
  color: #fff; border: 1px solid var(--blood);
  box-shadow: 0 2px 12px rgba(220,38,38,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(220,38,38,0.4);
  border-color: var(--blood-light);
}
.btn-arrow { transition: transform .3s var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--silver); border: 1px solid var(--border-accent); }
.btn-ghost:hover { border-color: var(--blood); color: var(--blood-light); background: rgba(220,38,38,0.05); transform: translateY(-2px); }
.cta-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ─── Sections ─── */
.section { padding: 6rem 0; position: relative; }
.section-dark {
  background: var(--bg-dark);
  background-image:
    radial-gradient(ellipse at 30% 50%, rgba(220,38,38,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(168,85,247,0.02) 0%, transparent 50%);
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  font-family: var(--font-heading); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .35em; color: var(--blood); margin-bottom: .5rem;
  text-shadow: 0 0 10px var(--blood-glow);
}
.section-desc { max-width: 32rem; margin: 1rem auto 0; font-size: .9rem; color: var(--text-muted); }

/* ─── Prose ─── */
.prose p { margin-bottom: 1.25rem; font-size: .92rem; color: var(--silver); line-height: 1.8; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--silver-light); font-weight: 600; }
.prose em { color: var(--text-muted); font-style: italic; }
.prose h3 { border-left: 3px solid var(--blood-dark); padding-left: 1rem; }

/* ─── Reveal ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

/* ─── Particle Canvas ─── */
#particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}


/* ═══════ NAVBAR ═══════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent; transition: all .4s var(--ease);
}
#navbar.scrolled {
  background: rgba(10,10,15,0.92); border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.6), 0 1px 0 var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 3.75rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  transition: opacity .3s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo-text {
  font-family: var(--font-heading); font-size: .85rem; font-weight: 700;
  letter-spacing: .08em; color: var(--gold);
  text-shadow: 0 0 10px rgba(245,158,11,0.2);
}
.nav-links { display: flex; gap: .15rem; }
.nav-links a {
  padding: .5rem .7rem; font-family: var(--font-heading); font-size: .7rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-dim); transition: all .3s var(--ease);
  border-radius: 4px;
}
.nav-links a:hover { color: var(--silver-light); background: rgba(255,255,255,0.03); }
.nav-link-accent {
  color: var(--blood-light) !important;
  background: rgba(220,38,38,0.08) !important;
  border: 1px solid rgba(220,38,38,0.15);
}
.nav-link-accent:hover {
  color: var(--gold-bright) !important;
  background: rgba(245,158,11,0.08) !important;
  border-color: rgba(245,158,11,0.2);
}

.menu-toggle {
  display: none; background: none; border: none; color: var(--silver);
  cursor: pointer; padding: .5rem; z-index: 110;
}
.menu-toggle:hover { color: #fff; }
.icon-close { display: none; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-logo-text { display: none; }
  .nav-links {
    position: fixed; top: 3.75rem; left: 0; right: 0; bottom: 0; max-height: calc(100vh - 3.75rem);
    background: rgba(10,10,15,0.98); overflow-y: auto;
    flex-direction: column; align-items: center; justify-content: flex-start; gap: 1.25rem;
    padding: 2rem 1.5rem; opacity: 0; pointer-events: none; transition: opacity .4s;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 99;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1rem; padding: 1rem 1.5rem; }
  #menu-toggle.active .icon-menu { display: none; }
  #menu-toggle.active .icon-close { display: block; }
}


/* ═══════ HERO ═══════ */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,15,.3) 0%, rgba(10,10,15,.6) 50%, var(--bg) 100%),
    radial-gradient(ellipse at center, transparent 20%, rgba(10,10,15,.5) 70%, rgba(10,10,15,.95) 100%);
}
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.3; z-index: 0;
  animation: glow-pulse 8s ease-in-out infinite alternate;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  top: 20%; left: 30%;
  background: radial-gradient(circle, rgba(220,38,38,0.15), transparent 70%);
}
@keyframes glow-pulse {
  0% { transform: scale(1); opacity: 0.2; }
  100% { transform: scale(1.2); opacity: 0.4; }
}

.hero-content {
  position: relative; z-index: 1; text-align: center;
  padding: 0 1.5rem; animation: hero-enter 1s var(--ease) out;
}
@keyframes hero-enter { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-tagline {
  font-family: var(--font-heading); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .35em; color: var(--text-dim); margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(3rem, 10vw, 6rem); letter-spacing: .12em;
  color: #fff;
  text-shadow:
    0 0 40px rgba(220,38,38,.5),
    0 0 80px rgba(220,38,38,.2),
    0 4px 12px rgba(0,0,0,.9);
  margin-bottom: .75rem;
  animation: title-pulse 4s ease-in-out infinite alternate;
}
@keyframes title-pulse {
  0% { text-shadow: 0 0 40px rgba(220,38,38,.5), 0 0 80px rgba(220,38,38,.2), 0 4px 12px rgba(0,0,0,.9); }
  100% { text-shadow: 0 0 60px rgba(220,38,38,.7), 0 0 120px rgba(220,38,38,.3), 0 4px 12px rgba(0,0,0,.9); }
}
.hero-genre {
  font-family: var(--font-heading); font-size: .85rem; text-transform: uppercase;
  letter-spacing: .2em; color: var(--blood-light); margin-bottom: 0;
}
.hero-sep {
  display: inline-block; margin: 0 .3em;
  color: var(--gold-dim);
}
.hero-desc {
  font-size: .95rem; color: var(--text-muted); margin-top: .5rem;
  font-family: var(--font-accent); font-style: italic; line-height: 1.8;
}

.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-arrow {
  width: 30px; height: 40px; position: relative;
  opacity: 1; /* Visible por defecto, JavaScript controla basado en altura */
  transition: opacity 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}
.arrow-icon {
  width: 30px; height: 30px;
  color: var(--text-dim);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: arrow-bounce 2s ease-in-out infinite;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); }
}


/* ═══════ MECHANICS GRID ═══════ */
.mechanics-grid { display: flex; flex-direction: column; gap: 1.5rem; }

.mechanic-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
  padding: 2rem; position: relative; overflow: hidden;
  transition: all .4s var(--ease);
}
.mechanic-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--blood), var(--gold), transparent);
  opacity: .3; transition: opacity .4s;
}
.mechanic-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(220,38,38,0.04), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.mechanic-card:hover {
  border-color: var(--blood-dark);
  transform: translateX(4px);
  box-shadow: -4px 4px 20px rgba(0,0,0,.3), 0 0 12px var(--blood-glow);
}
.mechanic-card:hover::before { opacity: .8; }
.mechanic-card:hover::after { opacity: 1; }

.mechanic-number {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 800;
  color: var(--blood); opacity: 0.1;
  position: absolute; top: 1rem; right: 1.5rem;
  line-height: 1;
}
.mechanic-card h3 {
  border: none; padding: 0; margin-top: 0; margin-bottom: 1rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--silver-light);
  position: relative;
}
.mechanic-card p {
  font-size: .88rem; color: var(--silver); line-height: 1.8; margin-bottom: 1rem;
  position: relative;
}
.mechanic-card p:last-child { margin-bottom: 0; }
.mechanic-card strong { color: var(--silver-light); }


/* ═══════ SYSTEMS GRID ═══════ */
.systems-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 680px) { .systems-grid { grid-template-columns: 1fr; } }

.system-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
  padding: 1.75rem; transition: all .4s var(--ease);
  position: relative; overflow: hidden;
}
.system-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(220,38,38,0.04), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.system-card:hover {
  border-color: var(--blood-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 16px var(--blood-glow);
}
.system-card:hover::before { opacity: 1; }

.system-icon {
  color: var(--gold-dim); margin-bottom: .75rem;
  transition: all .4s var(--ease);
}
.system-card:hover .system-icon { color: var(--gold); transform: scale(1.1); }
.system-card h3 {
  border: none; padding: 0; margin-top: 0; margin-bottom: .75rem;
  font-size: 1rem; color: var(--silver-light);
  position: relative;
}
.system-card p {
  font-size: .85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: .75rem;
  position: relative;
}
.system-card p:last-child { margin-bottom: 0; }
.system-card strong { color: var(--silver); }


/* ═══════ CTA SECTION ═══════ */
.cta-section { text-align: center; }
.cta-content h2 { margin-bottom: .5rem; }
.cta-desc { font-size: .9rem; color: var(--text-muted); max-width: 28rem; margin: 0 auto; font-family: var(--font-accent); font-style: italic; line-height: 1.7; }


/* ═══════ FOOTER ═══════ */
footer {
  border-top: 1px solid var(--border); background: var(--bg-dark); padding: 2rem 0;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-heading); font-size: .75rem;
  color: var(--gold-dim); letter-spacing: .08em; text-transform: uppercase;
}
.footer-link {
  font-family: var(--font-heading); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); transition: all .3s;
}
.footer-link:hover { color: var(--blood-light); transform: translateX(-2px); }
footer p { font-size: .7rem; color: var(--text-dim); letter-spacing: .03em; }


/* ═══════ RESPONSIVE MEDIA QUERIES ESSENTIAL ═══════ */

/* Tablets & Mobile (768px) */
@media (max-width: 768px) {
  :root { --max-w: 700px; --max-w-narrow: 600px; }
  
  /* Content */
  h2 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
  h3 { font-size: clamp(.85rem, 1.5vw, 1rem); }
  section { padding: 2rem 1.25rem; }
  
  /* Mechanics & Systems */
  .hero { min-height: 80vh; }
  .hero-content { padding: 0 1rem; }
  .hero-glow-1 { width: 300px; height: 300px; }
  .mechanics-grid { gap: 1rem; }
  .systems-grid { grid-template-columns: 1fr; gap: .75rem; }
  
  /* Cards */
  .mechanic-card { padding: 1.5rem; }
  .system-card { padding: 1.5rem; }
  
  /* Scroll indicator */
  .scroll-indicator { padding-top: 1.5rem; }
  .scroll-text { font-size: .75rem; }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
  html { font-size: 14px; }
  :root { --max-w: 100%; --max-w-narrow: 100%; }
  
  /* Typography */
  h2 { font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: -.01em; }
  h3 { font-size: clamp(.75rem, 1.2vw, .9rem); }
  p { font-size: .85rem; line-height: 1.6; }
  
  /* Spacing */
  body { padding: 0; margin: 0; }
  section { padding: 1.5rem .75rem; gap: .75rem; }
  
  /* Navigation */
  .navbar { padding: .6rem .75rem; position: sticky; top: 0; z-index: 100; }
  .nav-logo { gap: .25rem; }
  .nav-logo-icon { width: 28px; height: 28px; }
  .nav-links { padding: 1.5rem 1rem; }
  .nav-links a { font-size: .95rem; padding: .75rem 1rem; }
  
  /* Hero */
  .hero { min-height: 70vh; padding: .75rem; }
  .hero-content { animation: none; }
  .hero-title { font-size: 1.4rem; }
  .hero-desc { font-size: .8rem; }
  
  /* Grids & Layout */
  .mechanic-card { padding: 1rem; }
  .mechanic-card h3 { font-size: .8rem; margin-bottom: .4rem; }
  .mechanic-card p { font-size: .8rem; margin-bottom: .5rem; }
  .system-card { padding: 1rem; border-radius: 4px; }
  .system-card h3 { font-size: .85rem; margin-bottom: .4rem; }
  .system-card p { font-size: .8rem; }
  
  /* CTA */
  .cta-section { padding: 1.5rem .75rem; }
  .cta-content h2 { margin-bottom: .3rem; }
  .cta-desc { font-size: .8rem; margin-top: .75rem; }
  
  /* Buttons */
  .btn { padding: .6rem 1rem; font-size: .8rem; }
  
  /* Footer */
  footer { padding: 1.5rem 0; }
  .footer-brand { font-size: .65rem; }
  .footer-link { font-size: .65rem; }
  footer p { font-size: .65rem; }
}

/* Large Tablets & Small Desktops (1024px) */
@media (max-width: 1024px) {
  :root { --max-w: 900px; }
  section { padding: 3rem 1.5rem; }
  h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
  .section-head { gap: 1rem; }
  .vision-grid { grid-template-columns: 1fr; gap: 1rem; }
  .mechanic-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* Tablets (900px) */
@media (max-width: 900px) {
  :root { --max-w: 800px; }
  h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
  h3 { font-size: clamp(.9rem, 1.8vw, 1.1rem); }
  section { padding: 2.5rem 1.5rem; }
  .hero { min-height: 85vh; }
  .hero-content { padding: 0 1.5rem; }
  .mechanic-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .systems-grid { gap: 1rem; }
}


