/* ══════════════════════════════════════════════════════
   DEMO FIVEM — style.css
   Diseño inspirado en Rockstar / GTA VI — cinematográfico
══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ── Reset & base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:        #E8A020;
  --accent-dark:   #B07A10;
  --accent-glow:   rgba(232, 160, 32, 0.35);
  --bg:            #080808;
  --bg-2:          #0e0e0e;
  --bg-3:          #141414;
  --surface:       rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border:        rgba(255,255,255,0.08);
  --btn-radius:    2px;
  --text:          #f0ece4;
  --text-muted:    rgba(240,236,228,0.5);
  --text-dim:      rgba(240,236,228,0.25);
  --btn-text:      #000000;
  --online:        #22c55e;
  --offline:       #ef4444;
  --font-display:  'Bebas Neue', 'Impact', sans-serif;
  --font-body:     'Rajdhani', sans-serif;
  --font-mono:     'Share Tech Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ── Noise overlay ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ── Scroll bar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 2px; }

/* ══════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

.navbar.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-logo-placeholder {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--btn-text);
}

.nav-logo-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.nav-logo-img .hero-logo {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 6px;
  filter: none;
  display: block;
}

.nav-logo-img .hero-logo-placeholder {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 6px;
  font-size: 0.75rem;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--offline);
  animation: pulse-dot 2s infinite;
}

.status-dot.online {
  background: var(--online);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50% { opacity: 0.6; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  border: none;
  border-radius: var(--btn-radius, 2px);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.btn-accent {
  background: var(--accent);
  color: var(--btn-text);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Button style variants (set via body[data-btn-style]) ── */
/* OUTLINE */
body[data-btn-style="outline"] .btn-accent {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
body[data-btn-style="outline"] .btn-accent:hover {
  background: var(--accent);
  color: var(--btn-text);
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: translateY(-1px);
}

/* GRADIENT */
body[data-btn-style="gradient"] .btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--btn-text);
}
body[data-btn-style="gradient"] .btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* GLOW */
body[data-btn-style="glow"] .btn-accent {
  background: var(--accent);
  color: var(--btn-text);
  box-shadow: 0 0 18px var(--accent-glow), 0 0 36px var(--accent-glow);
}
body[data-btn-style="glow"] .btn-accent:hover {
  box-shadow: 0 0 28px var(--accent-glow), 0 0 56px var(--accent-glow);
  transform: translateY(-1px);
  background: var(--accent-dark);
}

/* NEON */
body[data-btn-style="neon"] .btn-accent {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
  box-shadow: 0 0 10px var(--accent-glow), inset 0 0 10px rgba(232,160,32,0.07);
}
body[data-btn-style="neon"] .btn-accent:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow), inset 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

/* GLASS */
body[data-btn-style="glass"] .btn-accent {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
}
body[data-btn-style="glass"] .btn-accent:hover {
  background: rgba(255,255,255,0.13);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
  transition: transform 0.1s linear;
  will-change: transform;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-bg-blur {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%,
    rgba(232,160,32,0.12) 0%,
    rgba(8,8,8,0) 70%),
    linear-gradient(180deg, #0a0508 0%, #080808 100%);
}

/* City silhouette SVG background fallback */
.hero-bg-svg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0.12;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.2) 0%,
    rgba(8,8,8,0) 30%,
    rgba(8,8,8,0.1) 50%,
    rgba(8,8,8,0.85) 80%,
    rgba(8,8,8,1) 100%
  );
}

.hero-gradient-side {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,8,8,0.5) 0%,
    rgba(8,8,8,0) 30%,
    rgba(8,8,8,0) 70%,
    rgba(8,8,8,0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-logo {
  margin: 0 auto 2rem;
  width: 100px; height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 40px var(--accent-glow));
}

.hero-logo-placeholder {
  width: 100px; height: 100px;
  margin: 0 auto 2rem;
  background: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: #000;
  box-shadow: 0 0 60px var(--accent-glow);
}

.hero-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 20px var(--accent-glow);
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--hero-title-size, clamp(3.5rem, 10vw, 9rem));
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hero-title-color, var(--text));
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 60px rgba(0,0,0,0.8);
}

.hero-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  backdrop-filter: blur(8px);
}

.status-badge.online {
  border-color: rgba(34,197,94,0.4);
  color: var(--online);
}

.status-badge.offline {
  border-color: rgba(239,68,68,0.3);
  color: var(--offline);
}

.players-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  padding: 0.5rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}

.players-badge span.count {
  color: var(--accent);
  font-size: 1rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 0.9rem 2.8rem;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  opacity: 0.4;
  animation: scroll-bounce 2.5s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════════════════════
   SECTION WRAPPERS
══════════════════════════════════════════════════════ */
section { position: relative; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--accent-dark), transparent);
  opacity: 0.4;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════
   SERVER INFO STRIP
══════════════════════════════════════════════════════ */
.server-info {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.info-cell {
  text-align: center;
  padding: 2rem;
  border-right: 1px solid var(--border);
  position: relative;
}

.info-cell:last-child { border-right: none; }

.info-cell::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s, width 0.3s;
}

.info-cell:hover::before {
  opacity: 0.6;
  width: 60%;
}

.info-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   DESCRIPTION
══════════════════════════════════════════════════════ */
.description-section {
  padding: 6rem 0;
  background: var(--bg);
}

.description-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.description-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.description-visual {
  position: relative;
}

.desc-stat-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.desc-stat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.7;
}

.desc-stat-card:hover {
  border-color: rgba(232,160,32,0.2);
}

.desc-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.desc-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════════════
   FEATURED ITEMS / STORE
══════════════════════════════════════════════════════ */
.store-section {
  padding: 6rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.store-header {
  margin-bottom: 3rem;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.item-card {
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
}

.item-card:hover { background: var(--bg-3); }

.item-img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

.item-img-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.item-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.4;
}

.item-img-placeholder svg {
  width: 48px; height: 48px;
  opacity: 0.2;
  position: relative;
}

.item-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1.2rem;
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.item-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  transition: all 0.2s;
}

.item-card:hover .item-btn {
  color: var(--accent);
  border-color: var(--accent-dark);
}

/* ══════════════════════════════════════════════════════
   DONATION CTA
══════════════════════════════════════════════════════ */
.cta-section {
  padding: 8rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.cta-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 18rem);
  color: rgba(255,255,255,0.02);
  white-space: nowrap;
  letter-spacing: 0.05em;
  pointer-events: none;
  user-select: none;
}

.cta-content {
  text-align: center;
  position: relative;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 1.5rem auto 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Discord button */
.btn-discord {
  background: #5865F2;
  color: #fff;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(88,101,242,0.35);
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.footer-logo-placeholder {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #000;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
}

.footer-logo-wrap .hero-logo {
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 4px;
}

.footer-logo-wrap .hero-logo-placeholder {
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 4px;
  font-size: 0.7rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-muted);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Powered by banner */
.powered-by {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 0.75rem 3rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.powered-by a {
  color: var(--accent-dark);
  transition: color 0.2s;
}

.powered-by a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════
   DISCORD SECTION
══════════════════════════════════════════════════════ */
.discord-section {
  padding: 6rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.discord-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: center;
}

.discord-text .section-label { margin-bottom: 0.75rem; }

.discord-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 1.25rem 0 2.5rem;
  max-width: 460px;
}

.btn-discord-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #5865F2;
  color: #fff;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-discord-large:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(88,101,242,0.4);
}

.btn-discord-large svg { flex-shrink: 0; }

/* Widget container */
.discord-widget-wrap {
  position: relative;
}

/* ── Custom Discord card ─────────────────────────────── */
.discord-card {
  background: #1e1f22;
  border: 1px solid rgba(88,101,242,0.2);
  padding: 0;
  overflow: hidden;
  position: relative;
}

.discord-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #5865F2, #7289da, #5865F2);
  background-size: 200% 100%;
  animation: discord-shimmer 3s linear infinite;
}

@keyframes discord-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.discord-card-banner {
  height: 80px;
  background: linear-gradient(135deg, #23272a 0%, #2c2f33 50%, #1a1c1e 100%);
  position: relative;
  overflow: hidden;
}

.discord-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(88,101,242,0.3) 0%, transparent 70%);
}

.discord-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.discord-card-header {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-top: -32px;
  margin-bottom: 1.25rem;
}

.discord-server-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #5865F2;
  border: 4px solid #1e1f22;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.discord-server-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.discord-server-icon svg {
  width: 32px; height: 32px;
  fill: #fff;
}

.discord-server-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
  padding-bottom: 0.25rem;
}

.discord-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.discord-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

.discord-stat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.discord-stat-dot.online  { background: #23a55a; box-shadow: 0 0 6px rgba(35,165,90,0.6); }
.discord-stat-dot.members { background: rgba(255,255,255,0.25); }

.discord-stat strong {
  color: #fff;
  font-weight: normal;
}

.discord-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  max-height: 160px;
  overflow: hidden;
}

.discord-member {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.discord-member-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #36393f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  overflow: hidden;
}

.discord-member-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.discord-member-info { flex: 1; min-width: 0; }

.discord-member-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-member-status {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
}

.discord-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: #5865F2;
  color: #fff;
  padding: 0.85rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.discord-join-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(88,101,242,0.4);
}

/* Widget deshabilitado — instrucciones */
.discord-widget-disabled {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid rgba(88,101,242,0.2);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.discord-widget-disabled svg {
  fill: #5865F2;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.dwd-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0;
}

.dwd-steps {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0.25rem 0 0;
}

.dwd-list {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  line-height: 2;
  margin: 0;
}

.dwd-list strong {
  color: #5865F2;
  font-weight: 600;
}

/* Placeholder when no server ID */
.discord-widget-placeholder {
  width: 100%;
  min-height: 300px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.discord-widget-placeholder svg {
  opacity: 0.15;
  width: 56px; height: 56px;
}

.discord-widget-placeholder p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
  line-height: 2;
  margin: 0;
}

@media (max-width: 900px) {
  .discord-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ══════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════ */
.features-section {
  padding: 6rem 0;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-3);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  transform-origin: left;
}

.feature-card:hover { background: var(--bg-2); }
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
  filter: grayscale(0.2);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════════ */
.gallery-section {
  padding: 6rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 3px;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-3);
}

.gallery-item:first-child {
  grid-row: 1 / 3;
}

.gallery-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.5rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-zoom-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* placeholder when no image */
.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #111 0%, #1c1c1c 50%, #111 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.gallery-placeholder svg {
  opacity: 0.15;
  width: 40px; height: 40px;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

#lightbox.open { display: flex; }

#lightboxImg {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
  animation: lb-in 0.3s cubic-bezier(0.16,1,0.3,1);
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

#lightboxClose {
  position: fixed;
  top: 1.5rem; right: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 9001;
}

#lightboxClose:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════
   CINEMATIC DIVIDER
══════════════════════════════════════════════════════ */
.divider-section {
  position: relative;
  height: 55vh;
  min-height: 360px;
  overflow: hidden;
}

.divider-bg {
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  background-color: #0a0a0a;
  will-change: transform;
}

/* gradient placeholder if no image */
.divider-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%,
    rgba(232,160,32,0.1) 0%,
    rgba(8,8,8,0) 70%);
}

.divider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
}

.divider-lines {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-dark), transparent);
  opacity: 0.4;
}

.divider-lines-bottom {
  top: auto; bottom: 0;
}

.divider-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 2;
}

.divider-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.divider-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.9);
}

.divider-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ══════════════════════════════════════════════════════
   FADE IN ANIMATION
══════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .navbar { padding: 1.25rem 1.5rem; }
  .navbar.scrolled { padding: 0.9rem 1.5rem; }
  .section-inner { padding: 0 1.5rem; }

  .description-layout { grid-template-columns: 1fr; gap: 3rem; }
  .info-grid { grid-template-columns: 1fr; }
  .info-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .info-cell:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card::after { display: none; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gallery-item:first-child { grid-row: 1 / 2; grid-column: 1 / 3; }
}

@media (max-width: 600px) {
  .hero { padding-bottom: 6rem; }
  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
  .nav-status { display: none; }
  .items-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 200px);
  }
  .gallery-item:first-child { grid-column: 1; grid-row: 1; }
}

/* ══════════════════════════════════════════════════════
   PREMIUM UPGRADES
══════════════════════════════════════════════════════ */

/* ── Hero particles canvas ───────────────────────────── */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.45;
}

/* ── Section watermark numbers ───────────────────────── */
.section-num {
  position: absolute;
  right: 0;
  top: -1rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 14rem);
  line-height: 1;
  color: var(--text);
  opacity: 0.028;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
  z-index: 0;
}

/* ── Feature card upgrades ───────────────────────────── */
.feature-card {
  transition: background 0.3s, transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}

.feature-card:hover {
  background: var(--bg-2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,160,32,0.12);
  z-index: 2;
}

/* Shimmer sweep on hover (separate from ::after accent line) */
.feature-card .shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255,255,255,0.045) 50%,
    transparent 80%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: background-position 0.7s ease;
  pointer-events: none;
}

.feature-card:hover .shimmer {
  background-position: -100% 0;
}

/* Feature icon animation on hover */
.feature-card:hover .feature-icon {
  filter: drop-shadow(0 0 12px var(--accent-glow));
  transform: scale(1.1);
  transition: filter 0.3s, transform 0.3s;
}

/* ── Store item card upgrades ─────────────────────────── */
.item-card {
  transition: background 0.25s, transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}

.item-card:hover {
  background: var(--bg-3);
  transform: perspective(800px) translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,160,32,0.1);
  z-index: 2;
}

.item-card:hover .item-btn {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Section accent top borders ───────────────────────── */
.features-section,
.gallery-section,
.discord-section,
.store-section {
  border-top: 1px solid transparent;
  background-clip: padding-box;
}

.features-section::before,
.gallery-section::before,
.discord-section::before,
.store-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-dark) 20%,
    var(--accent) 50%,
    var(--accent-dark) 80%,
    transparent 100%
  );
  opacity: 0.35;
}

/* ── Background accent orbs on sections ──────────────── */
.features-section {
  overflow: hidden;
}
.features-section::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
}
.features-section .section-inner { position: relative; z-index: 1; }

.gallery-section {
  overflow: hidden;
}
.gallery-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
}
.gallery-section .section-inner { position: relative; z-index: 1; }

/* ── Thin horizontal accent line below section label ─── */
.section-label {
  position: relative;
}

/* ══════════════════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, [data-href], .item-card { cursor: none; }
}

#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.25s cubic-bezier(0.16,1,0.3,1),
              height 0.25s cubic-bezier(0.16,1,0.3,1),
              background 0.25s;
  mix-blend-mode: difference;
  will-change: transform, top, left;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(232,160,32,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: top 0.12s ease, left 0.12s ease,
              width 0.3s cubic-bezier(0.16,1,0.3,1),
              height 0.3s cubic-bezier(0.16,1,0.3,1),
              opacity 0.3s;
  will-change: top, left;
}

#cursor.hover {
  width: 6px; height: 6px;
  background: #fff;
}

#cursor-ring.hover {
  width: 56px; height: 56px;
  opacity: 0.4;
}

/* ══════════════════════════════════════════════════════
   CINEMATIC INTRO
══════════════════════════════════════════════════════ */
#cinematic-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
}

.intro-bar {
  position: absolute;
  left: 0; right: 0;
  height: 14vh;
  background: #000;
  transition: height 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}

.intro-bar-top    { top: 0; }
.intro-bar-bottom { bottom: 0; }

.intro-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.intro-title-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 6rem);
  letter-spacing: 0.2em;
  color: var(--text);
  text-transform: uppercase;
}

.intro-title-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: var(--accent);
  text-transform: uppercase;
}

.intro-progress {
  position: absolute;
  bottom: 15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.intro-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 1.8s cubic-bezier(0.16,1,0.3,1);
}

/* intro done — fade out entire overlay */
#cinematic-intro.done {
  opacity: 0;
  transition: opacity 0.7s ease 0.2s;
  pointer-events: none;
}

/* page hidden during intro */
body.intro-playing > *:not(#cinematic-intro):not(#cursor):not(#cursor-ring) {
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.intro-done > *:not(#cinematic-intro):not(#cursor):not(#cursor-ring) {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════
   SPLIT TEXT — hero title
══════════════════════════════════════════════════════ */
.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%) skewY(6deg);
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
  will-change: transform, opacity;
}

.hero-title.chars-visible .char {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════════
   CLIP-PATH SECTION REVEAL
══════════════════════════════════════════════════════ */
.reveal-section {
  clip-path: inset(6% 0 6% 0);
  opacity: 0;
  transition: clip-path 0.9s cubic-bezier(0.16,1,0.3,1),
              opacity 0.6s ease;
}

.reveal-section.visible {
  clip-path: inset(0% 0 0% 0);
  opacity: 1;
}

/* ══════════════════════════════════════════════════════
   MARQUEE — infinite horizontal text
══════════════════════════════════════════════════════ */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  background: var(--bg-2);
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.marquee-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════
   COUNTER ANIMATION
══════════════════════════════════════════════════════ */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════
   GLITCH on hero title (occasional)
══════════════════════════════════════════════════════ */
@keyframes glitch-1 {
  0%   { clip-path: inset(20% 0 60% 0); transform: translateX(-4px); }
  20%  { clip-path: inset(60% 0 10% 0); transform: translateX(4px); }
  40%  { clip-path: inset(10% 0 80% 0); transform: translateX(-2px); }
  60%  { clip-path: inset(80% 0 5%  0); transform: translateX(2px); }
  80%  { clip-path: inset(40% 0 40% 0); transform: translateX(-4px); }
  100% { clip-path: inset(20% 0 60% 0); transform: translateX(0); }
}

@keyframes glitch-2 {
  0%   { clip-path: inset(50% 0 30% 0); transform: translateX(4px); color: var(--accent); }
  33%  { clip-path: inset(10% 0 70% 0); transform: translateX(-4px); color: #fff; }
  66%  { clip-path: inset(70% 0 10% 0); transform: translateX(3px); color: var(--accent); }
  100% { clip-path: inset(50% 0 30% 0); transform: translateX(0); }
}

.hero-title.glitching::before,
.hero-title.glitching::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.hero-title {
  position: relative;
}

.hero-title.glitching::before {
  animation: glitch-1 0.12s steps(1) forwards;
  color: rgba(232,160,32,0.8);
}

.hero-title.glitching::after {
  animation: glitch-2 0.12s steps(1) forwards;
  color: rgba(255,255,255,0.6);
}

/* ══════════════════════════════════════════════════════
   REDUCED MOTION overrides
══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  #cinematic-intro { display: none; }
  .marquee-track { animation: none; }
  .hero-title .char { opacity: 1; transform: none; }
  .reveal-section { clip-path: none; opacity: 1; }
  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ══════════════════════════════════════════════════════
   STREAMERS SECTION
══════════════════════════════════════════════════════ */
.streamers-section {
  padding: 6rem 0;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.streamers-live {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.streamer-live-embed {
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #000;
}

.streamer-live-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.streamer-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ef4444;
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

.streamer-live-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.5s infinite;
}

.streamer-live-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text);
}

.streamer-live-viewers {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.streamer-live-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.streamers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.streamer-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.streamer-card:hover {
  border-color: var(--accent-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.streamer-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--border);
  display: block;
}

.streamer-avatar-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--border);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.streamer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.streamer-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.streamer-platform.twitch {
  background: rgba(145, 70, 255, 0.2);
  color: #bf94ff;
}

.streamer-platform.kick {
  background: rgba(83, 252, 24, 0.15);
  color: #53fc18;
}

.streamer-offline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

.streamer-live-title {
  padding: 0.6rem 1.5rem;
  background: var(--bg-2);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  border-top: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Streamer Tabs (switch between live streams) ───── */
.streamer-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.streamer-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  color: var(--text-muted);
}

.streamer-tab:hover {
  background: rgba(255,255,255,0.03);
}

.streamer-tab.active {
  background: var(--bg-3);
  color: var(--text);
}

.streamer-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

.streamer-tab-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239,68,68,0.5);
  flex-shrink: 0;
  animation: pulse-dot 1.5s infinite;
}

.streamer-tab-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent);
  overflow: hidden;
  flex-shrink: 0;
}

.streamer-tab-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.streamer-tab-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.streamer-tab-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.streamer-tab-meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.streamer-platform-mini {
  font-size: 0.55rem;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 600;
}

.streamer-platform-mini.twitch {
  background: rgba(145, 70, 255, 0.2);
  color: #bf94ff;
}

.streamer-platform-mini.kick {
  background: rgba(83, 252, 24, 0.15);
  color: #53fc18;
}

@media (max-width: 600px) {
  .streamer-tabs { flex-direction: column; }
  .streamer-tab-info { display: none; }
  .streamer-tab { justify-content: center; padding: 10px; }
}

/* ══════════════════════════════════════════════════════
   INSTAGRAM FEED SECTION
══════════════════════════════════════════════════════ */
.instagram-section {
  padding: 6rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.instagram-grid {
  margin-top: 3rem;
}

.instagram-embed-wrap {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  min-height: 500px;
}

.instagram-embed-iframe {
  width: 100%;
  min-height: 500px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #000;
}

/* Si el iframe cargó correctamente, ocultar fallback */
.instagram-embed-wrap.loaded .instagram-embed-fallback {
  display: none;
}

/* Si el iframe falló o no ha cargado, mostrar fallback encima */
.instagram-embed-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  padding: 3rem;
  z-index: 2;
}

.instagram-embed-wrap.loaded .instagram-embed-fallback { display: none; }
.instagram-embed-wrap.error .instagram-embed-iframe { display: none; }
.instagram-embed-wrap.error .instagram-embed-fallback { position: relative; }

.instagram-fallback-user {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.instagram-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #F77737 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.25s;
}

.instagram-follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225,48,108,0.35);
}

.instagram-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-3);
}

.instagram-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.instagram-item:hover img {
  transform: scale(1.08);
}

.instagram-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.instagram-item:hover .instagram-overlay {
  opacity: 1;
}

.instagram-icon {
  width: 32px; height: 32px;
  fill: #fff;
  opacity: 0.9;
}

.instagram-caption {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 0 1rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .streamers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .streamers-grid { grid-template-columns: 1fr; }
}
