/*
Theme Name: Global Raver
Theme URI: https://globalraver.com
Author: Global Raver Dev Team
Author URI: https://globalraver.com
Description: Tema de WordPress para el medio de noticias de música electrónica underground Global Raver. Diseñado con estética dark mode, acentos neón/cyberpunk y soporte para integración de APIs de charts y lanzamientos.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: global-raver
Tags: dark, music, magazine, responsive, custom-menu, featured-images
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Palette */
  --clr-bg:           #0B0B0C;
  --clr-surface:      #111113;
  --clr-surface-2:    #18181B;
  --clr-surface-3:    #1F1F23;
  --clr-border:       rgba(255,255,255,0.08);

  --clr-neon-purple:  #A855F7;
  --clr-neon-magenta: #F72585;
  --clr-neon-green:   #39FF14;
  --clr-neon-cyan:    #00F5FF;

  --clr-accent:       var(--clr-neon-purple);
  --clr-accent-glow:  rgba(168,85,247,0.35);
  --clr-accent-2:     var(--clr-neon-magenta);

  --clr-text:         #F0F0F2;
  --clr-text-muted:   #9CA3AF;
  --clr-text-dim:     #6B7280;
  --clr-white:        #FFFFFF;

  /* Typography */
  --ff-display:       'Bebas Neue', 'Impact', sans-serif;
  --ff-heading:       'Inter', 'Segoe UI', system-ui, sans-serif;
  --ff-body:          'Inter', 'Segoe UI', system-ui, sans-serif;

  --fs-xs:   clamp(0.7rem,  1vw,   0.75rem);
  --fs-sm:   clamp(0.8rem,  1.2vw, 0.875rem);
  --fs-base: clamp(0.9rem,  1.5vw, 1rem);
  --fs-md:   clamp(1rem,    1.8vw, 1.125rem);
  --fs-lg:   clamp(1.1rem,  2vw,   1.25rem);
  --fs-xl:   clamp(1.3rem,  2.5vw, 1.5rem);
  --fs-2xl:  clamp(1.5rem,  3vw,   2rem);
  --fs-3xl:  clamp(2rem,    5vw,   3rem);
  --fs-hero: clamp(2.8rem,  8vw,   6rem);

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6rem;

  /* Layout */
  --max-w:       1280px;
  --nav-h:       70px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  /* Glass */
  --glass-bg:     rgba(17,17,19,0.65);
  --glass-border: rgba(255,255,255,0.10);
  --glass-blur:   blur(16px);

  /* Transitions */
  --tr-fast:   150ms ease;
  --tr-normal: 300ms ease;
  --tr-slow:   500ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--tr-fast);
}
a:hover { color: var(--clr-accent); }

ul, ol { list-style: none; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-white);
}

.display-title {
  font-family: var(--ff-display);
  font-size: var(--fs-hero);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.section-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  padding-bottom: var(--sp-xs);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--clr-accent);
  box-shadow: 0 0 12px var(--clr-accent-glow);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-md);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.neon-text {
  color: var(--clr-accent);
  text-shadow: 0 0 10px var(--clr-accent-glow);
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--clr-accent);
  color: var(--clr-white);
}

.tag--green  { background: var(--clr-neon-green); color: #000; }
.tag--cyan   { background: var(--clr-neon-cyan);  color: #000; }
.tag--magenta{ background: var(--clr-neon-magenta); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--tr-normal);
}

.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-white);
  border-color: var(--clr-accent);
  box-shadow: 0 0 18px var(--clr-accent-glow);
}
.btn--primary:hover {
  background: transparent;
  color: var(--clr-accent);
  box-shadow: 0 0 30px var(--clr-accent-glow), inset 0 0 12px var(--clr-accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}
.btn--outline:hover {
  background: var(--clr-accent);
  color: var(--clr-white);
  box-shadow: 0 0 20px var(--clr-accent-glow);
}

.btn--sm { padding: 0.45rem 1rem; font-size: var(--fs-xs); }

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--tr-normal), box-shadow var(--tr-normal);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(168,85,247,0.2);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(11,11,12,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--tr-normal);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  letter-spacing: 0.1em;
  color: var(--clr-white);
  white-space: nowrap;
}
.site-logo span { color: var(--clr-accent); }

#primary-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

#primary-menu a {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--clr-text-muted);
  transition: color var(--tr-fast);
  position: relative;
  padding-bottom: 2px;
}

#primary-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--clr-accent);
  box-shadow: 0 0 8px var(--clr-accent-glow);
  transition: width var(--tr-normal);
}

#primary-menu a:hover,
#primary-menu a:focus { color: var(--clr-white); }
#primary-menu a:hover::after { width: 100%; }

/* Search bar */
.nav-search {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.nav-search input[type="search"] {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  color: var(--clr-text);
  width: 180px;
  transition: border-color var(--tr-fast), width var(--tr-normal);
  outline: none;
}
.nav-search input[type="search"]:focus {
  border-color: var(--clr-accent);
  width: 220px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--tr-normal);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img,
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11,11,12,0.2) 0%,
    rgba(11,11,12,0.5) 60%,
    var(--clr-bg) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-xl) var(--sp-md);
  max-width: 900px;
}

.hero-eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--clr-accent);
  text-shadow: 0 0 12px var(--clr-accent-glow);
  margin-bottom: var(--sp-sm);
}

.hero-title { margin-bottom: var(--sp-md); }

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto var(--sp-lg);
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
section {
  padding: var(--sp-2xl) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

/* ============================================================
   NEWS GRID
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-md);
}

.news-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.news-card--featured { grid-row: span 2; }

.news-card__image {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--tr-slow);
}
.news-card--featured .news-card__image { aspect-ratio: auto; height: 100%; min-height: 360px; }

.news-card:hover .news-card__image { transform: scale(1.05); }

.news-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11,11,12,0.95) 100%);
}

.news-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-md);
}

.news-card__category {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-accent);
  margin-bottom: var(--sp-xs);
}

.news-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-white);
}
.news-card--featured .news-card__title { font-size: var(--fs-2xl); }

.news-card__meta {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
  margin-top: var(--sp-xs);
}

/* ============================================================
   EVENTS
   ============================================================ */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.event-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--radius-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: border-color var(--tr-normal), box-shadow var(--tr-normal);
}
.event-card:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 0 20px var(--clr-accent-glow);
}

.event-date {
  text-align: center;
  line-height: 1;
}
.event-date__day {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  color: var(--clr-accent);
  text-shadow: 0 0 10px var(--clr-accent-glow);
}
.event-date__month {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
}

.event-info__name {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 4px;
}
.event-info__venue {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.event-info__venue::before {
  content: '📍';
  font-size: 0.7em;
}

/* ============================================================
   CHARTS & RELEASES
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--clr-surface);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  width: fit-content;
  margin-bottom: var(--sp-lg);
}

.tab-btn {
  padding: 0.5rem 1.4rem;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  background: transparent;
  color: var(--clr-text-muted);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: all var(--tr-normal);
}
.tab-btn.active {
  background: var(--clr-accent);
  color: var(--clr-white);
  box-shadow: 0 0 14px var(--clr-accent-glow);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.track-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.track-item {
  display: grid;
  grid-template-columns: 36px 60px 1fr auto;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-sm);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: background var(--tr-fast), border-color var(--tr-fast);
}
.track-item:hover {
  background: var(--clr-surface-2);
  border-color: rgba(168,85,247,0.3);
}

.track-rank {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  color: var(--clr-text-dim);
  text-align: center;
  line-height: 1;
}
.track-item:nth-child(1) .track-rank,
.track-item:nth-child(2) .track-rank,
.track-item:nth-child(3) .track-rank { color: var(--clr-accent); }

.track-cover {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--clr-surface-3);
}

.track-info__title {
  font-weight: 700;
  font-size: var(--fs-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-info__artist {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}
.track-info__label {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
}

.track-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
}

/* ============================================================
   DEALS
   ============================================================ */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-md);
}

.deal-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}

.deal-card__bg {
  position: absolute;
  inset: 0;
  background: var(--clr-surface-2);
}
.deal-card__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform var(--tr-slow);
}
.deal-card:hover .deal-card__bg img { transform: scale(1.08); }

.deal-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(11,11,12,0.9) 100%);
}

.deal-card__content {
  position: relative;
  z-index: 1;
  padding: var(--sp-md);
  width: 100%;
}

.deal-card__discount {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  color: var(--clr-neon-green);
  text-shadow: 0 0 16px rgba(57,255,20,0.5);
  line-height: 1;
  margin-bottom: 4px;
}
.deal-card__desc { font-size: var(--fs-sm); color: var(--clr-text-muted); margin-bottom: var(--sp-sm); }

/* ============================================================
   GALLERY (MASONRY)
   ============================================================ */
.gallery-grid {
  columns: 3 280px;
  column-gap: var(--sp-sm);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--sp-sm);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  display: block;
  transition: transform var(--tr-slow);
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.05); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(168,85,247,0.0);
  transition: background var(--tr-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-item__overlay {
  background: rgba(168,85,247,0.25);
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  position: relative;
  overflow: hidden;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.about-statement {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  line-height: 1.1;
  text-transform: uppercase;
}

.about-body p {
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-sm);
  font-size: var(--fs-md);
}

.about-decoration {
  position: absolute;
  top: 50%; right: -200px;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact .glass-card {
  max-width: 680px;
  margin-inline: auto;
  padding: var(--sp-xl);
}

.form-group {
  margin-bottom: var(--sp-md);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--clr-text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--clr-text);
  outline: none;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px var(--clr-accent-glow);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.social-links {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-top: var(--sp-lg);
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  font-size: var(--fs-md);
  transition: all var(--tr-normal);
  color: var(--clr-text-muted);
}
.social-link:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  box-shadow: 0 0 14px var(--clr-accent-glow);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-xl) 0 var(--sp-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.footer-brand__logo {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  color: var(--clr-white);
  margin-bottom: var(--sp-sm);
}
.footer-brand__logo span { color: var(--clr-accent); }

.footer-brand p {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  max-width: 280px;
}

.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text);
  margin-bottom: var(--sp-sm);
}
.footer-col a {
  display: block;
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  padding: 3px 0;
  transition: color var(--tr-fast);
}
.footer-col a:hover { color: var(--clr-accent); }

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.footer-bottom p { font-size: var(--fs-xs); color: var(--clr-text-dim); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-surface-3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-accent); }

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--clr-surface) 25%, var(--clr-surface-2) 50%, var(--clr-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .news-card--featured { grid-row: span 1; }

  .about-inner { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .about-decoration { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-search  { display: none; }

  #primary-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(11,11,12,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-md);
    gap: var(--sp-sm);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--tr-slow), padding var(--tr-slow);
    border-bottom: 1px solid var(--clr-border);
  }
  #primary-menu.open {
    max-height: 100vh;
    padding: var(--sp-lg) var(--sp-md);
  }
  #primary-menu a { font-size: var(--fs-lg); }

  /* Sections */
  section { padding: var(--sp-xl) 0; }

  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card--featured { grid-row: span 1; }
  .news-card--featured .news-card__image { min-height: 260px; }

  .event-card {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
  }
  .event-card .btn { grid-column: span 2; width: 100%; justify-content: center; }

  .track-item {
    grid-template-columns: 28px 48px 1fr;
  }
  .track-meta { display: none; }

  .about-statement { font-size: var(--fs-2xl); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-md); }

  .gallery-grid { columns: 2 140px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .deals-grid { grid-template-columns: 1fr; }

  .track-item {
    grid-template-columns: 28px 1fr;
  }
  .track-cover { display: none; }
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-sm);
  background: var(--clr-accent);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 700;
  transition: top var(--tr-fast);
}
.skip-link:focus { top: var(--sp-sm); }

/* ============================================================
   NAV — SEARCH BUTTON
   ============================================================ */
.nav-search { display: flex; align-items: center; gap: 4px; }
.nav-search__btn {
  background: none;
  border: none;
  color: var(--clr-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--tr-fast);
}
.nav-search__btn:hover { color: var(--clr-accent); }

/* Current menu item */
#primary-menu .current-menu-item > a,
#primary-menu .current-page-ancestor > a { color: var(--clr-white); }
#primary-menu .current-menu-item > a::after { width: 100%; }

/* ============================================================
   HERO SLIDER — ANIMACIONES Y GLASSMORPHISM
   ============================================================ */

/* ── Keyframes ── */

/**
 * fade-in-up: los textos del slide entran desde abajo
 * con opacidad 0 → 1, emulando aparición Premium.
 */
@keyframes gr-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/**
 * neon-pulse: late suave el glow del borde neón
 * sobre el contenedor de texto cuando el slide está activo.
 */
@keyframes gr-neon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0);  }
  50%       { box-shadow: 0 0 22px 4px rgba(168,85,247,.18); }
}

/**
 * progress-fill: anima la barra de progreso del autoplay
 * de 0 % → 100 % en la duración del intervalo (controlada
 * desde JS vía animation-duration).
 */
@keyframes gr-progress-fill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ── Contenedor principal ── */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  /* Aislamiento de contexto de apilamiento */
  isolation: isolate;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── Slides ── */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;  /* alineación izquierda por defecto */
  opacity: 0;
  /* Transición de fade entre slides */
  transition: opacity 0.72s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  will-change: opacity;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* ── Fondo / imagen de cada slide ── */
.hero-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  /* Estado de reposo: sin zoom */
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/*
 * Efecto Ken Burns / Zoom suave:
 * Cuando el slide se activa, la imagen hace un scale sutil.
 * Se cancela en cuanto el slide sale (.is-leaving).
 */
.hero-slide.is-active .hero-slide__bg img {
  transform: scale(1.05);
}
.hero-slide.is-leaving .hero-slide__bg img {
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Placeholder: gradiente cuando no hay imagen */
.hero-slide__bg--gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(168,85,247,.2)  0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(247,37,133,.14) 0%, transparent 60%),
    linear-gradient(135deg, #0d001a 0%, #000510 40%, #0a0010 100%);
}

/* ── OVERLAY: degradado oscuro de fusión con la sección inferior ── */
/*
 * Req. 1 — LINEAR-GRADIENT OVERLAY
 * De transparente total → al color de fondo del sitio (#0B0B0C)
 * para que el slider se disuelva perfectamente en el contenido.
 */
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Capa superior: oscurece ligeramente el top para legibilidad del nav */
    linear-gradient(
      180deg,
      rgba(11,11,12,.28) 0%,
      rgba(11,11,12,.0)  25%,
      rgba(11,11,12,.0)  50%,
      rgba(11,11,12,.55) 72%,
      #0B0B0C            100%   /* fusión perfecta → #0B0B0C */
    );
  /* Previene interacción con la capa decorativa */
  pointer-events: none;
}

/* ── CONTENEDOR DE TEXTO CON GLASSMORPHISM ── */
/*
 * Req. 2 — GLASSMORPHISM
 * backdrop-filter: blur(12px) + fondo semi-transparente oscuro
 * + borde neón de baja opacidad para el efecto vidrio premium.
 */
.hero-slide__content {
  position: relative;
  z-index: 2;
  /* Glassmorphism */
  background: rgba(11, 11, 12, 0.60);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: var(--radius-lg);
  /* Sutilísimo brillo neón en el borde superior */
  box-shadow:
    0 0 0 0 rgba(168,85,247,0),        /* base invisible */
    inset 0 1px 0 rgba(168,85,247,.15); /* highlight superior */
  /* Layout y espaciado */
  max-width: 680px;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem);
  margin-left: clamp(1rem, 6vw, 4rem);
  /* Animación de pulso neón cuando el slide está activo */
  animation: none;
  will-change: box-shadow;
}
.hero-slide.is-active .hero-slide__content {
  animation: gr-neon-pulse 3.6s ease-in-out infinite;
}

/* ── Etiqueta de categoría ── */
.hero-slide__cat {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--clr-accent);
  text-shadow: 0 0 12px var(--clr-accent-glow);
  margin-bottom: var(--sp-sm);
  background: rgba(168,85,247,.14);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(168,85,247,.32);
  /* Animación fade-in-up (Req. 3) */
  opacity: 0;
  animation: none;
}
.hero-slide.is-active .hero-slide__cat {
  animation: gr-fade-in-up 0.55s cubic-bezier(0.25, 1, 0.5, 1) 0.05s both;
}

/* ── Título del slide ── */
/*
 * Req. 3 — FADE-IN-UP + Req. 4 — clamp() para responsividad
 */
.hero-slide__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: var(--sp-md);
  /* Evita wrapping agresivo en pantallas pequeñas */
  word-break: break-word;
  hyphens: auto;
  /* Animación escalonada */
  opacity: 0;
  animation: none;
}
.hero-slide.is-active .hero-slide__title {
  animation: gr-fade-in-up 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.15s both;
}
.hero-slide__title a { color: inherit; text-decoration: none; }
.hero-slide__title a:hover {
  color: var(--clr-accent);
  text-shadow: 0 0 20px var(--clr-accent-glow);
  transition: color var(--tr-normal), text-shadow var(--tr-normal);
}

/* ── Extracto / descripción ── */
.hero-slide__excerpt {
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: var(--clr-text-muted);
  max-width: 560px;
  margin-bottom: var(--sp-lg);
  line-height: 1.6;
  /* Animación escalonada */
  opacity: 0;
  animation: none;
}
.hero-slide.is-active .hero-slide__excerpt {
  animation: gr-fade-in-up 0.65s cubic-bezier(0.25, 1, 0.5, 1) 0.26s both;
}

/* ── Botón CTA ── */
/*
 * Req. 3 — MICROINTERACCIÓN NEON GLOW
 * El botón primario dentro del slide tiene un glow potenciado
 * en hover para reforzar la atmósfera de club nocturno.
 */
.hero-slide .btn--primary {
  /* Animación de entrada escalonada */
  opacity: 0;
  animation: none;
  /* Transición de glow más rica que el global */
  transition:
    background    0.3s cubic-bezier(0.25, 1, 0.5, 1),
    color         0.3s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow    0.3s cubic-bezier(0.25, 1, 0.5, 1),
    border-color  0.3s cubic-bezier(0.25, 1, 0.5, 1),
    transform     0.25s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-slide.is-active .btn--primary {
  animation: gr-fade-in-up 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.38s both;
}

/*
 * Hover: glow neón doble capa (exterior difuminado + interior sutil)
 * + ligero lift con translateY
 */
.hero-slide .btn--primary:hover {
  background: transparent;
  color: var(--clr-accent);
  border-color: var(--clr-accent);
  box-shadow:
    0  0  12px  4px  rgba(168,85,247,.55),   /* glow exterior difuminado */
    0  0  28px  8px  rgba(168,85,247,.25),   /* halo ambiental            */
    inset 0 0  10px  rgba(168,85,247,.18);   /* brillo interior           */
  transform: translateY(-3px);
}
.hero-slide .btn--primary:active {
  transform: translateY(-1px);
  box-shadow:
    0 0 8px 2px rgba(168,85,247,.4),
    inset 0 0 6px rgba(168,85,247,.12);
}

/* ── Controles de navegación (flechas) ── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(11,11,12,.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(168,85,247,.22);
  color: var(--clr-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background   0.3s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow   0.3s cubic-bezier(0.25, 1, 0.5, 1),
    transform    0.25s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, box-shadow;
}
.slider-arrow:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  box-shadow:
    0 0 18px 4px rgba(168,85,247,.55),
    0 0 36px 8px rgba(168,85,247,.22);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.slider-arrow:active {
  transform: translateY(-50%) scale(0.96);
}
.slider-arrow--prev { left:  var(--sp-md); }
.slider-arrow--next { right: var(--sp-md); }

/* ── Dots de paginación ── */
.slider-dots {
  position: absolute;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  padding: 0;
  transition:
    background    0.35s cubic-bezier(0.25, 1, 0.5, 1),
    width         0.35s cubic-bezier(0.25, 1, 0.5, 1),
    border-color  0.35s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow    0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: width;
}
.slider-dot:hover {
  background: rgba(168,85,247,.6);
  border-color: rgba(168,85,247,.5);
}
.slider-dot.is-active {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  width: 28px;
  border-radius: 4px;
  box-shadow:
    0 0  8px 2px rgba(168,85,247,.6),
    0 0 16px 4px rgba(168,85,247,.25);
}

/* ── Barra de progreso del autoplay ── */
.slider-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.06);
  z-index: 10;
  overflow: hidden;
}
/*
 * La animación gr-progress-fill se aplica desde JS:
 * sliderProgressBar.style.animation =
 *   `gr-progress-fill ${duration}ms linear forwards`;
 * Al resetear el slide se limpia la propiedad animation.
 */
.slider-progress__bar {
  height: 100%;
  width: 0;
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    var(--clr-neon-purple)  0%,
    var(--clr-neon-magenta) 100%
  );
  box-shadow:
    0 0  6px 1px rgba(168,85,247,.7),
    0 0 12px 2px rgba(247,37,133,.4);
  /* animation se controla desde JS; aquí solo definimos la referencia */
  animation-name:       gr-progress-fill;
  animation-timing-function: linear;
  animation-fill-mode:  forwards;
}

/* ── Responsividad del Slider (Req. 4) ── */
@media (max-width: 768px) {

  /* Altura adaptativa con svh para evitar el problema del nav de iOS */
  .hero-slider {
    height: 100svh;
    min-height: 480px;
  }

  /*
   * El contenedor de texto pierde el glassmorphism pesado en móvil
   * para mejorar rendimiento; se mantiene un fondo oscuro sólido liviano.
   */
  .hero-slide__content {
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-md);
    /* Reducir blur en móvil (rendimiento) */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: var(--sp-md) var(--sp-sm);
    /* Centrar el contenido en móvil */
    text-align: center;
    align-items: center;
  }

  /* Alineación central del slide en móvil */
  .hero-slide {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: calc(var(--sp-lg) + 48px); /* espacio para dots */
  }

  /* Título: clamp() más agresivo para pantallas pequeñas */
  .hero-slide__title {
    font-size: clamp(1.6rem, 7.5vw, 2.4rem);
    letter-spacing: .01em;
  }

  /*
   * Req. 4 — OCULTAR EXTRACTO EN MÓVIL
   * para liberar espacio vertical crítico.
   */
  .hero-slide__excerpt {
    display: none;
  }

  /* Categoría: centrado en móvil */
  .hero-slide__cat {
    display: block;
    width: fit-content;
    margin-inline: auto;
    margin-bottom: var(--sp-xs);
  }

  /* CTA centrado */
  .hero-slide .btn--primary {
    margin-inline: auto;
  }

  /* Ocultar flechas laterales en móvil (táctil: swipe) */
  .slider-arrow {
    display: none;
  }

  /* Dots más grandes y centrados para facilitar el toque */
  .slider-dots {
    bottom: var(--sp-md);
    gap: 12px;
  }
  .slider-dot {
    width: 10px; height: 10px;
    /* Área táctil mínima recomendada (WCAG) */
    min-width: 44px; min-height: 44px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    padding: 0;
  }
  /* El punto visual dentro del área táctil */
  .slider-dot::after {
    content: '';
    display: block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .slider-dot.is-active::after {
    background: var(--clr-accent);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px 2px rgba(168,85,247,.6);
  }
}

/* Tablets: ajuste intermedio */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-slide__content {
    max-width: 560px;
    margin-left: clamp(1rem, 4vw, 2.5rem);
  }
  .hero-slide__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .slider-arrow {
    display: none; /* Evitar clics accidentales en tablet táctil */
  }
}

/* Pantallas muy grandes: limitar el zoom Ken Burns */
@media (min-width: 1440px) {
  .hero-slide.is-active .hero-slide__bg img {
    transform: scale(1.04); /* zoom más sutil en pantallas grandes */
  }
}

/* Accesibilidad: respeta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide__bg img,
  .hero-slide__content,
  .hero-slide__cat,
  .hero-slide__title,
  .hero-slide__excerpt,
  .hero-slide .btn--primary {
    animation: none !important;
    transition: opacity 0.3s ease !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .hero-slide { opacity: 0; }
  .hero-slide.is-active { opacity: 1; }
}

/* ============================================================
   FRONT-PAGE: SECTION PREVIEWS (DASHBOARD CARDS)
   ============================================================ */
.fp-section {
  padding: var(--sp-2xl) 0;
}
.fp-section--alt { background: var(--clr-surface); }

.fp-section-link {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--clr-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--tr-fast);
}
.fp-section-link:hover { color: var(--clr-accent); gap: 10px; }
.fp-section-link svg { flex-shrink: 0; }

/* ============================================================
   PAGE HERO (Inner pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + var(--sp-xl)) 0 var(--sp-xl);
  background: linear-gradient(180deg, rgba(168,85,247,.07) 0%, var(--clr-bg) 100%);
  border-bottom: 1px solid var(--clr-border);
}
.page-hero__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--clr-accent);
  margin-bottom: var(--sp-xs);
}
.page-hero__title {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}
.page-hero__desc {
  color: var(--clr-text-muted);
  max-width: 600px;
  font-size: var(--fs-md);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.gr-pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-xs);
  padding: var(--sp-lg) 0 0;
  flex-wrap: wrap;
}
.gr-pagination a,
.gr-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--tr-fast);
  color: var(--clr-text-muted);
}
.gr-pagination a:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.gr-pagination .current {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  box-shadow: 0 0 12px var(--clr-accent-glow);
}

/* ============================================================
   SINGLE POST / EVENT
   ============================================================ */
.single-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.single-hero__bg {
  position: absolute;
  inset: 0;
}
.single-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
}
.single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,.3) 0%, var(--clr-bg) 100%);
}
.single-hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--sp-xl);
}
.single-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-bottom: var(--sp-md);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}
.single-hero__title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 860px;
}

.entry-content {
  max-width: 780px;
  padding: var(--sp-xl) 0;
}
.entry-content p { margin-bottom: var(--sp-sm); color: var(--clr-text-muted); line-height: 1.8; }
.entry-content h2,
.entry-content h3 { margin: var(--sp-lg) 0 var(--sp-sm); }
.entry-content a { color: var(--clr-accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius-md); margin: var(--sp-md) 0; }
.entry-content blockquote {
  border-left: 3px solid var(--clr-accent);
  padding-left: var(--sp-md);
  color: var(--clr-text-muted);
  font-style: italic;
  margin: var(--sp-md) 0;
}

/* Gutenberg wide / full alignments */
.entry-content .alignwide  { max-width: 1040px; margin-left: calc(50% - 520px); }
.entry-content .alignfull  { max-width: 100vw;  margin-left: calc(50% - 50vw); }

/* Single layout */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-xl);
  padding: var(--sp-xl) 0;
  align-items: start;
}
.single-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-md));
}
.sidebar-widget {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.sidebar-widget h3 {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--sp-sm);
  padding-bottom: var(--sp-xs);
  border-bottom: 1px solid var(--clr-border);
}

/* ============================================================
   GALLERY PAGE (MASONRY EXTENDED)
   ============================================================ */
.gallery-filter {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
  margin-bottom: var(--sp-lg);
}
.gallery-filter-btn {
  padding: .4rem 1.1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: all var(--tr-normal);
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  box-shadow: 0 0 12px var(--clr-accent-glow);
}

/* ============================================================
   EVENTS PAGE — FILTER TABS
   ============================================================ */
.city-filter {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-lg);
}
.city-btn {
  padding: .42rem 1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: all var(--tr-normal);
}
.city-btn:hover,
.city-btn.active {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  box-shadow: 0 0 10px var(--clr-accent-glow);
}

/* ============================================================
   BLOCK EDITOR SUPPORT (body class wp-block-*)
   ============================================================ */
.wp-block-image img { border-radius: var(--radius-sm); }
.wp-block-quote {
  border-left: 3px solid var(--clr-accent);
  padding-left: var(--sp-md);
}
.wp-block-separator { border-color: var(--clr-border); }
.wp-block-code {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: var(--sp-md);
  color: var(--clr-neon-cyan);
  font-size: var(--fs-sm);
}
.has-bg-background-color  { background-color: #0B0B0C !important; }
.has-surface-background-color { background-color: #111113 !important; }
.has-purple-color  { color: #A855F7 !important; }
.has-magenta-color { color: #F72585 !important; }
.has-green-color   { color: #39FF14 !important; }
.has-cyan-color    { color: #00F5FF !important; }

/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */
@media (max-width: 1024px) {
  .single-layout {
    grid-template-columns: 1fr;
  }
  .single-sidebar { position: static; }
  .slider-arrow { display: none; }
}
@media (max-width: 768px) {
  .hero-slider { height: 100svh; }
  .hero-slide__excerpt { display: none; }
  .hero-slide__cat { font-size: 0.65rem; }
  .page-hero__title { font-size: var(--fs-2xl); }
}


/* ============================================================
   LIGHTBOX — gr-lightbox (generado desde main.js)
   ============================================================ */

/* Overlay */
.gr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr-normal);
}
.gr-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Imagen central */
.gr-lb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  gap: var(--sp-xs);
}
.gr-lb-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.2);
}
.gr-lb-caption {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  text-align: center;
  max-width: 600px;
}

/* Botón cerrar */
.gr-lb-close {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--clr-white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--tr-fast), border-color var(--tr-fast);
}
.gr-lb-close:hover,
.gr-lb-close:focus-visible {
  background: rgba(168, 85, 247, 0.35);
  border-color: var(--clr-accent);
  outline: none;
}

/* Flechas prev/next */
.gr-lb-prev,
.gr-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 11, 12, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--clr-white);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--tr-fast), border-color var(--tr-fast),
              transform var(--tr-fast);
}
.gr-lb-prev { left: var(--sp-md); }
.gr-lb-next { right: var(--sp-md); }

.gr-lb-prev:hover,
.gr-lb-prev:focus-visible {
  background: rgba(168, 85, 247, 0.25);
  border-color: var(--clr-accent);
  transform: translateY(-50%) translateX(-2px);
  outline: none;
}
.gr-lb-next:hover,
.gr-lb-next:focus-visible {
  background: rgba(168, 85, 247, 0.25);
  border-color: var(--clr-accent);
  transform: translateY(-50%) translateX(2px);
  outline: none;
}

/* Header scrolled — sombra al hacer scroll */
#site-header.scrolled {
  background: rgba(11, 11, 12, 0.97);
  box-shadow: 0 1px 0 rgba(168, 85, 247, 0.12),
              0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Nav active link (IntersectionObserver) */
#primary-menu a.nav-active {
  color: var(--clr-white);
}
#primary-menu a.nav-active::after {
  width: 100%;
}

/* ── prefers-reduced-motion: desactivar transición del lightbox ── */
@media (prefers-reduced-motion: reduce) {
  .gr-lightbox { transition: none; }
  .gr-lb-prev,
  .gr-lb-next  { transition: none; }
}

/* ── Mobile lightbox ── */
@media (max-width: 600px) {
  .gr-lb-prev { left: var(--sp-xs); }
  .gr-lb-next { right: var(--sp-xs); }
  .gr-lb-prev,
  .gr-lb-next { width: 40px; height: 40px; }
  .gr-lb-close { top: var(--sp-sm); right: var(--sp-sm); }
}
