/* ============================================================
   ASOMA — Design System & Brand Manual Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

/* ============================================================
   ASOMA — Tipografía Oficial de Marca
   TBJ Margin Condensed (Títulos y Acápites) & Aloevera Display (Cuerpo)
   ============================================================ */

/* --- TBJ MARGIN CONDENSED --- */
@font-face {
  font-family: 'TBJ Margin Condensed';
  src: url('/fonts/TBJmargincondensed-Light.ttf') format('truetype'),
    url('fonts/TBJmargincondensed-Light.ttf') format('truetype'),
    local('TBJ margin condensed Light'),
    local('TBJmargincondensed-Light');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TBJ Margin Condensed';
  src: url('/fonts/TBJmargincondensed-Regular.ttf') format('truetype'),
    url('fonts/TBJmargincondensed-Regular.ttf') format('truetype'),
    local('TBJ margin condensed Regular'),
    local('TBJ margin condensed'),
    local('TBJmargincondensed-Regular');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TBJ Margin Condensed';
  src: url('/fonts/TBJmargincondensed-Regular.ttf') format('truetype'),
    url('fonts/TBJmargincondensed-Regular.ttf') format('truetype'),
    local('TBJ margin condensed Regular'),
    local('TBJ margin condensed');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TBJ Margin Condensed';
  src: url('/fonts/TBJmargincondensed-Bold.ttf') format('truetype'),
    url('fonts/TBJmargincondensed-Bold.ttf') format('truetype'),
    local('TBJ margin condensed Bold'),
    local('TBJmargincondensed-Bold');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TBJ Margin Condensed';
  src: url('/fonts/TBJmargincondensed-Bold.ttf') format('truetype'),
    url('fonts/TBJmargincondensed-Bold.ttf') format('truetype'),
    local('TBJ margin condensed Bold'),
    local('TBJmargincondensed-Bold');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TBJ Margin Condensed';
  src: url('/fonts/TBJmargincondensed-ExtraBold.ttf') format('truetype'),
    url('fonts/TBJmargincondensed-ExtraBold.ttf') format('truetype'),
    local('TBJ margin condensed Extra Bold'),
    local('TBJ margin condensed ExtBd'),
    local('TBJmargincondensed-ExtraBold');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TBJ Margin Condensed';
  src: url('/fonts/TBJmargincondensed-ExtraBold.ttf') format('truetype'),
    url('fonts/TBJmargincondensed-ExtraBold.ttf') format('truetype'),
    local('TBJ margin condensed Extra Bold'),
    local('TBJ margin condensed ExtBd'),
    local('TBJmargincondensed-ExtraBold');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Alias 'TBJ margin condensed' */
@font-face {
  font-family: 'TBJ margin condensed';
  src: url('/fonts/TBJmargincondensed-Bold.ttf') format('truetype'),
    url('fonts/TBJmargincondensed-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TBJ margin condensed';
  src: url('/fonts/TBJmargincondensed-ExtraBold.ttf') format('truetype'),
    url('fonts/TBJmargincondensed-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TBJ margin condensed';
  src: url('/fonts/TBJmargincondensed-ExtraBold.ttf') format('truetype'),
    url('fonts/TBJmargincondensed-ExtraBold.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --- ALOEVERA DISPLAY --- */
@font-face {
  font-family: 'Aloevera Display';
  src: url('/fonts/AloeveraDisplay-ExtraLight.otf') format('opentype'),
    url('fonts/AloeveraDisplay-ExtraLight.otf') format('opentype'),
    local('Aloevera Display ExtraLight'),
    local('AloeveraDisplay-ExtraLight');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aloevera Display';
  src: url('/fonts/AloeveraDisplay-ExtraLight.otf') format('opentype'),
    url('fonts/AloeveraDisplay-ExtraLight.otf') format('opentype'),
    local('Aloevera Display ExtraLight'),
    local('AloeveraDisplay-ExtraLight');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aloevera Display';
  src: url('/fonts/AloeveraDisplay-ExtraLight.otf') format('opentype'),
    url('fonts/AloeveraDisplay-ExtraLight.otf') format('opentype'),
    local('Aloevera Display ExtraLight'),
    local('AloeveraDisplay-ExtraLight');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aloevera Display';
  src: url('/fonts/AloeveraDisplay-ExtraLight.otf') format('opentype'),
    url('fonts/AloeveraDisplay-ExtraLight.otf') format('opentype'),
    local('Aloevera Display ExtraLight'),
    local('AloeveraDisplay-ExtraLight');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aloevera Display';
  src: url('/fonts/AloeveraDisplay-Bold.otf') format('opentype'),
    url('fonts/AloeveraDisplay-Bold.otf') format('opentype'),
    local('Aloevera Display Bold'),
    local('AloeveraDisplay-Bold');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aloevera Display';
  src: url('/fonts/AloeveraDisplay-Bold.otf') format('opentype'),
    url('fonts/AloeveraDisplay-Bold.otf') format('opentype'),
    local('Aloevera Display Bold'),
    local('AloeveraDisplay-Bold');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aloevera Display';
  src: url('/fonts/AloeveraDisplay-Bold.otf') format('opentype'),
    url('fonts/AloeveraDisplay-Bold.otf') format('opentype'),
    local('Aloevera Display Bold'),
    local('AloeveraDisplay-Bold');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aloevera Display';
  src: url('/fonts/AloeveraDisplay-Bold.otf') format('opentype'),
    url('fonts/AloeveraDisplay-Bold.otf') format('opentype'),
    local('Aloevera Display Bold'),
    local('AloeveraDisplay-Bold');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Alias 'AloeveraDisplay' */
@font-face {
  font-family: 'AloeveraDisplay';
  src: url('/fonts/AloeveraDisplay-ExtraLight.otf') format('opentype'),
    url('fonts/AloeveraDisplay-ExtraLight.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AloeveraDisplay';
  src: url('/fonts/AloeveraDisplay-Bold.otf') format('opentype'),
    url('fonts/AloeveraDisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #0e0f14;
  /* Fondo Oscuro Interfaz */
  --surface: #14151c;
  --surface2: #1b1d26;
  --surface3: #242733;
  --border: #2b2e3b;
  --primary: #ff0000;
  /* Rojo Pulso */
  --brand-red: #ff0000;
  /* Rojo Pulso */
  --brand-wine: #3e1c1a;
  /* Vino Encuentro */
  --brand-lime: #e2f576;
  /* Lima Movimiento */
  --brand-light: #eef1f2;
  /* Gris Escena */
  --accent: #e2f576;
  /* Lima Movimiento */
  --accent-dk: #cde354;
  --gold: #e2f576;
  --gold-grad: linear-gradient(135deg, #ff5927 0%, #ff0000 100%);
  --red: #ff0000;
  --white: #eef1f2;
  /* Gris Escena */
  --text: #eef1f2;
  --text-primary: #eef1f2;
  --grey1: #9ca3af;
  --grey2: #646b78;
  /* Paleta de Apoyo por Categoría Cultural */
  --cat-musica: #ff5927;
  --cat-coral: #fd494a;
  --cat-danza: #e2f576;
  --cat-teatro: #ff90ca;
  --cat-artes: #9b72f2;
  --cat-artes-light: #d9c7fd;
  --cat-cine: #4c76fe;
  --cat-foto: #87e58f;
  --font-display: 'TBJ Margin Condensed', 'TBJ margin condensed', 'TBJmargincondensed', 'Archivo Black', sans-serif;
  --font-body: 'Aloevera Display', 'AloeveraDisplay', 'Inter', sans-serif;
  --font-sans: 'Aloevera Display', 'AloeveraDisplay', 'Inter', sans-serif;
  --font-mono: 'Aloevera Display', 'AloeveraDisplay', 'Space Mono', monospace;
  --sidebar-w: 270px;
  --topbar-h: 64px;
  --radius: 12px;
  --radius-lg: 18px;
  --transition: 0.2s ease;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400; /* Regular por defecto */
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- Jerarquía Tipográfica ASOMA: Regular en cuerpo/lecturas, Bold en Selección y Títulos ---- */
p,
.asoma-card-desc,
.asoma-card-sector,
.asoma-card-date,
.asoma-card-price,
.event-desc,
.form-label,
.input-hint,
.card-meta-text,
.filter-pill:not(.active),
.nav-item:not(.active) .nav-label {
  font-weight: 400 !important; /* Regular */
}

h1, h2, h3, h4, h5, h6,
.event-card-title,
.section-title,
.hero-title,
.modal-title,
.asoma-logo-text,
.asoma-card-venue {
  font-weight: 800 !important; /* Bold */
}

.filter-pill.active,
.nav-item.active .nav-label,
.tab-btn.active,
.btn-card-action.active,
.btn-card-action.fav-active,
.btn-primary,
.selected,
:checked + label {
  font-weight: 800 !important; /* Bold cuando está seleccionado */
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

ul {
  list-style: none;
}

input,
select {
  font-family: inherit;
}

/* ---- Scrollbars ---- */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* ============================================================
   LAYOUT — Shell
   ============================================================ */
#app {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1250;
  padding: 0 0 20px;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

/* Estado Colapsado en Escritorio */
body.sidebar-collapsed {
  --sidebar-w: 0px !important;
}

body.sidebar-collapsed #sidebar {
  transform: translateX(-100%);
  box-shadow: none;
}

body.sidebar-collapsed #main {
  margin-left: 0 !important;
}

body.sidebar-collapsed .premium-banner {
  left: 0 !important;
}

/* Botón colapsar en el encabezado del sidebar */
.btn-sidebar-collapse {
  background: #141b26;
  border: 1px solid #283548;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-sidebar-collapse:hover {
  background: #1e293b;
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.05);
}

/* Botón toggle en el Topbar */
.btn-topbar-sidebar-toggle {
  background: #141b26;
  border: 1px solid #283548;
  color: #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-topbar-sidebar-toggle:hover {
  background: #1e293b;
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.05);
}

body.sidebar-collapsed .btn-topbar-sidebar-toggle {
  background: rgba(204, 255, 0, 0.12);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(204, 255, 0, 0.3);
}

/* Botón flotante para reabrir cuando esté colapsado */
.btn-floating-sidebar-toggle {
  position: fixed;
  left: 0;
  top: 130px;
  z-index: 95;
  background: #0f172a;
  color: var(--accent);
  border: 1px solid #334155;
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  display: none;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 3px 6px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.btn-floating-sidebar-toggle:hover {
  background: #1e293b;
  padding-left: 18px;
  box-shadow: 0 0 18px rgba(204, 255, 0, 0.4);
}

body.sidebar-collapsed .btn-floating-sidebar-toggle {
  display: inline-flex;
}

/* Backdrop móvil */
.sidebar-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.sidebar-open-mobile .sidebar-mobile-backdrop {
  display: block;
  opacity: 1;
}

.sidebar-logo {
  padding: 20px 16px 18px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}

.sidebar-nav {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 400; /* Regular por defecto */
  letter-spacing: 0.05em;
  color: var(--grey1);
  transition: color var(--transition), background var(--transition), transform var(--transition);
  cursor: pointer;
  user-select: none;
}

.nav-item:hover {
  color: var(--white);
  background: var(--surface2);
  border-radius: 10px;
}

.nav-item.active {
  color: #ffffff;
  background: var(--primary, #ff0000);
  border-radius: 10px;
  margin: 2px 10px;
  padding: 10px 14px;
  font-weight: 800; /* Bold al seleccionarse */
  font-weight: 800;
}

.nav-item.active .nav-icon-wrap {
  background: rgba(14, 15, 20, 0.22);
  color: var(--white, #eef1f2);
}

.nav-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.nav-icon-wrap svg {
  width: 20px;
  height: 20px;
  display: block;
}

.brand-accent {
  fill: #ff5927 !important;
  transition: fill 0.2s ease;
}

.nav-item.active .nav-icon-wrap svg .brand-accent {
  fill: #e2f576 !important;
}

html[data-theme="light"] .nav-icon-wrap svg {
  color: #0e0f14;
}

html[data-theme="light"] .nav-item.active .nav-icon-wrap svg {
  color: #ffffff;
}

html[data-theme="light"] .nav-item.active .nav-icon-wrap svg .brand-accent {
  fill: #ffffff !important;
}

.nav-item.active .nav-icon-wrap.home-icon {
  background: rgba(14, 15, 20, 0.22);
}

#nav-artist.active {
  background: var(--primary, #ff0000) !important;
  color: var(--white, #eef1f2) !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
}

#nav-artist.active .nav-icon-wrap {
  color: var(--white, #eef1f2) !important;
  background: rgba(14, 15, 20, 0.22) !important;
}

#nav-artist.active span {
  color: var(--white, #eef1f2) !important;
  font-weight: 800 !important;
}

/* ---- Library Section ---- */
.sidebar-library {
  padding: 16px 0 0;
  flex: 1;
}

.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey1);
}

.library-add-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface3);
  color: var(--white);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  cursor: pointer;
  line-height: 1;
}

.library-add-btn:hover {
  background: var(--accent);
  color: #000;
}

.library-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--grey1);
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
}

.library-item:hover {
  color: var(--white);
  background: var(--surface2);
}

.lib-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.lib-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.lib-icon.cal {
  background: var(--cat-convocatorias, #fd494a);
  color: #eef1f2;
}

.lib-icon.save {
  background: var(--cat-artes, #9b72f2);
  color: #eef1f2;
}

.lib-icon.fol {
  background: var(--surface3);
}

.lib-icon.playlist {
  overflow: hidden;
  border-radius: 6px;
}

.lib-icon.playlist img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.lib-text {
  min-width: 0;
  flex: 1;
}

.lib-text-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--white);
}

.lib-text-sub {
  font-size: 10px;
  color: var(--grey2);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---- Create Event Button ---- */
.create-event-btn {
  margin: 16px 12px 0;
  padding: 13px 16px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}

.create-event-btn:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
}

/* ---- Main Content Area ---- */
#main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Top Bar ---- */
#topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1200;
  overflow: visible !important;
  gap: 16px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--grey1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all var(--transition);
  cursor: pointer;
}

.topbar-nav-btn:hover {
  background: var(--surface3);
  color: var(--white);
}

.search-wrap {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 16px 8px 38px;
  color: var(--white);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}

.search-input::placeholder {
  color: var(--grey2);
}

.search-input:focus {
  border-color: var(--grey1);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey2);
  font-size: 14px;
  pointer-events: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ingresar {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-ingresar:hover {
  border-color: var(--white);
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============================================================
   VIEWS GLOBAL
   ============================================================ */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* ============================================================
   VIEW — HOME / EXPLORE
   ============================================================ */
#view-home {
  display: none;
}

#view-home.active {
  display: block;
}


/* ---- Hero Banner ---- */
.hero-banner {
  position: relative;
  min-height: 560px;
  height: auto;
  border-radius: 20px;
  margin-bottom: 28px;
  overflow: hidden;
  background: #111;
  display: flex;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.5);
  transform: scale(1.02);
  transition: transform 8s ease;
}

.hero-banner:hover .hero-img {
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 52px 42px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 35%, rgba(0, 0, 0, 0.55) 75%, rgba(0, 0, 0, 0.2) 100%);
  gap: 10px;
}

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.hero-title {
  font-size: 44px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  white-space: pre-line;
  color: #ffffff;
}

.hero-desc {
  font-size: 15px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 14px;
  max-width: 640px;
  line-height: 1.5;
}

/* ---- Módulo Principal: ¿Qué quieres vivir hoy? ---- */
.hero-vivir-module {
  margin-top: 12px;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-vivir-search-row,
.hero-vivir-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-vivir-trigger {
  flex: 1;
  min-width: 280px;
  background: rgba(14, 15, 20, 0.88);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: text;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero-vivir-trigger:hover {
  border-color: #ff3b00;
  background: rgba(20, 22, 30, 0.96);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255, 59, 0, 0.25);
}

.hero-vivir-trigger:focus-within {
  border-color: #ff3b00;
  background: rgba(20, 22, 30, 0.98);
  box-shadow: 0 10px 30px rgba(255, 59, 0, 0.35);
}

.hero-vivir-search-icon {
  display: flex;
  align-items: center;
  color: #ff3b00;
}

.hero-vivir-search-icon svg {
  width: 20px;
  height: 20px;
}

.hero-vivir-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  min-width: 0;
  line-height: 1.3;
}

.hero-vivir-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  transition: color 0.2s ease;
}

.hero-search-clear-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.hero-search-clear-btn:hover {
  background: #ff3b00;
}

.hero-vivir-text {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-vivir-kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-vivir-btn {
  background: #ff3b00;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 24px rgba(255, 59, 0, 0.45);
}

.hero-vivir-btn:hover {
  background: #e63500;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 59, 0, 0.65);
}

.hero-vivir-moods-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-vivir-moods-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
}

.hero-vivir-moods-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-vivir-pill {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.hero-vivir-pill:hover {
  background: rgba(255, 89, 39, 0.25);
  border-color: #ff5927;
  color: #ffffff;
  transform: translateY(-1px);
}

.hero-vivir-pill-icon {
  display: inline-flex;
  align-items: center;
}

.hero-vivir-pill-icon svg {
  width: 14px;
  height: 14px;
}

/* Modo Blanco adaptativo para el Hero */
html[data-theme="light"] .hero-vivir-trigger,
body.theme-light .hero-vivir-trigger {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .hero-vivir-trigger:focus-within,
body.theme-light .hero-vivir-trigger:focus-within {
  border-color: #ff3b00 !important;
  box-shadow: 0 10px 30px rgba(255, 59, 0, 0.2) !important;
}

html[data-theme="light"] .hero-vivir-input,
body.theme-light .hero-vivir-input {
  color: #0e0f14 !important;
}

html[data-theme="light"] .hero-vivir-input::placeholder,
body.theme-light .hero-vivir-input::placeholder {
  color: #64748b !important;
}

html[data-theme="light"] .hero-search-clear-btn,
body.theme-light .hero-search-clear-btn {
  background: #e2e8f0 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .hero-search-clear-btn:hover,
body.theme-light .hero-search-clear-btn:hover {
  background: #ff3b00 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .hero-vivir-text,
body.theme-light .hero-vivir-text {
  color: #0e0f14;
}

html[data-theme="light"] .hero-vivir-kbd,
body.theme-light .hero-vivir-kbd {
  color: #475569;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--grey1);
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-pill:hover {
  border-color: var(--white);
  color: var(--white);
}

.filter-pill.active {
  background: var(--white);
  color: #000;
  border-color: var(--white);
}

/* ---- Section ---- */
.section {
  padding: 28px 28px 12px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey1);
  transition: color var(--transition);
  cursor: pointer;
}

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

/* ---- Events Grid ---- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.event-card {
  cursor: pointer;
  transition: transform var(--transition);
}

.event-card:hover {
  transform: translateY(-3px);
}

.event-card:hover .event-card-img {
  filter: brightness(0.65) grayscale(100%);
}

.event-card-img-wrap {
  aspect-ratio: 1 / 1; /* Estándar 1080x1080 (1:1 formato cuadrado) */
  overflow: hidden;
  border-radius: var(--radius);
  background: #000000;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  filter: none !important;
  transition: transform 0.35s ease;
}

.event-card:hover .event-card-img {
  transform: scale(1.06);
}

.event-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--grey1);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Spaces Grid ---- */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.space-card {
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition);
}

.space-card:hover {
  transform: translateY(-5px);
}

.space-avatar-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface2);
  margin: 0 auto 10px;
  border: 3px solid var(--border);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition), transform var(--transition);
}

.space-card:hover .space-avatar-wrap {
  border-color: var(--accent);
  transform: scale(1.05);
}

.space-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) brightness(0.85);
  transition: filter 0.3s ease;
}

.space-card:hover .space-avatar {
  filter: grayscale(0%) brightness(1.0);
}

.space-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.space-type {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey1);
  letter-spacing: 0.04em;
}

/* ---- Interests Grid ---- */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.interest-card {
  position: relative;
  aspect-ratio: 1.4/1;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.interest-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.interest-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

.interest-card:hover::before {
  opacity: 1;
}

.interest-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 1;
  position: relative;
}

.interest-icon {
  position: absolute;
  bottom: -5px;
  right: -5px;
  font-size: 55px;
  opacity: 0.15;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  z-index: 0;
}

.interest-card:hover .interest-icon {
  transform: scale(1.3) rotate(-10deg);
  opacity: 0.4;
}

/* ---- Footer ---- */
.kawsay-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 28px 20px;
  margin-top: 20px;
}

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

.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--grey1);
  line-height: 1.6;
  max-width: 220px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey1);
  margin-bottom: 14px;
}

.footer-link {
  display: block;
  font-size: 13px;
  color: var(--grey1);
  margin-bottom: 8px;
  transition: color var(--transition);
  cursor: pointer;
}

.footer-link:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--grey1);
  transition: all var(--transition);
  cursor: pointer;
}

.social-icon:hover {
  background: var(--accent);
  color: #000;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--grey2);
}

/* ---- Premium Banner ---- */
.premium-banner {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 80;
  gap: 20px;
}

.premium-banner-text strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.premium-banner-text span {
  font-size: 11px;
  color: var(--grey1);
}

.btn-premium {
  padding: 10px 24px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 20px;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-premium:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
}

.premium-close {
  font-size: 18px;
  color: var(--grey2);
  cursor: pointer;
  transition: color var(--transition);
  flex-shrink: 0;
}

.premium-close:hover {
  color: var(--white);
}

/* ============================================================
   VIEW — CALENDAR WEEK
   ============================================================ */
#view-calendar-week {
  display: none;
}

#view-calendar-week.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ============================================================
   VIEW — CALENDAR MONTH
   ============================================================ */
#view-calendar-month {
  display: none;
}

#view-calendar-month.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ---- Calendar Common ---- */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.cal-title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex: 1;
}

.cal-view-toggles {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.cal-toggle {
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--grey1);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: none;
}

.cal-toggle:not(:last-child) {
  border-right: 1px solid var(--border);
}

.cal-toggle.active {
  background: var(--white);
  color: #000;
}

.cal-toggle:hover:not(.active) {
  color: var(--white);
  background: var(--surface2);
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--surface2);
  color: var(--grey1);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.cal-nav-btn:hover {
  background: var(--surface3);
  color: var(--white);
}

.cal-today-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: all var(--transition);
  cursor: pointer;
  background: none;
}

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

/* ---- WEEK VIEW ---- */
.week-grid-wrap {
  flex: 1;
  overflow: auto;
  position: relative;
}

.week-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  min-width: 700px;
  position: relative;
}

.week-day-header {
  display: contents;
}

.week-header-empty {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 12px 0;
}

.week-day-col-header {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  text-align: center;
}

.week-day-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--grey1);
  margin-bottom: 4px;
}

.week-day-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.week-day-col-header.today .week-day-num {
  background: var(--accent);
  color: #000;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 15px;
}

/* Time rows */
.week-body {
  display: contents;
}

.week-time-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  height: 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.week-time-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey2);
  letter-spacing: 0.04em;
}

.week-day-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  height: 80px;
  position: relative;
}

/* Current time line */
.current-time-line {
  position: absolute;
  left: 60px;
  right: 0;
  height: 2px;
  background: var(--accent);
  z-index: 20;
  pointer-events: none;
}

.current-time-line::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* Event cards on week view */
.week-event-card {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 6px;
  padding: 8px 10px;
  z-index: 10;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.week-event-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 15;
}

.week-event-card.soldout {
  background: var(--white);
  color: #000;
}

.week-event-card.standard {
  background: var(--surface3);
  color: var(--white);
  border: 1px solid var(--border);
}

.week-event-card.accent {
  background: var(--accent);
  color: #000;
}

.week-event-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 2px;
  margin-bottom: 4px;
}

.week-event-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 3px;
}

.week-event-sub {
  font-size: 10px;
  opacity: 0.65;
  font-family: var(--font-mono);
}

/* ---- MONTH VIEW ---- */
.month-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.month-calendar-wrap {
  flex: 1;
  overflow: auto;
  padding: 0;
}

.month-grid {
  width: 100%;
  border-collapse: collapse;
}

.month-grid th {
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey1);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.month-grid td {
  border: 1px solid var(--border);
  padding: 8px;
  vertical-align: top;
  height: 110px;
  width: calc(100% / 7);
  cursor: pointer;
  transition: background var(--transition);
}

.month-grid td:hover {
  background: var(--surface2);
}

.month-grid td.other-month {
  opacity: 0.35;
}

.month-grid td.today {
  background: rgba(198, 241, 53, 0.06);
}

.month-grid td.selected {
  background: var(--surface2);
}

.month-day-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.today .month-day-num {
  background: var(--accent);
  color: #000;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
}

.month-cell-event {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--grey1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.month-event-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 3px;
}

.month-cell-photo {
  width: 100%;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(100%) brightness(0.8);
  margin-top: 4px;
}

/* ---- Month Sidebar ---- */
.month-sidebar {
  width: 260px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.month-sidebar-section {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.month-sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--grey1);
  margin-bottom: 12px;
}

/* Upcoming Event Cards */
.upcoming-event-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface2);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid transparent;
}

.upcoming-event-card:hover {
  background: var(--surface3);
  border-color: var(--border);
}

.upcoming-event-card.selected {
  border-color: var(--accent);
}

.upcoming-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 2px;
}

.upcoming-date-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--grey1);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.upcoming-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

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

.upcoming-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey1);
  margin-bottom: 2px;
}

.upcoming-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-venue {
  font-size: 10px;
  color: var(--grey2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tickets card */
.tickets-reminder-card {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border);
}

.tickets-reminder-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.tickets-reminder-sub {
  font-size: 11px;
  color: var(--grey1);
  margin-bottom: 14px;
  line-height: 1.5;
}

.btn-ver-tickets {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 6px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-ver-tickets:hover {
  background: var(--accent-dk);
}

/* ============================================================
   MODAL — CREAR EVENTO
   ============================================================ */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 1000000 !important;
  display: none;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  padding: calc(28px + env(safe-area-inset-top, 20px)) 16px calc(36px + env(safe-area-inset-bottom, 24px)) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

.modal-box {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  width: 850px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto !important;
  margin: auto !important;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.95);
  position: relative !important;
  z-index: 1000000 !important;
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1) !important;
}

/* Indicador visual sutil cuando un modal está protegido contra cierres accidentales */
@keyframes modalProtectedShake {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.01);
  }

  50% {
    transform: scale(0.996);
  }

  75% {
    transform: scale(1.005);
  }
}

.modal-protected-pulse {
  animation: modalProtectedShake 0.28s ease-out !important;
  box-shadow: 0 0 0 2px rgba(198, 241, 53, 0.45), 0 25px 60px rgba(0, 0, 0, 0.9) !important;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--grey1);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.modal-close:hover {
  background: var(--surface3);
  color: var(--white);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--grey1);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--grey2);
}

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

.form-select {
  -webkit-appearance: none;
}

.form-select option {
  background: var(--surface);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
}

/* ============================================================
   MODAL — TICKETS
   ============================================================ */
.ticket-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticket-tier-info {
  flex: 1;
}

.ticket-tier-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 3px;
}

.ticket-tier-desc {
  font-size: 12px;
  color: var(--grey1);
}

.ticket-tier-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.btn-buy-ticket {
  padding: 10px 18px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-buy-ticket:hover {
  background: var(--accent-dk);
}

/* ============================================================
   UTILITIES & ANIMATIONS
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.4s ease both;
}

/* Staggered children */
.stagger>* {
  animation: fadeInUp 0.35s ease both;
}

.stagger>*:nth-child(1) {
  animation-delay: 0.05s;
}

.stagger>*:nth-child(2) {
  animation-delay: 0.10s;
}

.stagger>*:nth-child(3) {
  animation-delay: 0.15s;
}

.stagger>*:nth-child(4) {
  animation-delay: 0.20s;
}

.stagger>*:nth-child(5) {
  animation-delay: 0.25s;
}

.stagger>*:nth-child(6) {
  animation-delay: 0.30s;
}

/* Pulse for current-time line */
@keyframes pulse-line {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.current-time-line {
  animation: pulse-line 2s ease infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {

  .events-grid,
  .spaces-grid,
  .interests-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-w: 160px;
  }

  .hero-title {
    font-size: 34px;
  }

  .events-grid,
  .spaces-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .interests-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .month-sidebar {
    width: 220px;
  }
}

/* ============================================================
   PROFILE SWITCHER & ADMIN DASHBOARD STYLES
   ============================================================ */
.profile-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px 3px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.profile-select {
  background: transparent;
  color: var(--white);
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  padding: 4px 6px;
}

.profile-select option {
  background: var(--surface);
  color: var(--white);
}

.btn-admin-mod {
  background: #e53935;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-admin-mod:hover {
  background: #d32f2f;
}

.badge-pending-count {
  background: #fff;
  color: #e53935;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

/* Badges de Estado */
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-badge.pending {
  background: #ff9800;
  color: #000;
}

.status-badge.approved {
  background: var(--accent);
  color: #000;
}

.status-badge.rejected {
  background: var(--red);
  color: #fff;
}

/* Modal de Moderación Admin */
.mod-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 13px;
}

.mod-table th,
.mod-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.mod-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey1);
  text-transform: uppercase;
}

.mod-actions {
  display: flex;
  gap: 8px;
}

.btn-action-approve {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

.btn-action-reject {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

/* Targetas con acciones (Favoritos, RSVP, Editar y Eliminar) */
.event-card-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-mgmt-actions,
.card-user-actions {
  display: flex;
  gap: 4px;
  width: 100%;
  align-items: center;
}

.card-user-actions {
  justify-content: space-between;
}

.btn-card-action {
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-card-action:hover {
  background: var(--surface2);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-card-action.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn-card-action.fav-active {
  background: #e53935;
  color: #fff;
  border-color: #e53935;
}

.btn-card-action.btn-card-edit {
  color: var(--gold);
}

.btn-card-action.btn-card-edit:hover {
  background: rgba(234, 179, 8, 0.18);
  border-color: var(--gold);
  color: #fff;
}

.btn-card-action.btn-card-delete {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-card-action.btn-card-delete:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fff;
}

/* ============================================================
   NUEVAS SECCIONES: CARRITO, UBICACIÓN, PREMIUM Y ÚNETE ARTISTA/ESPACIO
   ============================================================ */

/* 1. Ubicación Selector */
.location-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.location-select {
  background: transparent;
  color: var(--white);
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.location-select option {
  background: var(--surface);
}

.btn-topbar-geo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 59, 0, 0.16);
  border: 1px solid rgba(255, 59, 0, 0.5);
  color: #ff3b00;
  padding: 3px 8px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 2px;
  white-space: nowrap;
}

.btn-topbar-geo:hover {
  background: #ff3b00;
  color: #ffffff;
}

.spotlight-geo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #181a24;
  border: 1px solid rgba(255, 59, 0, 0.32);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  gap: 14px;
  flex-wrap: wrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spotlight-geo-card:hover {
  border-color: #ff3b00;
  box-shadow: 0 6px 18px rgba(255, 59, 0, 0.18);
}

.spotlight-geo-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 230px;
  min-width: 0;
}

.spotlight-geo-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 59, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff3b00;
  flex-shrink: 0;
}

.spotlight-geo-text {
  flex: 1;
  min-width: 0;
}

.spotlight-geo-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4px;
  line-height: 1.25;
}

.spotlight-geo-desc {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
  line-height: 1.35;
}

.btn-spotlight-geo-action {
  background: #ff3b00;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-spotlight-geo-action:hover {
  background: #e03400;
  transform: translateY(-1px);
}

.nearby-active-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 59, 0, 0.16) 0%, rgba(14, 15, 20, 0.95) 100%);
  border: 1px solid rgba(255, 59, 0, 0.4);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.nearby-banner-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b00;
  box-shadow: 0 0 0 0 rgba(255, 59, 0, 0.7);
  animation: nearbyPulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes nearbyPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 59, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 0, 0); }
}

.btn-nearby-pill {
  background: #1e293b;
  color: #fff;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.btn-nearby-pill:hover {
  background: #334155;
}

.btn-nearby-reset {
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.btn-nearby-reset:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* 2. Barra de Búsqueda Destacada "¿Qué quieres vivir hoy?" */
.search-wrap-lg {
  flex: 1;
  max-width: 550px;
  position: relative;
}

.search-input-lg {
  width: 100%;
  background: var(--surface2);
  border: 2px solid var(--accent);
  border-radius: 28px;
  padding: 10px 40px 10px 44px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  box-shadow: 0 0 15px rgba(198, 241, 53, 0.15);
  transition: all var(--transition);
}

.search-input-lg:focus {
  border-color: #fff;
  box-shadow: 0 0 25px rgba(198, 241, 53, 0.35);
}

.search-icon-lg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 18px;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--grey1);
  font-size: 12px;
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 5;
}

.search-clear-btn:hover {
  color: #ffffff;
  background: var(--primary, #ff0000);
}

/* 3. Botón de Carrito de Compras */
.btn-cart {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-cart:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.cart-badge {
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 900;
}

/* Cart Modal Drawer */
.cart-modal-box {
  max-width: 460px;
  width: min(94vw, 460px);
  margin: 0 auto !important;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  max-height: calc(100dvh - 56px);
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  pointer-events: auto !important;
}

.cart-modal-title {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
}

.cart-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff3b00;
}

.cart-notice-box {
  background: rgba(255, 59, 0, 0.08);
  border: 1px solid rgba(255, 59, 0, 0.28);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 11.5px;
  color: #cbd5e1;
  margin-top: 12px;
  line-height: 1.5;
}

.cart-notice-highlight {
  color: #ff3b00;
  font-weight: 800;
}

.cart-items-list {
  margin: 16px 0;
  max-height: 320px;
  overflow-y: auto;
}

.cart-empty-msg {
  text-align: center;
  color: var(--grey1);
  padding: 24px 0;
  font-size: 13.5px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.cart-item-sub {
  font-size: 12px;
  color: var(--grey1);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-num {
  font-weight: 800;
  font-size: 13px;
  min-width: 18px;
  text-align: center;
  color: var(--text);
}

.cart-qty-btn {
  background: var(--surface3);
  color: #fff;
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.cart-qty-btn:hover {
  background: #ff3b00;
  border-color: #ff3b00;
  color: #fff;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}

.cart-total-label {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.cart-total-val {
  color: #ff3b00;
  font-weight: 900;
  font-size: 20px;
}

/* 4. KAWSAY Premium Resaltado */
.sidebar-premium-highlight {
  margin: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #1c1c00 0%, #2a2300 100%);
  border: 2px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
  text-align: center;
}

.premium-badge-gold {
  display: inline-block;
  background: var(--gold-grad);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.sidebar-premium-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.sidebar-premium-desc {
  font-size: 11px;
  color: #ddd;
  margin-bottom: 12px;
}

.btn-premium-gold {
  background: var(--gold-grad);
  color: #000;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  transition: transform 0.2s;
}

.btn-premium-gold:hover {
  transform: scale(1.03);
}

/* 5. Pantalla "Únete como Artista o Espacio Cultural" */
#view-join {
  display: none;
  padding: 32px;
}

#view-join.active {
  display: block;
}

.join-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}

.join-header-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.join-header-desc {
  font-size: 16px;
  color: var(--grey1);
}

.join-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 950px;
  margin: 0 auto;
}

.join-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.join-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(198, 241, 53, 0.15);
}

.join-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.join-card-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.join-card-desc {
  font-size: 14px;
  color: var(--grey1);
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-join-action {
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  padding: 12px 24px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
}

/* ============================================================
   ESTILOS DEDICADOS: ESTUDIO DE ARTISTA & ECOSISTEMA VINCULADO
   ============================================================ */
.artist-dashboard-banner {
  background: linear-gradient(135deg, rgba(198, 241, 53, 0.12) 0%, rgba(20, 20, 24, 0.98) 100%), var(--surface2);
  border: 1px solid rgba(204, 255, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.artist-watermark-bg {
  position: absolute;
  top: 15px;
  right: 25px;
  font-family: var(--font-mono);
  font-size: clamp(60px, 9vw, 130px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.035);
  letter-spacing: 12px;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

.artist-dashboard-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(204, 255, 0, 0.08), transparent 70%);
  pointer-events: none;
}

.artist-guest-context-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 22px;
}

.artist-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.artist-avatar-container {
  position: relative;
  width: 108px;
  height: 108px;
  min-width: 108px;
  border-radius: 50%;
  cursor: pointer;
}

.artist-avatar-lg {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 8px 26px rgba(198, 241, 53, 0.28);
  background: #121216;
}

.artist-avatar-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border: 2px solid #000;
  transition: transform 0.15s ease;
}

.artist-avatar-container:hover .artist-avatar-edit-badge {
  transform: scale(1.1);
}

.artist-identity-col {
  flex: 1;
  min-width: 280px;
}

.artist-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.artist-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.artist-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.artist-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.artist-pill-discipline {
  background: rgba(204, 255, 0, 0.12);
  color: var(--accent);
  border: 1px solid rgba(204, 255, 0, 0.3);
}

.artist-pill-genre {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.artist-pill-city {
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.artist-bio-text {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.6;
  max-width: 760px;
  margin-bottom: 16px;
}

.artist-socials-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.artist-social-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #18181c;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #27272a;
  text-decoration: none;
  transition: all 0.15s ease;
}

.artist-social-chip:hover {
  background: #222228;
  color: #fff;
  border-color: #3f3f46;
}

.artist-social-chip.spotify:hover {
  color: #1db954;
  border-color: rgba(29, 185, 84, 0.4);
}

.artist-social-chip.instagram:hover {
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.4);
}

.artist-social-chip.bandcamp:hover {
  color: #629aa9;
  border-color: rgba(98, 154, 169, 0.4);
}

.artist-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Métricas del Artista */
.artist-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0 0;
}

.artist-stat-card {
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.artist-stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: rgba(24, 24, 30, 0.95);
}

.artist-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-mono);
  text-shadow: 0 0 14px rgba(198, 241, 53, 0.25);
}

.artist-stat-label {
  font-size: 11px;
  color: var(--grey1);
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

/* Tarjetas de Métricas del Espacio Cultural (Interactivas) */
.space-kpi-interactive {
  cursor: pointer;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.space-kpi-interactive:hover {
  transform: translateY(-4px) scale(1.01) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 18px rgba(204, 255, 0, 0.15) !important;
}

.space-kpi-interactive:active {
  transform: translateY(-1px) scale(0.99) !important;
}

/* Barra de 4 Acciones Principales (Propuesta Gráfica) */
.artist-action-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0 28px;
}

@media (max-width: 980px) {
  .artist-action-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .artist-action-bar-grid {
    grid-template-columns: 1fr;
  }
}

.btn-artist-action-blue {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-artist-action-blue:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.5);
}

.btn-artist-action-neon {
  background: var(--accent, #b4f732);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 18px rgba(180, 247, 50, 0.35);
}

.btn-artist-action-neon:hover {
  background: #c6ff3b;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(180, 247, 50, 0.6);
}

.btn-artist-action-yellow {
  background: #facc15;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.3);
}

.btn-artist-action-yellow:hover {
  background: #eab308;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(250, 204, 21, 0.5);
}

.btn-artist-action-dark {
  background: #1f242d;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-artist-action-dark:hover {
  background: #2a313d;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* Layout de 2 Columnas Principal */
.artist-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1080px) {
  .artist-dashboard-layout {
    grid-template-columns: 1fr;
  }
}

/* Grilla de 2 columnas de funciones en el dashboard */
.artist-functions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

@media (max-width: 700px) {
  .artist-functions-grid {
    grid-template-columns: 1fr;
  }
}

/* Historial de Temporadas Anteriores */
.artist-history-card {
  background: #121216;
  border: 1px solid #24242c;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.artist-history-card:hover {
  border-color: #3f3f4a;
  background: #16161c;
  transform: translateX(4px);
}

.artist-history-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #33333d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.artist-history-card:hover .artist-history-circle-btn {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(180, 247, 50, 0.1);
}

.artist-convocatoria-item {
  background: #181820;
  border: 1px solid #262630;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
  cursor: pointer;
}

.artist-convocatoria-item:hover {
  border-color: #ef4444;
}

/* Widgets del Panel Lateral */
.artist-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.artist-sidebar-widget {
  background: #121216;
  border: 1px solid #24242b;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.artist-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.artist-widget-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.artist-widget-link {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--grey1);
  cursor: pointer;
  transition: color 0.15s ease;
}

.artist-widget-link:hover {
  color: var(--accent);
}

.artist-community-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #1f1f26;
  margin-bottom: 14px;
}

.artist-avatar-stack {
  display: flex;
  align-items: center;
}

.artist-avatar-stack-item {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #18181f;
  border: 2px solid #121216;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  color: #fff;
}

.artist-avatar-stack-item:first-child {
  margin-left: 0;
}

.artist-activity-card {
  background: #181820;
  border: 1px solid #262630;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}

.artist-activity-card:hover {
  border-color: #3b82f6;
}

.artist-activity-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.artist-activity-username {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  color: #60a5fa;
}

.artist-activity-time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #71717a;
}

.artist-activity-text {
  font-size: 12px;
  color: #d4d4d8;
  line-height: 1.4;
  margin: 0;
}

.artist-promo-pro-banner {
  background: var(--accent, #b4f732);
  color: #000;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 8px 30px rgba(180, 247, 50, 0.25);
  position: relative;
  overflow: hidden;
}

.artist-promo-pro-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 8px 0 6px;
}

.artist-promo-pro-desc {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 600;
  margin-bottom: 16px;
}

.btn-promo-pro {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-promo-pro:hover {
  background: #18181c;
  transform: translateY(-1px);
}

.artist-fab-create {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent, #b4f732);
  color: #000;
  border: none;
  font-size: 32px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(180, 247, 50, 0.5);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.artist-fab-create:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 12px 36px rgba(180, 247, 50, 0.7);
}

/* Mini tarjeta de espacio vinculado en asistente de creación */
.event-space-selected-card {
  background: #141a24;
  border: 1px solid rgba(204, 255, 0, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeIn 0.2s ease;
}

.event-space-selected-img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* Pestañas de Sub-Navegación del Artista */
.artist-nav-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #222227;
  margin-bottom: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.artist-nav-tabs::-webkit-scrollbar {
  display: none;
}

.artist-nav-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 0;
  cursor: pointer;
  transition: color 0.15s ease;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.artist-nav-tab:hover {
  color: #ffffff;
}

.artist-nav-tab.active {
  color: var(--accent);
}

.artist-nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(198, 241, 53, 0.6);
}

.artist-tab-pane {
  display: none;
}

.artist-tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* Módulo Espacios Asociados */
.artist-spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.artist-space-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.artist-space-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.artist-space-img-wrap {
  position: relative;
  height: 140px;
}

.artist-space-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-space-relation-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #000;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.artist-space-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.artist-space-type {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.artist-space-title {
  font-size: 16px;
  font-weight: 900;
  margin: 4px 0 6px;
  color: #fff;
}

.artist-space-meta {
  font-size: 12px;
  color: var(--grey1);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.artist-space-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-open-venue-detail {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-open-venue-detail:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

/* Banner de Proposición de Sala */
.artist-propose-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(20, 20, 24, 0.9) 100%), #141418;
  border: 1px dashed var(--gold);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* Módulo Comunidad & Tablón Colaborativo */
.artist-community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.artist-community-card {
  background: #141418;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 18px;
  transition: all 0.15s ease;
}

.artist-community-card:hover {
  border-color: var(--accent);
}

.artist-collab-card {
  background: #141418;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  transition: all 0.15s ease;
}

.artist-collab-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.collab-tag-role {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: inline-block;
  margin-bottom: 10px;
}

/* Módulo Portafolio & Reproductor Musical */
.artist-audio-box {
  background: #121216;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 24px;
}

.artist-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  background: #18181c;
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.artist-track-item:hover {
  background: #1f1f26;
  border-color: #33333d;
}

.artist-track-item.playing {
  background: rgba(204, 255, 0, 0.08);
  border-color: rgba(204, 255, 0, 0.4);
}

.artist-play-btn-sm {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.15s ease;
}

.artist-play-btn-sm:hover {
  transform: scale(1.1);
}

.artist-dossier-card {
  background: #141418;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Módulo Convocatorias Postuladas */
.artist-app-card {
  background: #141418;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   ESTILOS DEDICADOS: GESTIÓN Y PROMOCIÓN DE ESPACIO CULTURAL
   ============================================================ */
.space-dashboard-banner {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(20, 20, 20, 0.95) 100%), var(--surface2);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.space-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
}

.space-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.space-spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: var(--transition);
}

.space-spec-card:hover {
  border-color: var(--gold);
}

/* ============================================================
   ESTILOS DEDICADOS: VISTA DE DETALLE COMPLETO DEL EVENTO
   ============================================================ */
.event-detail-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90vw;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.event-detail-hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.event-detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.event-detail-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding: 28px;
}

.event-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.event-meta-pill {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-meta-pill strong {
  color: var(--accent);
}

/* ============================================================
   ETIQUETAS VISUALES EN TARJETAS DE CARTELERA
   ============================================================ */
.card-badge-cat {
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  position: absolute;
  top: 8px;
  left: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  z-index: 2;
}

.card-badge-price {
  background: rgba(0, 0, 0, 0.85);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  position: absolute;
  bottom: 8px;
  right: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* ============================================================
   ESTILOS DEDICADOS: PANEL DE ADMINISTRACIÓN Y ANALÍTICAS (KPIs)
   ============================================================ */
.admin-dashboard-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(20, 20, 20, 0.95) 100%), var(--surface2);
  border: 1px solid #ef4444;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.admin-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.admin-kpi-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6);
}

.admin-kpi-card:active {
  transform: translateY(-1px);
}

.admin-kpi-val {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-top: 4px;
}

.admin-kpi-sub {
  font-size: 11px;
  color: var(--grey1);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-table th {
  background: var(--surface2);
  color: var(--grey1);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
}

/* ============================================================
   NUEVOS ESTILOS: MANUAL DE MARCA ASOMA — TIPOGRAFÍA & CATEGORÍAS
   ============================================================ */

/* Tipografía Oficial ASOMA: TBJ Margin Condensed para títulos y Aloevera Display para cuerpo */
h1,
.hero-title,
.calendar-view-title {
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif) !important;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 32px !important;
}

h2,
.section-title {
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif) !important;
  font-size: 24px !important;
  letter-spacing: 0.02em;
}

h3,
.event-card-title {
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif) !important;
  font-size: 19px !important;
  letter-spacing: 0.015em;
}

p,
.event-card-desc {
  font-family: var(--font-body, 'Aloevera Display', sans-serif);
  font-size: 14px !important;
}

/* Código de Colores Oficiales por Categoría — Paleta ASOMA */
.badge-cat-musica,
.cat-musica {
  background: var(--cat-musica, #ff5927) !important;
  color: #eef1f2 !important;
  font-weight: 800 !important;
}

.badge-cat-danza,
.cat-danza {
  background: var(--cat-danza, #e2f576) !important;
  color: #0e0f14 !important;
  font-weight: 800 !important;
}

.badge-cat-teatro,
.cat-teatro {
  background: var(--cat-teatro, #ff90ca) !important;
  color: #0e0f14 !important;
  font-weight: 800 !important;
}

.badge-cat-artes,
.cat-artes {
  background: var(--cat-artes, #9b72f2) !important;
  color: #eef1f2 !important;
  font-weight: 800 !important;
}

.badge-cat-cine,
.cat-cine {
  background: var(--cat-cine, #4c76fe) !important;
  color: #eef1f2 !important;
  font-weight: 800 !important;
}

.badge-cat-foto,
.cat-foto {
  background: var(--cat-foto, #87e58f) !important;
  color: #0e0f14 !important;
  font-weight: 800 !important;
}

.badge-cat-festivales,
.cat-festivales {
  background: var(--cat-festivales, #d9c7fd) !important;
  color: #0e0f14 !important;
  font-weight: 800 !important;
}

.badge-cat-convocatorias,
.cat-convocatorias {
  background: var(--cat-convocatorias, #fd494a) !important;
  color: #eef1f2 !important;
  font-weight: 900 !important;
}

/* Pastillas de Eventos en Calendario Mensual (Ajuste multilínea uniforme) */
.month-event-pill {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  line-height: 1.25 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Estrellas de Valoración */
.rating-stars {
  display: inline-flex;
  gap: 4px;
  color: #eab308;
  cursor: pointer;
  font-size: 18px;
}

.rating-stars .star-icon {
  transition: transform 0.15s ease, color 0.15s ease;
}

.rating-stars .star-icon:hover {
  transform: scale(1.25);
  color: #f59e0b;
}

/* Modal Legal / Términos & Privacidad */
.legal-content-box {
  max-height: 380px;
  overflow-y: auto;
  padding: 16px;
  background: #1e293b;
  border-radius: 8px;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.6;
}

.legal-content-box h4 {
  color: #ffffff;
  margin: 14px 0 6px;
  font-size: 15px;
}

/* ============================================================
   ESTILOS DE DASHBOARDS DEDICADOS & CONTROL DE ACCESO POR ROL
   ============================================================ */
.admin-dashboard-banner,
.artist-dashboard-banner,
.space-dashboard-banner {
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.95) 0%, rgba(15, 15, 20, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.admin-kpi-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-kpi-val {
  font-size: 28px;
  font-weight: 900;
  font-family: var(--font-mono);
}

.admin-kpi-sub {
  font-size: 11px;
  color: var(--grey1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--surface2);
  color: var(--grey1);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.btn-switch-profile {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-switch-profile:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* ============================================================
   FLOATING CENTRAL SPLIT MODAL — Event Detail
   LEFT: Full image with giant title overlay
   RIGHT: Scrollable info + sticky action bar
   ============================================================ */
.offcanvas-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.offcanvas-overlay.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

/* Floating panel — centered card */
.offcanvas-panel {
  width: min(95vw, 1140px);
  height: min(92vh, 720px);
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  transform: scale(0.93) translateY(24px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.offcanvas-overlay.open .offcanvas-panel {
  transform: scale(1) translateY(0) !important;
  opacity: 1 !important;
}

/* ── LEFT: Columna de Afiche Estándar 1080x1080 (1:1 Cuadrado) Completo ── */
.offcanvas-hero {
  flex: 0 0 460px;
  max-width: 48%;
  width: 460px;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offcanvas-hero-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain !important; /* Muestra el afiche 1080x1080 100% completo sin recortes */
  object-position: center;
  filter: none !important; /* Nitidez, color y brillo original */
  transition: transform 0.35s ease;
}

.offcanvas-overlay.open .offcanvas-hero-img {
  transform: scale(1);
}

/* Badges top-left */
.offcanvas-hero-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 7px;
  align-items: center;
  z-index: 5;
}

/* Se oculta el bloque superpuesto para que no tape el afiche 1080x1350 */
.offcanvas-hero-title-block {
  display: none !important;
}

.offcanvas-event-title {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  color: #ffffff;
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin: 0 0 14px;
  word-break: break-word;
}

.offcanvas-venue-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.offcanvas-venue-text {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.offcanvas-venue-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  min-width: 20px;
  max-width: 40px;
}

.offcanvas-rating-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── RIGHT: Scrollable info panel ── */
.offcanvas-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #111111;
  position: relative;
  overflow: hidden;
}

/* Close button — top-right of the INFO panel */
.offcanvas-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.offcanvas-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border-color: transparent;
}

/* Scrollable content zone */
.offcanvas-body {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 48px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.offcanvas-body::-webkit-scrollbar {
  width: 3px;
}

.offcanvas-body::-webkit-scrollbar-track {
  background: transparent;
}

.offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Section header "ⓘ ACERCA DEL ESPECTÁCULO" */
.detail-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 900;
  color: var(--accent, #d4ff00);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Info grid 2-column */
.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-info-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dic-label {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.dic-value {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dic-value.accent {
  color: var(--accent, #d4ff00);
}

.dic-value.gold {
  color: var(--gold, #eab308);
}

/* ── Sticky Action Bar at bottom of right panel ── */
.offcanvas-action-bar {
  flex-shrink: 0;
  padding: 12px 18px 18px;
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-cart-main {
  width: 100%;
  padding: 14px;
  background: var(--accent, #d4ff00);
  color: #000000;
  border: none;
  border-radius: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.btn-cart-main:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-cart-main:active {
  transform: translateY(0);
}

.btn-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-secondary-action {
  padding: 11px 14px;
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary-action:hover {
  background: #222;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-secondary-action.fav-active {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
}

.btn-secondary-action.rsvp-active {
  color: var(--accent, #d4ff00);
  border-color: rgba(212, 255, 0, 0.3);
  background: rgba(212, 255, 0, 0.06);
}

.detail-desc-text {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  font-size: 13px;
  margin: 0;
}

.detail-cast-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  flex-wrap: wrap;
}

.detail-cast-name {
  font-weight: 900;
  font-size: 13px;
  color: #ffffff;
}

.detail-cast-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono, monospace);
  margin-top: 2px;
}

.btn-goto-artist-from-event {
  background: rgba(204, 255, 0, 0.12);
  border: 1px solid rgba(204, 255, 0, 0.4);
  color: var(--accent, #d4ff00);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-goto-artist-from-event:hover {
  background: var(--accent, #d4ff00);
  color: #000000;
}

.detail-footer-note {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono, monospace);
  text-align: center;
}

/* ============================================================
   MODAL DETALLE DEL EVENTO (OFFCANVAS) EN MODO BLANCO
   ============================================================ */
html[data-theme="light"] .offcanvas-panel,
body.theme-light .offcanvas-panel {
  background: #ffffff !important;
  border: 1px solid #dce1e8 !important;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.22) !important;
}

html[data-theme="light"] .offcanvas-left,
body.theme-light .offcanvas-left {
  background: #ffffff !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .offcanvas-close-btn,
body.theme-light .offcanvas-close-btn {
  background: #f1f4f7 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .offcanvas-close-btn:hover,
body.theme-light .offcanvas-close-btn:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .offcanvas-body,
body.theme-light .offcanvas-body {
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent !important;
}

html[data-theme="light"] .offcanvas-body::-webkit-scrollbar-thumb,
body.theme-light .offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18) !important;
}

html[data-theme="light"] .detail-section-header,
body.theme-light .detail-section-header {
  color: #ff3b00 !important;
}

html[data-theme="light"] .offcanvas-body p,
body.theme-light .offcanvas-body p,
html[data-theme="light"] .detail-desc-text,
body.theme-light .detail-desc-text {
  color: #334155 !important;
}

html[data-theme="light"] .detail-info-card,
body.theme-light .detail-info-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .detail-info-card:hover,
body.theme-light .detail-info-card:hover {
  border-color: #ff3b00 !important;
}

html[data-theme="light"] .dic-label,
body.theme-light .dic-label {
  color: #64748b !important;
}

html[data-theme="light"] .dic-value,
body.theme-light .dic-value,
html[data-theme="light"] .detail-venue-val,
body.theme-light .detail-venue-val {
  color: #0e0f14 !important;
}

html[data-theme="light"] .dic-value.accent,
body.theme-light .dic-value.accent {
  color: #ff3b00 !important;
}

html[data-theme="light"] .dic-value.gold,
body.theme-light .dic-value.gold {
  color: #c2410c !important;
}

html[data-theme="light"] .detail-cast-card,
body.theme-light .detail-cast-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .detail-cast-name,
body.theme-light .detail-cast-name {
  color: #0e0f14 !important;
}

html[data-theme="light"] .detail-cast-meta,
body.theme-light .detail-cast-meta {
  color: #64748b !important;
}

html[data-theme="light"] .btn-goto-artist-from-event,
body.theme-light .btn-goto-artist-from-event {
  background: #ff3b00 !important;
  border: 1px solid #ff3b00 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .btn-goto-artist-from-event:hover,
body.theme-light .btn-goto-artist-from-event:hover {
  background: #d93200 !important;
  border-color: #d93200 !important;
}

html[data-theme="light"] .detail-footer-note,
body.theme-light .detail-footer-note {
  color: #94a3b8 !important;
}

html[data-theme="light"] .offcanvas-action-bar,
body.theme-light .offcanvas-action-bar {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .btn-cart-main,
body.theme-light .btn-cart-main {
  background: #ff3b00 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 59, 0, 0.28) !important;
}

html[data-theme="light"] .btn-cart-main:hover,
body.theme-light .btn-cart-main:hover {
  background: #d93200 !important;
}

html[data-theme="light"] .btn-secondary-action,
body.theme-light .btn-secondary-action {
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .btn-secondary-action:hover,
body.theme-light .btn-secondary-action:hover {
  background: #f1f5f9 !important;
  color: #0e0f14 !important;
  border-color: #94a3b8 !important;
}

html[data-theme="light"] .btn-secondary-action.fav-active,
body.theme-light .btn-secondary-action.fav-active {
  background: rgba(244, 63, 94, 0.1) !important;
  color: #e11d48 !important;
  border-color: #f43f5e !important;
}

html[data-theme="light"] .btn-secondary-action.rsvp-active,
body.theme-light .btn-secondary-action.rsvp-active {
  background: rgba(255, 59, 0, 0.1) !important;
  color: #ff3b00 !important;
  border-color: #ff3b00 !important;
}

html[data-theme="light"] #btn-detail-promo-qr,
body.theme-light #btn-detail-promo-qr {
  background: #f1f5f9 !important;
  color: #0e0f14 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] #btn-detail-promo-qr:hover,
body.theme-light #btn-detail-promo-qr:hover {
  background: #e2e8f0 !important;
  border-color: #ff3b00 !important;
}

html[data-theme="light"] #btn-detail-my-ticket-qr,
body.theme-light #btn-detail-my-ticket-qr {
  background: rgba(22, 163, 74, 0.1) !important;
  color: #15803d !important;
  border-color: #22c55e !important;
}

html[data-theme="light"] #btn-detail-pending-order,
body.theme-light #btn-detail-pending-order {
  background: rgba(14, 165, 233, 0.1) !important;
  color: #0284c7 !important;
  border-color: #0284c7 !important;
}

html[data-theme="light"] #btn-detail-open-scanner,
body.theme-light #btn-detail-open-scanner {
  background: rgba(37, 99, 235, 0.1) !important;
  color: #1d4ed8 !important;
  border-color: #2563eb !important;
}

html[data-theme="light"] #btn-detail-edit-event,
body.theme-light #btn-detail-edit-event {
  background: #f8fafc !important;
  color: #b45309 !important;
  border-color: #d97706 !important;
}

html[data-theme="light"] #btn-detail-delete-event,
body.theme-light #btn-detail-delete-event {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #b91c1c !important;
  border-color: #ef4444 !important;
}

/* ── Responsive: stacked on mobile ── */
@media (max-width: 640px) {
  .offcanvas-panel {
    flex-direction: column !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
  }

  .offcanvas-hero {
    order: 1 !important;
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 48vh !important;
    aspect-ratio: 1 / 1 !important;
    background: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .offcanvas-hero-img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
  }

  .offcanvas-body {
    padding: 14px 16px 10px !important;
  }

  .offcanvas-action-bar {
    padding: 10px 14px 14px !important;
  }
}

/* Left header inside offcanvas-left-header (unused now, kept for compat) */
.offcanvas-left-header {
  display: none;
}

.hero-rating-row {
  display: none;
}



/* Layer legal/confirmation modals cleanly on top of auth modal */
#modal-terms,
#modal-privacy,
#modal-email-confirm {
  z-index: 1000005 !important;
}

/* Admin Pending Moderation Table & Drawer Styles */
.admin-pending-row {
  transition: background-color 0.2s ease;
}

.admin-pending-row:hover {
  background: rgba(239, 68, 68, 0.08) !important;
}

.admin-pending-row:hover .admin-pending-title {
  color: var(--accent) !important;
}

.admin-pending-title {
  cursor: pointer;
  transition: color 0.15s ease;
}

.admin-pending-title:hover {
  color: var(--accent) !important;
}

.btn-action-preview {
  transition: all 0.15s ease;
}

.btn-action-preview:hover {
  background: var(--surface4) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ============================================================
   MOBILE APP SHELL & RESPONSIVE SYSTEM (<= 768px)
   ============================================================ */
@media (min-width: 769px) {
  #topbar {
    height: var(--topbar-h);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .topbar-row-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
  }

  .topbar-left-zone {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
  }

  .topbar-brand-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .topbar-search-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 620px;
    min-width: 0;
  }

  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .topbar-auth-btns {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .topbar-mobile-brand,
  .btn-sidebar-construction-mobile,
  .month-mobile-dots {
    display: none !important;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
  }

  /* Evitar zoom automático en iOS al enfocar campos */
  .modal-box input,
  .modal-box select,
  .modal-box textarea,
  .profile-modal-card input,
  .profile-modal-card select,
  .profile-modal-card textarea,
  .search-input-lg {
    font-size: 16px !important;
  }

  .btn-floating-sidebar-toggle {
    display: none !important;
  }

  /* 1. Sidebar Móvil tipo Drawer App */
  #sidebar {
    width: min(82vw, 300px) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 100000 !important;
    box-shadow: none;
    display: flex !important;
    padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
  }

  body.sidebar-open-mobile #sidebar {
    transform: translateX(0) !important;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.88) !important;
  }

  .sidebar-mobile-backdrop {
    z-index: 99999 !important;
  }

  .btn-sidebar-construction-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
  }

  #main {
    margin-left: 0 !important;
    width: 100% !important;
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* 2. Topbar Compacto Estilo App Móvil (2 Filas Limpias) */
  #topbar {
    padding: calc(8px + env(safe-area-inset-top)) 14px 10px !important;
    margin: 0 -12px 4px !important;
    gap: 8px !important;
    height: auto !important;
    background: rgba(10, 10, 14, 0.94) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    z-index: 95;
  }

  .topbar-row-primary {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .topbar-left-zone {
    display: contents !important;
  }

  .topbar-brand-left {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0;
  }

  .btn-topbar-sidebar-toggle {
    margin-right: 0 !important;
    width: 34px !important;
    height: 34px !important;
  }

  .topbar-mobile-brand {
    display: inline-flex !important;
    align-items: baseline;
    gap: 4px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
  }

  .topbar-mobile-brand span {
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
  }

  .topbar-actions {
    order: 2 !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex-shrink: 0;
    margin-left: auto !important;
  }

  .topbar-construction-badge {
    display: none !important;
  }

  .btn-cart {
    padding: 6px 10px !important;
    font-size: 11px !important;
    border-radius: 18px !important;
  }

  .btn-admin-mod {
    padding: 6px 9px !important;
    font-size: 11px !important;
  }

  .topbar-auth-btns {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .topbar-auth-btns button {
    padding: 6px 9px !important;
    font-size: 11px !important;
  }

  .auth-reg-badge {
    display: none !important;
  }

  #topbar-user-badge {
    padding: 3px 6px 3px 4px !important;
    gap: 6px !important;
  }

  .topbar-search-cluster {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 4px !important;
  }

  .topbar-row-search {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .search-wrap-lg {
    flex: 1 !important;
    max-width: none !important;
    width: auto !important;
    margin-top: 0 !important;
  }

  .search-input-lg {
    padding: 8px 12px 8px 34px !important;
    height: 38px !important;
  }

  .location-wrap {
    display: flex !important;
    align-items: center !important;
    max-width: 140px !important;
    padding: 0 6px !important;
    height: 38px !important;
    border-radius: 20px !important;
    flex-shrink: 0 !important;
  }

  .location-select {
    font-size: 10.5px !important;
    padding: 4px 2px !important;
    max-width: 64px !important;
    text-overflow: ellipsis;
  }

  .btn-admin-mod .mod-label {
    display: none !important;
  }

  .hero-banner {
    min-height: 480px !important;
    height: auto !important;
    border-radius: 18px !important;
    margin-top: 4px !important;
  }

  .hero-content {
    min-height: 480px !important;
    padding: 28px 16px 22px !important;
    justify-content: flex-end !important;
  }

  .hero-badge {
    font-size: 9.5px !important;
    padding: 3px 8px !important;
  }

  .hero-content .premium-badge-gold {
    display: none !important;
  }

  .hero-title {
    font-size: clamp(26px, 7.5vw, 36px) !important;
    line-height: 1.05 !important;
    margin: 8px 0 6px !important;
    word-break: break-word !important;
  }

  .hero-desc {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
  }

  .hero-vivir-module {
    margin-top: 6px !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .hero-vivir-search-row {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .hero-vivir-trigger {
    width: 100% !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    gap: 8px !important;
  }

  .hero-vivir-text {
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .hero-vivir-kbd {
    display: none !important;
  }

  .hero-vivir-btn {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .hero-vivir-moods-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 2px !important;
  }

  .hero-vivir-moods-label {
    font-size: 10px !important;
    opacity: 0.8 !important;
    letter-spacing: 0.05em !important;
  }

  .hero-vivir-moods-list {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 2px 2px 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .hero-vivir-moods-list::-webkit-scrollbar {
    display: none !important;
  }

  .hero-vivir-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
  }

  .filter-bar {
    padding: 10px 12px !important;
    margin: 0 -12px;
    scroll-snap-type: x proximity;
  }

  .section {
    padding: 18px 2px 8px !important;
  }

  .section-title {
    font-size: 17px !important;
    line-height: 1.25 !important;
  }

  /* Ocultar secciones redundantes en móvil para limpiar la experiencia */
  .spotify-quick-grid,
  .section-interests {
    display: none !important;
  }

  /* Badge de recomendación elegante y sin tapar foto */
  .recom-card-reason-badge {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    max-width: 68% !important;
    font-size: 9px !important;
    padding: 3px 8px !important;
    border-radius: 5px !important;
    background: rgba(14, 15, 20, 0.88) !important;
    color: #fff !important;
    border-left: 2.5px solid #ff5927 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  }

  /* 4. Carruseles Horizontales Estilo App con Snap-Scroll */
  #view-home .events-grid,
  #view-home .spaces-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    padding-bottom: 14px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  #view-home .events-grid::-webkit-scrollbar,
  #view-home .spaces-grid::-webkit-scrollbar {
    display: none;
  }

  #view-home .event-card {
    flex: 0 0 82vw !important;
    scroll-snap-align: start;
    max-width: 310px !important;
  }

  #view-home .event-card-title {
    font-size: 13px !important;
  }

  #view-home .event-card-meta {
    font-size: 10.5px !important;
  }

  #view-home .space-card {
    flex: 0 0 124px !important;
    scroll-snap-align: start;
    max-width: 124px !important;
  }

  #view-home .space-avatar-wrap {
    width: 96px !important;
    height: 96px !important;
  }

  #view-convocatorias .events-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .interests-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .kawsay-footer {
    padding: 24px 14px 18px !important;
    margin: 18px -12px 0 !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .admin-dashboard-banner {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .admin-dashboard-banner h1 {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .admin-hero-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .admin-table-card {
    padding: 12px !important;
  }

  #input-admin-filter-spaces,
  #input-admin-filter-artists {
    min-width: 0 !important;
    width: 100% !important;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }

  /* 5. Floating Split Modal — Mobile App Sheet Layout */
  .offcanvas-panel {
    flex-direction: column !important;
    width: 100vw !important;
    height: 96dvh !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .offcanvas-left {
    order: 2;
    max-height: none !important;
    flex: 1;
    overflow-y: auto;
  }

  .offcanvas-hero {
    order: 1 !important;
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: 48vh !important;
    aspect-ratio: 1 / 1 !important;
    background: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .offcanvas-hero-img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
  }

  .offcanvas-left-header {
    padding: 16px 16px 0 !important;
  }

  .offcanvas-body {
    padding: 14px 16px 16px !important;
    gap: 14px !important;
  }

  .offcanvas-action-bar {
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom)) !important;
  }

  .offcanvas-box {
    width: 100% !important;
    max-width: 100% !important;
    height: 92dvh !important;
    top: auto !important;
    bottom: 0 !important;
    border-radius: 20px 20px 0 0 !important;
  }

  /* Modales en móvil: Centrados horizontalmente y en la parte superior con aislamiento de interacción */
  .modal-overlay,
  .profile-modal-overlay {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: calc(20px + env(safe-area-inset-top, 16px)) 16px calc(32px + env(safe-area-inset-bottom, 24px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }

  .modal-box,
  .cart-modal-box,
  .profile-modal-card,
  .qr-access-modal-card,
  .pref-modal-box {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
    max-height: calc(100dvh - 44px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 20px 16px calc(22px + env(safe-area-inset-bottom, 16px)) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65) !important;
  }

  /* 6. Mobile Bottom Navigation Bar (Native App Tab Dock) */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom));
    background: rgba(10, 12, 18, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99998;
    justify-content: space-around;
    align-items: center;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.65);
  }

  .mobile-nav-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    gap: 3px;
    cursor: pointer;
    flex: 1;
    padding: 4px 2px;
    min-width: 0;
    transition: all 0.15s ease;
  }

  .mobile-nav-item.active {
    color: var(--accent) !important;
  }

  .mobile-nav-item.active .mobile-nav-icon {
    transform: translateY(-2px);
  }

  .mobile-nav-icon {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
  }

  .mobile-nav-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto;
  }

  .mobile-nav-create-btn svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .mobile-nav-label {
    font-size: 9.5px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-nav-create-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(198, 241, 53, 0.45);
    margin-bottom: 1px;
  }

  .artist-fab-create {
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    right: 16px !important;
  }
}

@media (max-width: 540px) {

  .btn-cart .cart-label,
  .btn-admin-mod .mod-label {
    display: none !important;
  }

  .topbar-user-meta {
    display: none !important;
  }
}

/* Ocultar barra móvil y accesos en desktop */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  .spotify-quick-grid {
    display: none !important;
  }
}

/* ============================================================
   ESTILOS DE ONBOARDING RÁPIDO & SOCIAL AUTH (KAWSAY)
   ============================================================ */

/* Pestañas de Auth (Iniciar Sesión vs Crear Cuenta) */
.auth-tabs-row {
  display: flex;
  gap: 10px;
  margin: 18px 0 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-family: var(--font-sans);
  text-align: center;
}

.auth-tab-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.auth-tab-btn.active {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(226, 245, 118, 0.25);
}

/* Botones de Social Login (Google y Apple ID) */
.social-auth-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-family: var(--font-sans);
}

.social-btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

.social-btn-google:hover {
  background: #f3f4f6;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.social-btn-apple {
  background: #000000;
  color: #ffffff;
  border: 1px solid #374151;
}

.social-btn-apple:hover {
  background: #111827;
  border-color: #4b5563;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

/* Divisor de métodos de registro */
.social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0 16px;
  color: #64748b;
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #334155;
}

.social-divider span {
  padding: 0 10px;
}

/* Indicador de Fortaleza de Contraseña */
.password-strength-container {
  margin-top: 6px;
}

.password-strength-bar-bg {
  width: 100%;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.password-strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

.password-strength-text {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

/* Píldoras interactivas de Personalización Cultural */
.onboarding-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.onboarding-tag-pill {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.onboarding-tag-pill:hover {
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.onboarding-tag-pill.active {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(198, 241, 53, 0.4);
  font-weight: 800;
}

/* ============================================================
   PANTALLA 1: PERSONALIZA TU EXPERIENCIA CULTURAL (MODAL MODERNO)
   ============================================================ */
.pref-modal-box {
  max-width: 980px;
  width: 95vw;
  max-height: 92vh;
  background: #090c12;
  border: 1px solid #1f2737;
  border-radius: 18px;
  padding: 44px 48px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 40px rgba(204, 255, 0, 0.05);
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pref-modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: #141b26;
  border: 1px solid #283548;
  color: #94a3b8;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.pref-modal-close:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: var(--accent);
  transform: rotate(90deg);
}

.pref-modal-header {
  margin-bottom: 28px;
  padding-right: 40px;
}

.pref-main-title {
  font-family: var(--font-display, var(--font-heading, 'Inter', sans-serif));
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  color: #ffffff;
}

.pref-main-title .highlight {
  color: var(--accent);
  display: block;
  text-shadow: 0 0 25px rgba(204, 255, 0, 0.3);
}

.pref-main-subtitle {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  max-width: 680px;
}

.pref-step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.pref-step-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pref-step-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  background: #121824;
  color: var(--accent);
  border: 1px solid #273447;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.pref-step-heading {
  font-family: var(--font-display, var(--font-heading, sans-serif));
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.pref-step-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.pref-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

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

  .pref-modal-box {
    padding: 32px 24px;
  }
}

@media (max-width: 580px) {
  .pref-cards-grid {
    grid-template-columns: 1fr;
  }
}

.pref-card {
  background: #0f141d;
  border: 1px solid #1c2433;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-align: left;
  width: 100%;
}

.pref-card:hover {
  background: #151c28;
  border-color: #2e3b52;
  color: #ffffff;
  transform: translateY(-1px);
}

.pref-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pref-card-icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.pref-card-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #94a3b8;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pref-card-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #2b374a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}

/* Estado Activo (Pantalla 1 - Neon Green) */
.pref-card.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #000000 !important;
  box-shadow: 0 0 24px rgba(204, 255, 0, 0.35);
  transform: translateY(-1px);
}

.pref-card.active .pref-card-label {
  color: #000000 !important;
  font-weight: 900;
}

.pref-card.active .pref-card-icon {
  filter: brightness(0);
}

.pref-card.active .pref-card-check {
  border-color: #000000;
  color: #000000;
  background: transparent;
  font-weight: 900;
}

.pref-card.active .pref-card-check::after {
  content: '✓';
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pref-modal-actions {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #1c2433;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pref-submit-btn {
  width: 100%;
  padding: 18px 24px;
  background: var(--accent);
  color: #000000;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 25px rgba(204, 255, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pref-submit-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 35px rgba(204, 255, 0, 0.45);
  transform: translateY(-1px);
}

.pref-skip-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px;
  transition: color 0.2s;
}

.pref-skip-btn:hover {
  color: #ffffff;
}

/* Banner de Recomendaciones Personalizadas en Home */
.personalized-recom-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(198, 241, 53, 0.35);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease-out;
}

.personalized-recom-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.personalized-recom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.personalized-recom-title {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.personalized-recom-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.personalized-chip {
  background: rgba(198, 241, 53, 0.15);
  color: var(--accent);
  border: 1px solid rgba(198, 241, 53, 0.3);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
}

/* Badge 'Recomendado para ti' en tarjetas */
.event-recommended-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   PÁGINA DE AMIGOS & COMUNIDAD CULTURAL (PERFIL ESPECTADOR)
   ============================================================ */

.friends-view-wrapper {
  background: #0a0a0c;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: var(--font-body);
}

/* Barra Superior de Amigos / Comunidad */
.friends-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: #0a0a0c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 60;
}

.friends-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.friends-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(198, 241, 53, 0.35);
}

.friends-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.friends-nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #888888;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.friends-nav-link:hover {
  color: #ffffff;
}

.friends-nav-link.active {
  color: var(--accent);
}

.friends-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(198, 241, 53, 0.6);
}

.friends-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #18181c;
  border: 1px solid #27272a;
  padding: 5px 14px 5px 6px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.friends-user-badge:hover {
  border-color: #3f3f46;
  background: #202024;
}

.friends-user-badge img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #3f3f46;
}

.friends-user-badge span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #e4e4e7;
  letter-spacing: 0.5px;
}

/* Contenido Principal */
.friends-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 36px 80px;
  position: relative;
}

.friends-watermark-bg {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 0;
  font-size: clamp(52px, 8.5vw, 115px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  z-index: 0;
}

.friends-hero-area {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 20px;
}

.friends-tag-pill {
  background: #ef4444;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.friends-hero-title {
  font-size: clamp(40px, 5.5vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #ffffff;
}

.friends-hero-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #888888;
  letter-spacing: 0.2px;
}

.friends-stat-card {
  background: #141416;
  border: 1px solid #232328;
  border-radius: 8px;
  padding: 14px 24px;
  min-width: 175px;
  text-align: right;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.friends-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.friends-stat-value {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  font-family: var(--font-mono);
}

/* Cuerpo con Marca Vertical y Rejilla */
.friends-body-wrap {
  display: flex;
  position: relative;
  gap: 20px;
  z-index: 1;
}

.friends-side-meta {
  width: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: #404048;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  user-select: none;
  padding-top: 16px;
  white-space: nowrap;
  gap: 20px;
}

.friends-main-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.7fr 1.05fr;
  gap: 36px;
}

/* Columna Izquierda: Lista de Amigos */
.friends-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.friends-list-title {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.friends-search-box {
  background: #141417;
  border: 1px solid #27272b;
  border-radius: 4px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 190px;
  transition: border-color 0.2s ease;
}

.friends-search-box:focus-within {
  border-color: var(--accent);
}

.friends-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  width: 100%;
}

.friends-search-input::placeholder {
  color: #55555c;
  text-transform: uppercase;
}

.friends-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.friend-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

.friend-card:hover {
  background: #18181d;
  border-color: #2f2f36;
  transform: translateY(-1px);
}

.friend-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.friend-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.friend-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #27272a;
}

.friend-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2.5px solid #131316;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(198, 241, 53, 0.7);
}

.friend-info {
  display: flex;
  flex-direction: column;
}

.friend-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
}

.friend-event-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #71717a;
  letter-spacing: 0.2px;
}

.friend-event-status strong {
  color: #ffffff;
  font-weight: 700;
}

.friend-event-status.empty {
  color: #52525b;
}

.friend-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-friend-view-profile {
  background: var(--accent);
  border: none;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(198, 241, 53, 0.2);
  transition: all 0.2s ease;
}

.btn-friend-view-profile:hover {
  background: #d6fa4f;
  box-shadow: 0 0 16px rgba(198, 241, 53, 0.4);
  transform: translateY(-1px);
}

.btn-friend-msg {
  background: #18181c;
  border: 1px solid #2c2c33;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-friend-msg:hover {
  background: #25252a;
  border-color: #44444e;
}

.btn-friend-invite {
  background: var(--accent);
  border: none;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(198, 241, 53, 0.25);
  transition: all 0.2s ease;
}

.btn-friend-invite:hover {
  background: #d6fa4f;
  box-shadow: 0 0 18px rgba(198, 241, 53, 0.45);
  transform: translateY(-1px);
}

.btn-friend-propose {
  background: #18181c;
  border: 1px solid #2c2c33;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-friend-propose:hover {
  background: #25252a;
  border-color: #44444e;
}

/* Sección: Planes para Compartir */
.friends-plans-section {
  margin-top: 44px;
}

.friends-plans-title {
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 20px;
}

.friends-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.friend-plan-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.friend-plan-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.friend-plan-media {
  position: relative;
  height: 180px;
  background: #1c1c20;
  overflow: hidden;
}

.friend-plan-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.friend-plan-card:hover .friend-plan-img {
  opacity: 0.85;
  transform: scale(1.03);
}

.friend-plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(18, 18, 20, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.friend-plan-avatars {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
}

.friend-plan-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #131316;
  margin-right: -6px;
  object-fit: cover;
  background: #3f3f46;
}

.friend-plan-more {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #131316;
  margin-right: -6px;
}

.friend-plan-details {
  padding: 16px 18px;
}

.friend-plan-title {
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.friend-plan-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Columna Derecha: Sidebar Social */
.friends-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.friends-sidebar-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  padding: 22px;
}

.friends-sidebar-title-red {
  color: #ef4444;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.friends-sidebar-title-green {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Solicitudes de Amistad */
.friend-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.friend-request-item:last-child {
  margin-bottom: 0;
}

.friend-request-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.friend-request-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #27272a;
}

.friend-request-name {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 2px;
}

.friend-request-mutual {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
}

.friend-request-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-req-accept {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-req-accept:hover {
  background: #d6fa4f;
  transform: scale(1.08);
}

.btn-req-reject {
  width: 28px;
  height: 28px;
  background: #18181c;
  border: 1px solid #2e2e34;
  border-radius: 6px;
  color: #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-req-reject:hover {
  background: #25252b;
  color: #ef4444;
  border-color: #ef4444;
}

/* Gustos Similares */
.friend-match-item {
  margin-bottom: 20px;
}

.friend-match-item:last-child {
  margin-bottom: 0;
}

.friend-match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.friend-match-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.friend-match-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #27272a;
}

.friend-match-name {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
}

.friend-match-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.friend-match-bar {
  height: 3px;
  background: #222227;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.friend-match-bar-fill {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(198, 241, 53, 0.5);
}

.friend-match-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  line-height: 1.45;
  text-transform: uppercase;
}

/* Tarjeta Encuentra Más Personas (Borde punteado) */
.friends-discover-card {
  border: 1px dashed #3f3f46;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.friends-discover-card:hover {
  border-color: var(--accent);
  background: rgba(198, 241, 53, 0.03);
}

.friends-discover-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #3f3f46;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #ffffff;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.friends-discover-card:hover .friends-discover-icon-wrap {
  border-color: var(--accent);
  color: var(--accent);
}

.friends-discover-title {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.friends-discover-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  line-height: 1.4;
  max-width: 250px;
  margin: 0 auto;
}

/* Footer Dedicado de Kawsay Red */
.friends-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #1f1f24;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.friends-footer-brand {
  max-width: 420px;
}

.friends-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.friends-footer-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.friends-footer-manifesto {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #52525b;
  text-transform: uppercase;
  line-height: 1.5;
}

.friends-footer-links-wrap {
  display: flex;
  gap: 48px;
}

.friends-footer-col-title {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.friends-footer-col-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.friends-footer-col-link:hover {
  color: var(--accent);
}

.friends-footer-copyright {
  width: 100%;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #3f3f46;
  text-transform: uppercase;
  margin-top: 24px;
}

/* Modal de Amigos Generales */
.friends-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 20px;
}

.friends-modal-card {
  background: #141417;
  border: 1px solid #27272b;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  animation: fadeInModal 0.2s ease;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.friends-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.friends-modal-title {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.friends-modal-close {
  background: transparent;
  border: none;
  color: #71717a;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.friends-modal-close:hover {
  color: #ffffff;
}

@media (max-width: 1024px) {
  .friends-main-grid {
    grid-template-columns: 1fr;
  }

  .friends-side-meta {
    display: none;
  }

  .friends-topbar {
    padding: 16px 20px;
  }

  .friends-container {
    padding: 24px 20px 60px;
  }
}

@media (max-width: 640px) {
  .friends-plans-grid {
    grid-template-columns: 1fr;
  }

  .friends-nav-links {
    gap: 16px;
  }

  .friends-footer-links-wrap {
    gap: 24px;
  }

  .friends-footer-copyright {
    text-align: left;
  }
}

/* ============================================================
   ESTRUCTURA DE PERFIL PÚBLICO / ESPECTADOR (REFERENCIA MATEO VELASCO)
   ============================================================ */

.public-profile-wrapper {
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: var(--font-body);
}

/* Topbar del Perfil */
.public-profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: #0a0a0c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 60;
}

.public-profile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.public-profile-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.public-profile-nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #888888;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.public-profile-nav-link:hover {
  color: #ffffff;
}

.public-profile-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-top-search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #141417;
  border: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-top-search:hover {
  border-color: #3f3f46;
  color: #fff;
}

.btn-top-myprofile {
  background: var(--accent);
  color: #000000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(198, 241, 53, 0.25);
  transition: all 0.2s ease;
}

.btn-top-myprofile:hover {
  background: #d6fa4f;
  transform: translateY(-1px);
}

/* Contenedor Principal */
.public-profile-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

/* Cabecera del Usuario */
.public-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 24px;
}

.public-profile-user-info {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.public-profile-avatar-container {
  position: relative;
  width: 104px;
  height: 104px;
  flex-shrink: 0;
}

.public-profile-avatar-img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  background: #27272a;
  border: 2px solid #27272b;
}

.public-profile-avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #18181c;
  border: 1.5px solid #27272b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s ease;
}

.public-profile-avatar-badge:hover {
  background: #27272b;
  color: #fff;
}

.public-profile-name {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--white);
}

.public-profile-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.public-profile-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.public-profile-tag-pill {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Estadísticas del Perfil */
.public-profile-stats {
  display: flex;
  gap: 36px;
  align-items: center;
  padding-top: 6px;
}

.public-profile-stat-box {
  text-align: right;
}

.public-profile-stat-num {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
  color: var(--white);
}

.public-profile-stat-num.highlight {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(198, 241, 53, 0.35);
}

.public-profile-stat-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--grey1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Pestañas de Sub-Navegación */
.public-profile-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  overflow-x: auto;
}

.public-profile-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--grey1);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 0;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.public-profile-tab:hover {
  color: var(--white);
}

.public-profile-tab.active {
  color: var(--accent);
}

.public-profile-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(198, 241, 53, 0.5);
}

/* Títulos de Sección */
.profile-section-title {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: var(--white);
}

/* Sección: Próximas Asistencias */
.profile-attendance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 44px;
}

.profile-ticket-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 175px;
  transition: all 0.2s ease;
}

.profile-ticket-card:hover {
  border-color: #333339;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.profile-ticket-badge {
  background: #ef4444;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-ticket-confirmed {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.profile-ticket-title {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.2;
}

.profile-ticket-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.profile-ticket-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1c1c20;
  padding-top: 14px;
  margin-top: 18px;
}

.profile-ticket-code {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
}

.profile-ticket-details-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.profile-ticket-details-btn:hover {
  text-shadow: 0 0 8px rgba(198, 241, 53, 0.6);
}

/* Tarjeta de Estado Vacío en Perfil */
.profile-empty-card {
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 42px 24px;
  text-align: center;
  transition: all 0.2s ease;
}

.profile-empty-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.profile-empty-card p {
  font-size: 13px;
  color: var(--grey1);
  max-width: 480px;
  margin: 0 auto 18px auto;
  line-height: 1.5;
}

.profile-empty-icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.profile-empty-icon svg {
  width: 36px;
  height: 36px;
}

.btn-profile-empty-action {
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-profile-empty-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-profile-empty-action.btn-profile-empty-outline {
  background: var(--surface2);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* Sección: Espacios que Sigues */
.profile-spaces-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.profile-spaces-link-all {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #71717a;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.profile-spaces-link-all:hover {
  color: var(--accent);
}

.profile-spaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.profile-space-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-space-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-space-badge-verified {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 11px;
  font-weight: 900;
}

.profile-space-title {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
  padding-right: 30px;
}

.profile-space-sector {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.profile-space-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  border-top: 1px solid #1c1c20;
  padding-top: 14px;
  margin-top: 18px;
}

.profile-space-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-weight: 700;
}

.profile-space-more-card {
  border: 1px solid #222227;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.profile-space-more-card:hover {
  border-color: var(--accent);
  background: rgba(198, 241, 53, 0.02);
}

.profile-space-more-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #3f3f46;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

.profile-space-more-card:hover .profile-space-more-icon {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-space-more-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sección: Historial de Asistencia */
.profile-history-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 60px;
}

.profile-history-item {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.profile-history-item:hover {
  background: #18181d;
  border-color: #2f2f36;
}

.profile-history-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-history-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #27272a;
  flex-shrink: 0;
}

.profile-history-title {
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 2px;
}

.profile-history-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.profile-history-right {
  text-align: right;
}

.profile-history-price {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.profile-history-status {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer Dedicado de Plataforma Cultural */
.public-profile-footer {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid #1f1f24;
}

.public-profile-footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.public-profile-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #ffffff;
}

.public-profile-footer-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: #71717a;
  line-height: 1.5;
  max-width: 320px;
}

.public-profile-footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.public-profile-footer-link {
  font-family: var(--font-body);
  font-size: 12px;
  color: #71717a;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.public-profile-footer-link:hover {
  color: var(--accent);
}

.public-profile-footer-socials {
  display: flex;
  gap: 12px;
}

.public-profile-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #141417;
  border: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.public-profile-social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.public-profile-footer-bottom {
  border-top: 1px solid #1c1c20;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #52525b;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .profile-attendance-grid {
    grid-template-columns: 1fr;
  }

  .profile-spaces-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .public-profile-footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .public-profile-topbar {
    padding: 16px 20px;
  }

  .public-profile-container {
    padding: 24px 20px 60px;
  }

  .public-profile-nav-links {
    display: none;
  }

  .profile-spaces-grid {
    grid-template-columns: 1fr;
  }

  .public-profile-stats {
    width: 100%;
    justify-content: space-between;
  }

  .public-profile-footer-content {
    grid-template-columns: 1fr;
  }

  .public-profile-footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ============================================================
   ESTILOS DINÁMICOS DE PESTAÑAS Y MODALES DE PERFIL DE ESPECTADOR
   ============================================================ */

/* Contenedores de Pestañas */
.profile-tab-content {
  display: none;
}

.profile-tab-content.active {
  display: block;
  animation: profileFadeIn 0.25s ease forwards;
}

@keyframes profileFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Barra de Contexto al Visitar Otro Perfil */
.public-profile-guest-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 10px;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-profile-back {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-profile-back:hover {
  background: var(--surface3);
  color: var(--white);
  border-color: var(--accent);
}

.btn-profile-msg {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-profile-msg:hover {
  background: var(--surface3);
  border-color: var(--accent);
}

.btn-profile-connect {
  background: var(--surface2);
  color: var(--white);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-profile-connect:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-profile-msg {
  background: #18181c;
  border: 1px solid #2c2c34;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Grilla de Comunidades */
.profile-communities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

.profile-community-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: all 0.2s ease;
}

.profile-community-card:hover {
  border-color: #3f3f46;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-com-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-com-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  background: #27272a;
  color: var(--accent);
  border: 1px solid rgba(198, 241, 53, 0.25);
}

.profile-com-title {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.profile-com-desc {
  font-size: 12px;
  color: #a1a1aa;
  line-height: 1.5;
  margin-bottom: 14px;
}

.profile-com-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-com-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #1c1c20;
  padding-top: 14px;
}

.btn-com-join {
  flex: 1;
  background: #1a1a20;
  border: 1px solid #2c2c34;
  color: #e4e4e7;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-com-join.joined {
  background: rgba(198, 241, 53, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

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

.btn-com-forum {
  background: #18181c;
  border: 1px solid #2c2c34;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-com-forum:hover {
  color: #fff;
  border-color: #52525b;
}

/* Grilla de Amigos en Perfil */
.profile-friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}

.profile-friend-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
}

.profile-friend-card:hover {
  border-color: #383840;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.profile-friend-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-friend-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #27272a;
}

.profile-friend-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease;
}

.profile-friend-name:hover {
  color: var(--accent);
}

.profile-friend-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  margin-top: 2px;
}

.profile-friend-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #1c1c20;
  padding-top: 12px;
}

.btn-profile-friend-action {
  flex: 1;
  background: #18181c;
  border: 1px solid #28282e;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-profile-friend-action:hover {
  border-color: var(--accent);
  color: #fff;
}

.btn-profile-friend-action.primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 900;
}

.btn-profile-friend-action.primary:hover {
  background: #d6fa4f;
}

/* Grilla de Recomendaciones */
.profile-recom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

.profile-recom-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.profile-recom-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.profile-recom-img-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: #18181c;
}

.profile-recom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-recom-card:hover .profile-recom-img {
  transform: scale(1.05);
}

.profile-recom-match-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.profile-recom-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.profile-recom-category {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.profile-recom-title {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 6px;
}

.profile-recom-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #71717a;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.profile-recom-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #1c1c20;
  padding-top: 12px;
}

.btn-recom-buy {
  flex: 1;
  background: var(--accent);
  border: none;
  color: #000;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.btn-recom-buy:hover {
  background: #d6fa4f;
}

.btn-recom-details {
  background: #18181c;
  border: 1px solid #28282e;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.btn-recom-details:hover {
  color: #fff;
  border-color: #52525b;
}

/* Modales del Perfil */
.profile-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 1000000 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: calc(28px + env(safe-area-inset-top, 20px)) 16px calc(36px + env(safe-area-inset-bottom, 24px)) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  animation: modalFadeIn 0.2s ease;
}

.profile-modal-card {
  background: #111114;
  border: 1px solid #27272b;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1f1f24;
}

.profile-modal-title {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.5px;
}

.profile-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 24px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.profile-modal-close:hover {
  background: #ff3b00;
  border-color: #ff3b00;
  color: #ffffff;
}

.profile-modal-close:empty::before {
  content: "×";
  display: block;
  line-height: 1;
  font-size: 24px;
  font-weight: 700;
}

.profile-modal-form-group {
  margin-bottom: 16px;
}

.profile-modal-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.profile-modal-input,
.profile-modal-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #18181c;
  border: 1px solid #28282e;
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.profile-modal-textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.5;
}

.profile-modal-input:focus,
.profile-modal-textarea:focus {
  border-color: var(--accent);
}

.btn-modal-save {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.btn-modal-save:hover {
  background: #d6fa4f;
  transform: translateY(-1px);
}

/* Botón Editar Perfil en Header */
.btn-edit-profile-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #18181c;
  border: 1px solid #2e2e34;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-edit-profile-action:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(198, 241, 53, 0.35);
  transform: translateY(-1px);
}

/* Avatar Upload & Preview Box */
.avatar-upload-box {
  background: #151518;
  border: 1px solid #27272b;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar-preview-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.avatar-preview-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(198, 241, 53, 0.3);
}

.avatar-upload-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-avatar-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #242429;
  border: 1px solid #36363d;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.btn-avatar-upload:hover {
  background: #2f2f36;
  border-color: var(--accent);
  color: var(--accent);
}

.avatar-presets-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.avatar-presets-grid {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.avatar-preset-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #27272b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-preset-thumb:hover,
.avatar-preset-thumb.active {
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(198, 241, 53, 0.4);
}

/* ============================================================
   GOOGLE MAPS ESTILIZADO KAWSAY
   ============================================================ */
.google-maps-dark-tiles {
  filter: invert(100%) hue-rotate(180deg) brightness(88%) contrast(90%) saturate(0.7);
}

.google-maps-sat-tiles {
  filter: brightness(92%) contrast(105%);
}

.btn-map-layer {
  background: #18181c;
  border: 1px solid #2c2c33;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-map-layer:hover {
  background: #27272b;
  color: #fff;
  border-color: #3f3f46;
}

.btn-map-layer.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(198, 241, 53, 0.3);
}

.leaflet-popup-content-wrapper {
  background: #141418 !important;
  color: #fff !important;
  border: 1px solid #27272b !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8) !important;
}

.leaflet-popup-tip {
  background: #141418 !important;
}

/* ============================================================
   PORTAL EN CONSTRUCCIÓN / ASOMA PRONTO (ACCESO ANTICIPADO)
   Aesthetic: Cyberpunk / Brutalist High-Tech HUD
   ============================================================ */

.construction-gate {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background-color: #070709;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.construction-gate.unlocked {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

/* Fondo Matrix / Dot Grid */
.construction-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: 0 0;
  opacity: 0.85;
  z-index: 1;
}

.construction-ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 10% 20%, rgba(180, 247, 50, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 59, 48, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(10, 11, 14, 0.4) 0%, #070709 95%);
  z-index: 2;
}

/* Barra Superior */
.construction-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px 12px 36px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  gap: 16px;
  flex-wrap: wrap;
}

.construction-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555e6d;
}

.construction-status-left .tech-label {
  color: #434c5a;
  font-weight: 700;
}

.construction-status-left .tech-val {
  color: #7b8698;
}

.construction-status-left .tech-sep {
  display: inline-block;
  width: 16px;
}

.construction-status-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
}

.status-pill.status-offline {
  border: 1px solid rgba(255, 59, 48, 0.4);
  background: rgba(35, 12, 12, 0.7);
  color: #ff453a;
}

.status-pill.status-online {
  border: 1px solid rgba(180, 247, 50, 0.4);
  background: rgba(18, 28, 12, 0.7);
  color: #b4f732;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.version-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #7d889b;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
}

/* Contenido Principal (Hero 2 Columnas) */
.construction-main {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  gap: 48px;
  flex: 1;
}

/* Columna Izquierda */
.construction-hero-col {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 320px;
}

.construction-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.kawsay-logo-badge {
  width: 44px;
  height: 44px;
  background: #b4f732;
  color: #000000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(180, 247, 50, 0.4);
}

.kawsay-logo-text {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.construction-headline {
  display: flex;
  flex-direction: column;
  font-family: 'Space Grotesk', 'Archivo Black', -apple-system, sans-serif;
  font-size: clamp(80px, 9vw, 142px) !important;
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 52px 0;
  user-select: none;
}

.construction-headline span:last-child {
  color: #ffffff;
}

/* HUD Progreso */
.construction-hud-progress {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 540px;
  font-family: 'Space Mono', monospace;
}

.hud-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: default;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-item:hover {
  transform: translateX(4px);
}

.hud-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.hud-name {
  color: #8f9aa9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.hud-item:hover .hud-name {
  color: #ffffff;
}

/* Micro LED indicador en cada categoría */
.hud-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  opacity: 0.8;
  animation: hudDotBlink 2.2s infinite ease-in-out;
}

@keyframes hudDotBlink {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.hud-pct {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  transition: text-shadow 0.2s ease;
}

.hud-item:hover .hud-pct {
  text-shadow: 0 0 12px currentColor;
}

.hud-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  position: relative;
  overflow: visible;
  transition: height 0.2s ease, background 0.2s ease;
}

.hud-item:hover .hud-bar-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.14);
}

.hud-bar-fill {
  height: 100%;
  border-radius: 3px;
  position: relative;
  transition: width 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

/* Rayo láser que escanea continuamente la barra */
.hud-laser-ping {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  animation: hudLaserScan 3.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.hud-cartelera .hud-laser-ping {
  animation-delay: 0.2s;
}

.hud-espacios .hud-laser-ping {
  animation-delay: 1.2s;
}

.hud-comunidad .hud-laser-ping {
  animation-delay: 2.2s;
}

@keyframes hudLaserScan {
  0% {
    left: -35%;
    opacity: 0;
  }

  15% {
    opacity: 0.9;
  }

  80% {
    opacity: 0.9;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Nodo / Cabeza luminosa que pulsa en la punta de cada barra */
.hud-bar-tip {
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: none;
  box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
  animation: hudTipBreathe 2.4s ease-in-out infinite;
}

@keyframes hudTipBreathe {

  0%,
  100% {
    transform: translateY(-50%) scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-50%) scale(1.35);
    opacity: 1;
    box-shadow: 0 0 12px currentColor, 0 0 22px currentColor;
  }
}

/* Colores específicos de barras según mockup */
.hud-cartelera .hud-pct {
  color: #b4f732;
}

.hud-cartelera .hud-pulse-dot {
  color: #b4f732;
}

.hud-cartelera .hud-bar-fill {
  background: #b4f732;
  box-shadow: 0 0 12px rgba(180, 247, 50, 0.6);
  color: #b4f732;
}

.hud-espacios .hud-pct {
  color: #e2e8f0;
}

.hud-espacios .hud-pulse-dot {
  color: #e2e8f0;
}

.hud-espacios .hud-bar-fill {
  background: #e2e8f0;
  box-shadow: 0 0 10px rgba(226, 232, 240, 0.5);
  color: #e2e8f0;
}

.hud-comunidad .hud-pct {
  color: #ff3b3b;
}

.hud-comunidad .hud-pulse-dot {
  color: #ff3b3b;
}

.hud-comunidad .hud-bar-fill {
  background: #ff3b3b;
  box-shadow: 0 0 12px rgba(255, 59, 59, 0.6);
  color: #ff3b3b;
}

/* Columna Derecha (Tarjeta de Acceso) */
.construction-card-col {
  flex: 0.9;
  display: flex;
  justify-content: flex-end;
  min-width: 320px;
}

.access-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(18, 20, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 38px 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

/* Cyberpunk Tactical Corner Brackets */
.corner-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.corner-bracket.top-left {
  top: -1px;
  left: -1px;
  border-top: 2.5px solid #b4f732;
  border-left: 2.5px solid #b4f732;
}

.corner-bracket.bottom-right {
  bottom: -1px;
  right: -1px;
  border-bottom: 2.5px solid #b4f732;
  border-right: 2.5px solid #b4f732;
}

.access-card-header {
  margin-bottom: 18px;
}

.early-access-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #b4f732;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.access-title {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}

.access-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  line-height: 1.5;
  color: #7b8596;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
}

/* Cuadro de Beneficios Exclusivos */
.early-benefits-box {
  background: rgba(180, 247, 50, 0.04);
  border: 1px solid rgba(180, 247, 50, 0.22);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.early-benefits-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #b4f732;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.early-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.early-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

.benefit-star {
  color: #b4f732;
  font-size: 11px;
  line-height: 1.3;
}

/* Formulario */
.access-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.access-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.access-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #687284;
  text-transform: uppercase;
}

.access-input {
  width: 100%;
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 14px 16px;
  color: #ffffff;
  font-family: 'Space Mono', monospace;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
}

.access-input:focus {
  border-color: #b4f732;
  background: #11141b;
  box-shadow: 0 0 14px rgba(180, 247, 50, 0.2);
}

.access-input::placeholder {
  color: #3b4250;
  font-family: 'Space Mono', monospace;
}

/* Selector de Roles en Píldoras */
.early-role-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.early-role-pill {
  position: relative;
  cursor: pointer;
}

.early-role-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.early-role-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: -0.2px;
  color: #8b95a5;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.early-role-pill input:checked+span {
  background: rgba(180, 247, 50, 0.12);
  border-color: #b4f732;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(180, 247, 50, 0.2);
}

.early-role-pill:hover span {
  border-color: rgba(180, 247, 50, 0.5);
  color: #ffffff;
}

/* Botón Neón */
.btn-neon-access {
  width: 100%;
  background: #b4f732;
  color: #000000;
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(180, 247, 50, 0.25);
}

.btn-neon-access:hover {
  background: #c7ff38;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(180, 247, 50, 0.45);
}

.btn-neon-access:active {
  transform: translateY(0);
}

.btn-neon-access:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Alertas Terminal */
.construction-alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  margin-bottom: 16px;
  line-height: 1.4;
  border: 1px solid rgba(255, 59, 48, 0.3);
  background: rgba(35, 12, 12, 0.8);
  color: #ff5e54;
}

.construction-alert.success {
  border-color: rgba(180, 247, 50, 0.4);
  background: rgba(18, 28, 12, 0.85);
  color: #b4f732;
}

/* Enlace a Login de Equipo */
.link-team-login {
  background: none;
  border: none;
  color: #647082;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 4px;
  text-align: center;
}

.link-team-login u {
  color: #8fa0b5;
  transition: color 0.2s ease;
}

.link-team-login:hover {
  color: #ffffff;
}

.link-team-login:hover u {
  color: #b4f732;
}

.demo-pill strong {
  color: #b4f732;
}

.demo-pill span {
  color: #7b8698;
  font-size: 9.5px;
}

.demo-pill:hover {
  background: rgba(180, 247, 50, 0.12);
  border-color: #b4f732;
  transform: translateX(3px);
}

/* Pie de tarjeta */
.access-card-footer {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.link-creator-request {
  background: none;
  border: none;
  color: #727b8d;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 4px;
}

.link-creator-request:hover {
  color: #b4f732;
  text-decoration: underline;
}

.construction-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.social-icon {
  color: #555e6e;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: #b4f732;
  transform: translateY(-2px);
}

/* Barra Inferior (Marquee Infinito & Copyright) */
.construction-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 7, 9, 0.9);
  padding: 12px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.marquee-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marqueeScroll 35s linear infinite;
  color: #5d6777;
}

.marquee-dot {
  margin: 0 10px;
  color: #404856;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.construction-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #485262;
  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
}

/* Modal Cyberpunk para Solicitudes Creativas */
.creator-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.creator-modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #0f1116;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.creator-modal-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #b4f732;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.creator-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.creator-modal-sub {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #727b8d;
  line-height: 1.4;
  margin-bottom: 20px;
}

.btn-close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  color: #727b8d;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.btn-close-modal:hover {
  color: #ffffff;
}

.creator-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Botón Indicador en Topbar del App Principal */
.topbar-construction-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(180, 247, 50, 0.12);
  border: 1px solid rgba(180, 247, 50, 0.35);
  color: #b4f732;
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 12px;
}

.topbar-construction-badge:hover {
  background: #b4f732;
  color: #000000;
  box-shadow: 0 0 12px rgba(180, 247, 50, 0.3);
}

/* Responsividad para móviles y tablets */
@media (max-width: 992px) {
  .construction-main {
    flex-direction: column;
    padding: 24px 20px;
    gap: 36px;
  }

  .construction-hero-col,
  .construction-card-col {
    width: 100%;
    min-width: unset;
  }

  .construction-card-col {
    justify-content: center;
  }

  .access-card {
    max-width: 100%;
    padding: 28px 22px;
  }

  .construction-headline {
    margin: 0 0 32px 0;
  }

  .construction-topbar {
    padding: 16px 20px 8px 20px;
  }

  .construction-footer {
    padding: 12px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .construction-footer-meta {
    align-items: center;
  }
}

/* ========================================================
   AVATARES DE USUARIO CON INICIALES (NOMBRE Y APELLIDO)
   ======================================================== */
.user-initials-avatar {
  background: #11151c !important;
  color: var(--accent, #b4f732) !important;
  border: 1px solid var(--accent, #b4f732);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Space Mono', var(--font-mono), monospace !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 10px rgba(180, 247, 50, 0.22);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  line-height: 1;
}

.user-initials-avatar:hover {
  box-shadow: 0 0 16px rgba(180, 247, 50, 0.45);
  transform: scale(1.06);
}

/* ========================================================
   SUBIDA DE IMÁGENES Y AFICHES PARA CARTELERA CULTURAL
   ======================================================== */
.ev-img-preset-btn {
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ev-img-preset-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #d9f99d) !important;
  box-shadow: 0 4px 12px rgba(217, 249, 157, 0.25);
}

#ev-image-dropzone:hover {
  border-color: var(--accent, #d9f99d) !important;
  background: rgba(30, 41, 59, 0.9) !important;
}

#btn-browse-event-image:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* ========================================================
   ANIMACIONES FLUIDAS DE ELIMINACIÓN (SIN TRABAS)
   ======================================================== */
.card-deleting,
.event-card.card-deleting,
.space-card.card-deleting {
  opacity: 0 !important;
  transform: scale(0.88) translateY(-10px) !important;
  pointer-events: none !important;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

tr.row-deleting {
  opacity: 0 !important;
  transform: translateX(-30px) !important;
  background-color: rgba(239, 68, 68, 0.2) !important;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.25s ease !important;
  pointer-events: none !important;
}

/* Modal Confirmación de Eliminación Kawsay */
#modal-confirm-delete {
  z-index: 1000005 !important;
}

#modal-confirm-delete .modal-box {
  max-width: 500px !important;
  width: 92vw !important;
  background: #090d16 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 25px 60px -15px rgba(239, 68, 68, 0.3), 0 0 0 1px rgba(239, 68, 68, 0.2) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  animation: deleteModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes deleteModalPop {
  0% {
    transform: scale(0.94) translateY(12px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.confirm-delete-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin: 16px 0;
}

.confirm-delete-preview-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.confirm-delete-warning-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: #fca5a5;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

/* ========================================================
   PERFIL DE ESPACIO CULTURAL & STUDIO RESPONSIVE (MÓVIL)
   ======================================================== */
.spd-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.spd-breadcrumb-name {
  color: var(--accent);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}

.spd-hero-pad {
  padding-left: 32px;
  padding-right: 32px;
}

.spd-stats-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.spd-stat-cell {
  flex: 1;
  min-width: 140px;
  padding: 16px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spd-body-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding: 28px 32px;
  align-items: start;
}

.spd-left-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.spd-right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
}

.spd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.spd-events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ========================================================
   BASE SPACE DETAIL STYLES (MODAL Y PÁGINA COMPLETA)
   ======================================================== */
.space-detail-page {
  background: #0a0a0a;
  color: #f8fafc;
}

.offcanvas-panel.offcanvas-space-large {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.95);
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
}

.spd-header-hero {
  position: relative;
  background: #000000;
  padding: 20px 0 0;
}

.spd-back-btn,
.spd-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.spd-close-btn {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  font-weight: 700;
  justify-content: center;
  padding: 0;
}

.spd-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.spd-badge-accent {
  background: var(--accent, #d4ff00);
  color: #000000;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 6px;
}

.spd-badge-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.spd-badge-pill.muted {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spd-title-h1 {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 900;
  color: #ffffff;
  line-height: 0.95;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin: 0;
  max-width: 850px;
}

.spd-btn-follow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: #000000;
  border: none;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: filter 0.15s;
}

.spd-btn-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: filter 0.15s;
}

.spd-btn-save-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gold);
  color: #000000;
  border: none;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: filter 0.15s;
}

.spd-action-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.spd-stat-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.8px;
}

.spd-stat-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

.spd-stat-val.gold {
  color: #eab308;
}

.spd-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.spd-section-bar {
  width: 18px;
  height: 2px;
  background: var(--accent);
}

.spd-section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

.spd-section-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
}

.spd-desc-text {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  font-size: 14px;
  max-width: 680px;
  margin: 0 0 16px;
}

.spd-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
}

.spd-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: filter 0.2s;
  cursor: pointer;
}

.spd-gallery-img:hover {
  filter: brightness(1);
}

.spd-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.space-detail-ev-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.space-detail-ev-card:hover {
  border-color: rgba(212, 255, 0, 0.3);
  transform: translateY(-2px);
}

.spd-ev-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.spd-ev-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 5px;
}

.spd-ev-badge-cat {
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 5px;
}

.spd-ev-badge-sub {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.spd-ev-content {
  padding: 12px 14px;
}

.spd-ev-meta {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 5px;
}

.spd-ev-price {
  color: var(--accent);
  font-weight: 900;
}

.spd-ev-title {
  font-weight: 900;
  font-size: 13px;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 5px;
}

.spd-ev-venue {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 4px;
}

.spd-artist-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #18181c;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 900;
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
}

.spd-artist-name {
  font-weight: 900;
  font-size: 14px;
  color: #ffffff;
}

.spd-artist-role {
  font-size: 11px;
  color: var(--grey1);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.btn-open-artist-from-space {
  background: rgba(204, 255, 0, 0.12);
  border: 1px solid rgba(204, 255, 0, 0.4);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.spd-side-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.spd-side-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.spd-side-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

.spd-side-sector {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.spd-side-icon {
  stroke: rgba(255, 255, 255, 0.4);
}

.spd-field-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.spd-field-val {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.spd-field-val-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.spd-map-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.spd-map-card:hover {
  border-color: rgba(212, 255, 0, 0.3);
}

.spd-map-card svg {
  stroke: rgba(255, 255, 255, 0.3);
}

.spd-map-card-text {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
}

.spd-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}

.spd-cat-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.spd-cat-name {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.spd-cat-name.primary {
  color: #ffffff;
  font-weight: 700;
}

.spd-cat-year {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.35);
}

.spd-cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  color: var(--accent);
  min-width: 24px;
  text-align: right;
}

.spd-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.spd-social-btn.active {
  background: rgba(198, 241, 53, 0.12);
  border-color: rgba(198, 241, 53, 0.45);
  color: var(--accent);
}

.spd-edit-input,
.spd-edit-select {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
  box-sizing: border-box;
}

.spd-btn-add-block {
  background: #1e293b;
  border: 1px dashed rgba(198, 241, 53, 0.45);
  color: var(--accent);
}

.spd-artist-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.space-banner-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.space-banner-avatar {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.space-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.space-kpi-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.space-kpi-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Breakpoint Tablet y Móvil (<= 900px) */
@media (max-width: 900px) {
  .spd-body-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 20px 18px !important;
  }

  .spd-right-sidebar {
    position: static !important;
    top: auto !important;
  }
}

/* Breakpoint Móvil (<= 768px) */
@media (max-width: 768px) {
  .offcanvas-panel.offcanvas-space-large {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
  }

  .space-detail-page,
  #view-space,
  #view-artist {
    padding-bottom: 90px !important;
  }

  /* En el Dashboard del Espacio (#view-space) y del Artista (#view-artist), mostrar tarjetas apiladas verticalmente en móvil */
  #view-space .spaces-grid,
  #view-space .events-grid,
  #view-artist .spaces-grid,
  #view-artist .events-grid,
  #view-artist .artist-spaces-grid,
  #view-artist .artist-community-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow-x: visible !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 14px !important;
  }

  #view-space .space-card,
  #view-space .event-card,
  #view-artist .space-card,
  #view-artist .event-card,
  #view-artist .artist-space-card,
  #view-artist .artist-community-card {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Breakpoint Móvil Estándar (<= 640px) */
@media (max-width: 640px) {

  .spd-sticky-bar {
    padding: 10px 14px !important;
  }

  .spd-breadcrumb-name {
    max-width: 145px;
  }

  .spd-hero-pad {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .spd-title-h1 {
    font-size: clamp(24px, 7.5vw, 38px) !important;
    letter-spacing: -0.8px !important;
    line-height: 1.05 !important;
  }

  .spd-actions-row {
    gap: 8px !important;
  }

  .spd-actions-row #btn-spd-toggle-edit,
  .spd-actions-row #btn-spd-save-inline {
    width: 100%;
    justify-content: center;
    padding: 11px 14px !important;
  }

  .spd-actions-row #btn-spd-follow {
    flex: 1;
    justify-content: center;
    padding: 11px 16px !important;
  }

  /* Estadísticas en cuadrícula 2x2 limpia en móvil (sin scroll horizontal) */
  .spd-stats-bar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: visible !important;
  }

  .spd-stat-cell {
    min-width: 0 !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .spd-stat-cell:nth-child(2n) {
    border-right: none !important;
  }

  .spd-stat-cell:nth-child(3),
  .spd-stat-cell:nth-child(4) {
    border-bottom: none;
  }

  /* Galería 2x2 y Eventos 1 columna en móvil */
  .spd-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .spd-events-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .spd-artist-card {
    flex-direction: column;
    align-items: flex-start !important;
    padding: 14px !important;
  }

  .spd-artist-card .btn-open-artist-from-space {
    width: 100%;
    text-align: center;
    padding: 10px 14px !important;
  }

  /* Space Studio Dashboard Móvil */
  .space-dashboard-banner {
    padding: 16px !important;
    border-radius: 14px !important;
    margin-bottom: 18px !important;
  }

  .space-banner-header {
    gap: 12px !important;
    align-items: flex-start !important;
  }

  .space-banner-avatar {
    width: 68px !important;
    height: 68px !important;
    border-radius: 12px !important;
    border-width: 2px !important;
  }

  .space-banner-title-wrap h1 {
    font-size: clamp(20px, 6vw, 26px) !important;
    line-height: 1.15 !important;
  }

  .space-banner-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100%;
  }

  .space-banner-actions button {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    font-size: 11px !important;
  }

  /* Tarjetas KPI 2x2 estilo App Nativa en móvil */
  .space-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  .space-kpi-interactive {
    padding: 12px 10px !important;
  }

  .space-kpi-interactive .artist-stat-num {
    font-size: 20px !important;
  }

  .space-kpi-interactive .artist-stat-label {
    font-size: 9px !important;
    letter-spacing: 0.3px !important;
  }

  /* Grids y Formularios en móvil */
  .spaces-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .space-kpi-tabs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .space-step-bar,
  .artist-step-bar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  /* Artist Studio Dashboard Móvil */
  .artist-dashboard-banner {
    padding: 16px !important;
    border-radius: 14px !important;
    margin-bottom: 18px !important;
  }

  .artist-profile-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .artist-avatar-lg {
    width: 72px !important;
    height: 72px !important;
  }

  .artist-name-h1 {
    font-size: clamp(22px, 6.5vw, 30px) !important;
    line-height: 1.12 !important;
  }

  .artist-pills-row {
    gap: 6px !important;
  }

  .artist-pill {
    font-size: 10px !important;
    padding: 4px 8px !important;
  }

  .artist-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  .artist-stat-card {
    padding: 12px 10px !important;
  }

  .artist-stat-num {
    font-size: 20px !important;
  }

  .artist-stat-label {
    font-size: 9px !important;
    letter-spacing: 0.3px !important;
  }

  .artist-propose-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  .avatar-upload-box {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .create-event-modal-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  #ev-recurring-days-grid,
  .schedule-days-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }
}

/* Badges de eventos / exposiciones recurrentes */
.event-period-pill.open_today {
  background: rgba(16, 185, 129, 0.9);
  color: #022c22;
  border: 1px solid #34d399;
}

.event-period-pill.upcoming {
  background: rgba(234, 179, 8, 0.9);
  color: #1c1917;
  border: 1px solid #facc15;
}

.event-period-pill.in_season {
  background: rgba(15, 23, 42, 0.88);
  color: var(--accent);
  border: 1px solid rgba(198, 241, 53, 0.55);
}

.event-period-pill.ended {
  background: rgba(127, 29, 29, 0.9);
  color: #fecaca;
  border: 1px solid #ef4444;
}

/* Badges de estado de venta y vigencia (Agotado & Finalizado) */
.event-soldout-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff3b00;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(255, 59, 0, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-ended-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(24, 24, 27, 0.95);
  color: #fca5a5;
  border: 1px solid #ef4444;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-event-soldout {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: 1px solid #ef4444 !important;
  cursor: not-allowed !important;
  opacity: 0.95 !important;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35) !important;
}

.btn-event-ended {
  background: #27272a !important;
  color: #a1a1aa !important;
  border: 1px solid #3f3f46 !important;
  cursor: not-allowed !important;
  opacity: 0.9 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .btn-event-ended,
body.theme-light .btn-event-ended {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
}

/* Chips extendidos y Comunidad de Fans del Artista */
.artist-social-chip.email:hover {
  color: var(--accent);
  border-color: rgba(198, 241, 53, 0.45);
}

.artist-social-chip.whatsapp:hover {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.45);
}

.artist-social-chip.website:hover {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
}

.artist-social-chip.tiktok:hover {
  color: #2dd4bf;
  border-color: rgba(45, 212, 191, 0.45);
}

.artist-community-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(198, 241, 53, 0.08) 0%, #111115 65%);
  border: 1px solid rgba(198, 241, 53, 0.25);
  border-radius: 12px;
  margin-bottom: 18px;
}

.artist-community-wall-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
  align-items: start;
}

.artist-community-wall,
.artist-followers-panel {
  background: #111115;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 16px;
}

.artist-followers-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.artist-follower-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #18181c;
  border: 1px solid #27272a;
  border-radius: 8px;
}

@media (max-width: 820px) {
  .artist-community-wall-grid {
    grid-template-columns: 1fr;
  }
}

/* Calendario Mensual & Agenda Semanal en Tablet/Móvil */
@media (max-width: 900px) {

  .week-header-bar,
  .month-header-bar {
    padding: 14px 4px 10px !important;
  }

  .week-header-bar h2,
  .month-header-bar h2 {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .week-grid-container {
    padding: 8px 0 24px !important;
  }

  .week-days-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .week-day-col {
    min-height: auto !important;
    padding: 12px !important;
  }

  .month-view-layout {
    grid-template-columns: 1fr !important;
    padding: 8px 0 24px !important;
    gap: 16px !important;
  }
}

/* Explorar Espacios (Mapa + Lista apilada en Móvil) */
@media (max-width: 768px) {
  .spaces-map-header {
    padding: 14px 4px !important;
  }

  .spaces-map-header h1 {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  .spaces-map-engine-meta {
    display: none !important;
  }

  .spaces-map-filters {
    padding: 10px 4px !important;
    gap: 8px !important;
    scrollbar-width: none;
  }

  .spaces-map-filters::-webkit-scrollbar {
    display: none;
  }

  .spaces-map-filters .btn-sector-pill {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 14px !important;
  }

  .spaces-map-split {
    flex-direction: column !important;
    height: auto !important;
    margin: 0 -12px;
  }

  .spaces-map-canvas-col {
    height: 65vh !important;
    height: 65dvh !important;
    min-height: 420px !important;
    flex: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }

  .spaces-map-layer-bar {
    top: 10px !important;
    right: 10px !important;
    left: 10px !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px !important;
  }

  .spaces-map-layer-bar .btn-map-layer {
    font-size: 10px !important;
    padding: 5px 8px !important;
  }

  .spaces-map-list-col,
  #spaces-map-list {
    width: 100% !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding: 14px 12px !important;
    gap: 12px !important;
  }

  .space-map-card {
    padding: 12px !important;
    gap: 12px !important;
  }

  .space-map-card img {
    width: 88px !important;
    height: 84px !important;
    flex-shrink: 0;
  }

  .spaces-map-footer {
    padding: 12px 4px !important;
  }

  .week-nav-controls,
  .month-nav-controls {
    width: 100%;
    gap: 6px !important;
  }

  .week-nav-controls button,
  .month-nav-controls button,
  .month-nav-controls select {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 10px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 640px) {
  .artist-community-banner {
    padding: 16px;
    gap: 14px;
  }

  /* Celda compacta de Calendario Mensual estilo App */
  .month-grid-card {
    padding: 10px 8px !important;
    border-radius: 12px !important;
  }

  .month-weekdays-row {
    gap: 4px !important;
    font-size: 10px !important;
    margin-bottom: 6px !important;
  }

  .month-days-matrix {
    gap: 4px !important;
  }

  .calendar-day-cell,
  .month-blank-cell {
    min-height: 52px !important;
    padding: 5px 4px !important;
    border-radius: 7px !important;
  }

  .month-cell-daynum {
    font-size: 12px !important;
  }

  .month-today-badge,
  .month-cell-events {
    display: none !important;
  }

  .month-cell-count {
    font-size: 9px !important;
    padding: 1px 4px !important;
  }

  .month-mobile-dots {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 4px;
  }

  .month-mobile-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
  }

  .month-sidebar-panel {
    padding: 14px !important;
  }

  .space-step-bar .btn-space-step[data-step="5"] {
    grid-column: 1 / -1;
  }

  .onboarding-pending-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   ONBOARDING, CHIPS DE ETIQUETADO Y CAMPAÑAS SEGMENTADAS
   ============================================================ */
.onboarding-pending-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.12), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(204, 255, 0, 0.4);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.asoma-tag-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.asoma-tag-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.asoma-tag-chip:hover {
  border-color: var(--accent);
  color: #fff;
}

.asoma-tag-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 900;
}

/* Modo Blanco para Chips de Etiquetas ASOMA */
html[data-theme="light"] .asoma-tag-chip,
body.theme-light .asoma-tag-chip {
  background: #f1f5f9 !important;
  border: 1.5px solid #64748b !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .asoma-tag-chip:hover,
body.theme-light .asoma-tag-chip:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

html[data-theme="light"] .asoma-tag-chip.active,
body.theme-light .asoma-tag-chip.active {
  background: #ff3b00 !important;
  border-color: #ff3b00 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 2px 8px rgba(255, 59, 0, 0.3) !important;
}

/* Cajas de Aviso e Información en Modales */
.artist-onb-notice-box {
  background: rgba(255, 59, 0, 0.08);
  border: 1px solid rgba(255, 59, 0, 0.28);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.artist-onb-notice-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.artist-onb-notice-text {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 4px;
  line-height: 1.4;
}

html[data-theme="light"] .artist-onb-notice-box,
body.theme-light .artist-onb-notice-box {
  background: #fff7ed !important;
  border: 1px solid #fdba74 !important;
}

html[data-theme="light"] .artist-onb-notice-title,
body.theme-light .artist-onb-notice-title {
  color: #c2410c !important;
}

html[data-theme="light"] .artist-onb-notice-text,
body.theme-light .artist-onb-notice-text {
  color: #0f172a !important;
  font-weight: 600 !important;
}

/* Pestañas de Paso en Onboarding Artista */
.btn-artist-onb-step {
  flex: 1;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  border: 1px solid #334155;
  border-radius: 6px;
  cursor: pointer;
  background: #1e293b;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.btn-artist-onb-step.active {
  background: var(--accent) !important;
  color: #000 !important;
  border-color: var(--accent) !important;
}

html[data-theme="light"] .btn-artist-onb-step,
body.theme-light .btn-artist-onb-step {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .btn-artist-onb-step.active,
body.theme-light .btn-artist-onb-step.active {
  background: #ff3b00 !important;
  border-color: #ff3b00 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 12px rgba(255, 59, 0, 0.3) !important;
}

/* Modal de Recuadro de Foto de Perfil (Avatar Cropper) */
.avatar-cropper-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 10000002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease;
}

.avatar-cropper-card {
  background: #111114;
  border: 1px solid #27272b;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  position: relative;
}

html[data-theme="light"] .avatar-cropper-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

.cropper-viewport-wrap {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65), 0 0 0 3px #ff3b00;
  cursor: grab;
  user-select: none;
  touch-action: none;
  margin: 16px 0;
  background: #000;
}

.cropper-viewport-wrap:active {
  cursor: grabbing;
}

.cropper-image {
  position: absolute;
  transform-origin: center center;
  pointer-events: none;
  max-width: none;
}

.cropper-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.cropper-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.cropper-zoom-slider {
  flex: 1;
  accent-color: #ff3b00;
  cursor: pointer;
}

/* Modal de Confirmación de Descarte (Anti-Pérdida de Información) */
.discard-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 10000005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.18s ease;
}

.discard-confirm-card {
  background: #111114;
  border: 1px solid #334155;
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  text-align: center;
}

html[data-theme="light"] .discard-confirm-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

.campaign-email-box {
  width: 100%;
  background: #020617;
  border: 1px solid #334155;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  resize: vertical;
  outline: none;
}

/* ============================================================
   FILTROS MULTI-ÁMBITO & CATEGORÍA DEL CALENDARIO
   ============================================================ */
.month-filters-bar {
  padding: 0 32px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.cal-scope-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-cal-scope {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.btn-cal-scope:hover {
  background: var(--surface3);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-cal-scope.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 900;
  box-shadow: 0 0 14px rgba(204, 255, 0, 0.25);
}

.cal-filter-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.cal-filter-select:hover,
.cal-filter-select:focus {
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .month-filters-bar {
    padding: 0 16px 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .cal-scope-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }

  .btn-cal-scope {
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 10px;
  }
}

/* ============================================================
   ASOMA BRAND MANUAL SYSTEM OVERRIDES (LOGOS, HERO, ICONS, CARDS)
   ============================================================ */

/* Logos Sidebar & Topbar */
.sidebar-logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.sidebar-brand-svg {
  width: 178px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.sidebar-brand-tagline {
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff0000;
  display: block;
  line-height: 1.1;
}

.topbar-brand-svg {
  height: 30px;
  width: auto;
  max-width: 136px;
  display: block;
  object-fit: contain;
}

/* Hero Banner & Official CTA Pills */
.hero-banner {
  min-height: 560px !important;
  height: auto !important;
  border-radius: 26px !important;
  border: 1px solid rgba(238, 241, 242, 0.1);
  background: #0e0f14;
}

.hero-banner .hero-img {
  filter: grayscale(100%) contrast(1.08) brightness(0.68) !important;
  object-fit: cover;
  object-position: center 25%;
}

.hero-banner .hero-content {
  background: linear-gradient(90deg, rgba(14, 15, 20, 0.94) 0%, rgba(14, 15, 20, 0.68) 56%, rgba(14, 15, 20, 0.25) 100%) !important;
  padding: 56px 52px 42px !important;
  min-height: 560px !important;
  justify-content: flex-end !important;
}

.hero-badge {
  background: rgba(255, 59, 0, 0.22) !important;
  color: var(--accent, #e2f576) !important;
  border: 1px solid rgba(255, 59, 0, 0.55) !important;
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif);
  letter-spacing: 0.09em;
}

.hero-banner h1.hero-title,
.hero-title {
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif) !important;
  font-size: clamp(40px, 4.5vw, 62px) !important;
  line-height: 0.98 !important;
  color: #eef1f2 !important;
  text-transform: uppercase;
  letter-spacing: 0.01em !important;
  white-space: pre-line;
  margin: 10px 0 10px !important;
}

.hero-desc {
  color: rgba(238, 241, 242, 0.88) !important;
  max-width: 680px;
  font-size: 14.5px;
  line-height: 1.45;
}

#btn-conseguir-entradas,
.btn-asoma-primary {
  background: #ff3b00 !important;
  color: #eef1f2 !important;
  border: none !important;
  border-radius: 18px !important;
  padding: 15px 28px !important;
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  box-shadow: 0 8px 22px rgba(255, 59, 0, 0.35) !important;
}

#btn-conseguir-entradas:hover,
.btn-asoma-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 59, 0, 0.48) !important;
}

#btn-mas-info,
.btn-asoma-secondary {
  background: #e2f576 !important;
  color: #0e0f14 !important;
  border: 1px solid #e2f576 !important;
  border-radius: 18px !important;
  padding: 15px 28px !important;
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
}

#btn-mas-info:hover,
.btn-asoma-secondary:hover {
  background: #ecf99b !important;
}

/* Filter Pills & Category Brand Icons */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px !important;
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif);
  font-size: 13.5px !important;
  font-weight: 400 !important; /* Regular por defecto */
  letter-spacing: 0.04em;
  padding: 8px 16px !important;
}

.filter-pill.active {
  background: var(--primary, #ff0000) !important;
  border-color: var(--primary, #ff0000) !important;
  color: #ffffff !important;
  font-weight: 800 !important; /* Bold cuando está activo */
}

.cat-pill-icon,
.event-cat-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px !important;
  background: #ffffff !important;
  padding: 2.5px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Editorial Event Cards (Full-Color Category Posters) */
.events-grid {
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)) !important;
  gap: 20px !important;
}

.event-card {
  background: var(--surface, #15171e);
  border: 1px solid rgba(238, 241, 242, 0.08);
  border-radius: 18px;
}

.event-card.asoma-poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px !important;
  padding: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.event-card.asoma-poster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.32) !important;
}

.asoma-card-bg-graphic {
  position: absolute;
  right: -22px;
  bottom: 18px;
  width: 170px;
  height: 170px;
  object-fit: contain;
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
}

.asoma-card-top,
.event-card.asoma-poster-card .event-card-img-wrap,
.asoma-card-meta-grid,
.event-card.asoma-poster-card .event-card-divider,
.event-card.asoma-poster-card .event-card-title,
.asoma-card-desc,
.asoma-card-rating,
.event-card.asoma-poster-card .event-card-actions {
  position: relative;
  z-index: 1;
}

.asoma-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.asoma-card-cat-pill,
.event-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.event-cat-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.asoma-card-top-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.asoma-card-mini-logo {
  height: 15px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.event-card.asoma-poster-card.is-dark-poster .asoma-card-mini-logo {
  filter: brightness(0) invert(1);
}

.event-card.asoma-poster-card.is-light-poster .asoma-card-mini-logo {
  filter: brightness(0);
  opacity: 0.68;
}

.event-card.asoma-poster-card .event-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1 !important; /* Estándar Oficial 1080x1080 (1:1 Cuadrado) Afiche Cultural */
  height: auto !important;
  border-radius: 12px;
  overflow: hidden;
  margin: 2px 0 6px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card.asoma-poster-card .event-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain !important; /* Imagen completa sin cortes de texto o cabecera */
  object-position: center;
  filter: none !important;
  transition: transform 0.35s ease;
}

.event-card.asoma-poster-card:hover .event-card-img {
  transform: scale(1.02);
}

.asoma-card-meta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif);
  font-size: 12px;
  line-height: 1.25;
}

.asoma-card-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.asoma-card-meta-right {
  text-align: right;
  font-weight: 700;
}

.asoma-card-venue {
  font-weight: 800;
  cursor: pointer;
}

.asoma-card-venue:hover {
  text-decoration: underline;
}

.asoma-card-sector {
  opacity: 0.86;
  font-size: 11px;
}

.asoma-card-date,
.asoma-card-price {
  white-space: nowrap;
}

.event-card-divider {
  height: 1px;
  background: rgba(238, 241, 242, 0.14);
  margin: 4px 0;
}

.event-card.asoma-poster-card .event-card-divider {
  background: currentColor;
  opacity: 0.24;
  margin: 2px 0;
}

.event-card.asoma-poster-card .event-card-title {
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 0.95 !important;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  color: inherit !important;
  margin: 2px 0 !important;
}

.asoma-card-desc {
  font-size: 13.5px !important;
  font-weight: 400 !important; /* Regular */
  line-height: 1.4 !important;
  margin: 0;
  opacity: 0.92;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asoma-card-rating {
  font-size: 13px !important;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.asoma-card-rating-count {
  opacity: 0.72;
  font-weight: 400; /* Regular */
}

.event-card.asoma-poster-card .event-card-actions {
  margin-top: 6px;
}

/* Botones de acción en tarjetas póster: Alto contraste y visibilidad garantizada sobre naranja */
.event-card.asoma-poster-card .btn-card-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #0e0f14 !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16) !important;
  transition: all 0.2s ease;
}

.event-card.asoma-poster-card .btn-card-action svg {
  color: #0e0f14 !important;
  stroke: #0e0f14 !important;
}

.event-card.asoma-poster-card .btn-card-action svg .brand-accent {
  fill: #ff3b00 !important;
  stroke: #ff3b00 !important;
}

.event-card.asoma-poster-card .btn-card-action:hover {
  background: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24) !important;
}

.event-card.asoma-poster-card .btn-card-action.fav-active {
  background: #ff0000 !important;
  color: #ffffff !important;
  border-color: #ff0000 !important;
}

.event-card.asoma-poster-card .btn-card-action.fav-active svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.event-card.asoma-poster-card .btn-card-action.fav-active svg .brand-accent {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.event-card.asoma-poster-card .btn-card-action.active {
  background: #0e0f14 !important;
  color: #ffffff !important;
  border-color: #0e0f14 !important;
}

.event-card.asoma-poster-card .btn-card-action.active svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.event-card.asoma-poster-card .btn-card-action.active svg .brand-accent {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.event-card.asoma-poster-card .btn-card-action[data-action="add-cart"] {
  flex: 0 0 auto;
  padding: 8px 12px !important;
}

@media (max-width: 768px) {
  .hero-banner {
    height: auto !important;
    min-height: 480px !important;
  }

  .hero-banner .hero-content {
    padding: 32px 18px 24px !important;
    min-height: 480px !important;
    justify-content: flex-end !important;
  }

  .hero-banner h1.hero-title,
  .hero-title {
    font-size: 36px !important;
    line-height: 1.05 !important;
  }
}

/* Interests Cards with Brand Icons & Graphic Watermarks */
.interest-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 118px;
}

.interest-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.interest-brand-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(14, 15, 20, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.interest-brand-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.interest-card-bg-graphic {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.26;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.interest-card:hover .interest-card-bg-graphic {
  transform: scale(1.08) rotate(-3deg);
  opacity: 0.46;
}

/* Calendar Header, Category Pills & HOY Cell */
.cal-brand-kicker {
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d9c7fd;
  margin-bottom: 2px;
}

.cal-year-accent {
  color: #ff0000;
}

.cal-brand-sub {
  font-size: 12px;
  color: var(--grey1, #a8b0bc);
  margin-top: 2px;
}

.cal-cat-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-top: 8px;
}

.month-day-cell.is-today {
  border: 1.5px solid #ff0000 !important;
  background: rgba(255, 0, 0, 0.08) !important;
}

.month-day-cell.is-today .today-badge,
.today-badge {
  background: #ff0000 !important;
  color: #eef1f2 !important;
  font-weight: 800 !important;
}

/* Spaces Map Cards & Custom ASOMA Markers */
.space-map-card-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-display, 'TBJ Margin Condensed', sans-serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.48);
}

.space-map-card-cat-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.leaflet-asoma-pin {
  width: 48px;
  height: 48px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #eef1f2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.58);
}

.leaflet-asoma-pin-inner {
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.leaflet-asoma-pin-inner img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ============================================================
   ASOMA DUAL THEME: MODO BLANCO (LIGHT) & MODO NEGRO (DARK)
   Sincronizado automáticamente con prefers-color-scheme del dispositivo
   ============================================================ */

/* Toggle de Tema: Blanco / Negro sincronizado con el SO por defecto */
.btn-theme-toggle {
  display: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: var(--surface2, #1b1d26);
  border: 1px solid var(--border, #2b2e3b);
  border-radius: 999px;
  color: var(--white, #eef1f2);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.btn-theme-toggle:hover {
  border-color: var(--accent, #ff3b00);
  background: var(--surface3, #242733);
}

.theme-toggle-icon {
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #ff3b00);
}

.theme-toggle-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

html[data-theme="light"] .btn-theme-toggle,
body.theme-light .btn-theme-toggle {
  display: none !important;
  background: #f1f4f7 !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .btn-theme-toggle:hover,
body.theme-light .btn-theme-toggle:hover {
  background: #e2e8f0 !important;
  border-color: #ff3b00 !important;
}

@media (max-width: 768px) {
  .btn-theme-toggle {
    display: none !important;
    padding: 5px 8px;
    font-size: 10px;
  }

  .btn-theme-toggle .theme-toggle-label {
    display: none;
  }
}

/* Tokens de Modo Blanco automático si no se forzó dark */
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface2: #f1f4f7;
    --surface3: #e4e9ef;
    --border: #dce1e8;
    --white: #0e0f14;
    --text: #0e0f14;
    --text-primary: #0e0f14;
    --grey1: #475569;
    --grey2: #64748b;
    --accent: #ff3b00;
    --accent-dk: #d93200;
    --gold: #c2410c;
    --brand-lime: #e2f576;
    color-scheme: light;
  }
}

/* Tokens explícitos de Modo Blanco */
html[data-theme="light"],
body.theme-light {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f1f4f7;
  --surface3: #e4e9ef;
  --border: #dce1e8;
  --white: #0e0f14;
  --text: #0e0f14;
  --text-primary: #0e0f14;
  --grey1: #475569;
  --grey2: #64748b;
  --accent: #ff3b00;
  --accent-dk: #d93200;
  --gold: #c2410c;
  --brand-lime: #e2f576;
  color-scheme: light;
}

html[data-theme="dark"],
body.theme-dark {
  --bg: #0e0f14;
  --surface: #14151c;
  --surface2: #1b1d26;
  --surface3: #242733;
  --border: #2b2e3b;
  --white: #eef1f2;
  --text: #eef1f2;
  --text-primary: #eef1f2;
  --grey1: #9ca3af;
  --grey2: #646b78;
  --accent: #e2f576;
  --accent-dk: #cde354;
  --gold: #e2f576;
  color-scheme: dark;
}

html[data-theme="dark"] body,
body.theme-dark {
  background: #0e0f14;
  color: #eef1f2;
}

/* Componentes en Modo Blanco (según referencia clara ASOMA) */
html[data-theme="light"] body,
body.theme-light {
  background: #ffffff;
  color: #0e0f14;
}

/* Sidebar Blanco */
html[data-theme="light"] #sidebar,
body.theme-light #sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .sidebar-logo-container,
body.theme-light .sidebar-logo-container {
  border-bottom-color: #e2e8f0 !important;
}

html[data-theme="light"] .nav-item,
body.theme-light .nav-item {
  color: #0e0f14;
  font-weight: 400; /* Regular */
}

html[data-theme="light"] .nav-item.active,
body.theme-light .nav-item.active {
  font-weight: 800; /* Bold cuando está activo */
}

html[data-theme="light"] .nav-item:hover,
body.theme-light .nav-item:hover {
  background: #f1f4f7;
  color: #ff3b00;
}

html[data-theme="light"] .nav-item.active,
body.theme-light .nav-item.active,
html[data-theme="light"] #nav-artist.active,
body.theme-light #nav-artist.active {
  background: #ff3b00 !important;
  color: #eef1f2 !important;
}

html[data-theme="light"] .nav-item.active span,
body.theme-light .nav-item.active span {
  color: #eef1f2 !important;
}

html[data-theme="light"] .nav-item.active .nav-icon-wrap,
body.theme-light .nav-item.active .nav-icon-wrap {
  background: rgba(14, 15, 20, 0.18) !important;
  color: #eef1f2 !important;
}

html[data-theme="light"] .create-event-btn,
body.theme-light .create-event-btn {
  background: #e2f576 !important;
  color: #0e0f14 !important;
  border: 1px solid #c8dc58;
}

html[data-theme="light"] .library-add-btn,
body.theme-light .library-add-btn {
  background: #e4e9ef;
  color: #0e0f14;
}

html[data-theme="light"] .library-add-btn:hover,
body.theme-light .library-add-btn:hover {
  background: #e2f576;
  color: #0e0f14;
}

/* Topbar Blanco */
html[data-theme="light"] #topbar,
body.theme-light #topbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .btn-sidebar-collapse,
body.theme-light .btn-sidebar-collapse,
html[data-theme="light"] .btn-topbar-sidebar-toggle,
body.theme-light .btn-topbar-sidebar-toggle,
html[data-theme="light"] .btn-floating-sidebar-toggle,
body.theme-light .btn-floating-sidebar-toggle,
html[data-theme="light"] .btn-cart,
body.theme-light .btn-cart,
html[data-theme="light"] .location-wrap,
body.theme-light .location-wrap,
html[data-theme="light"] #topbar-user-badge,
body.theme-light #topbar-user-badge {
  background: #f1f4f7 !important;
  color: #0e0f14 !important;
  border: 1px solid #d5dbe2 !important;
  box-shadow: none;
}

html[data-theme="light"] #topbar-user-badge span,
body.theme-light #topbar-user-badge span,
html[data-theme="light"] .location-select,
body.theme-light .location-select {
  color: #0e0f14 !important;
}

html[data-theme="light"] #btn-topbar-login,
body.theme-light #btn-topbar-login {
  background: #f1f4f7 !important;
  color: #0e0f14 !important;
  border: 1px solid #d5dbe2 !important;
}

html[data-theme="light"] #btn-topbar-register,
body.theme-light #btn-topbar-register {
  background: #e2f576 !important;
  color: #0e0f14 !important;
  border: 1px solid #c8dc58 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .topbar-mobile-brand,
body.theme-light .topbar-mobile-brand {
  color: #0e0f14;
}

/* Buscador en Modo Blanco */
html[data-theme="light"] .search-input-lg,
body.theme-light .search-input-lg {
  background: #f4f6f9 !important;
  border: 2px solid #0e0f14 !important;
  color: #0e0f14 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .search-input-lg::placeholder,
body.theme-light .search-input-lg::placeholder {
  color: #64748b;
}

html[data-theme="light"] .search-icon-lg,
body.theme-light .search-icon-lg {
  color: #0e0f14 !important;
}

html[data-theme="light"] .search-input-lg:focus,
body.theme-light .search-input-lg:focus {
  border-color: #ff3b00 !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 0, 0.15) !important;
}

/* Hero Banner (se mantiene bloque fotográfico oscuro con alto contraste) */
html[data-theme="light"] .hero-banner,
body.theme-light .hero-banner {
  background: #0e0f14 !important;
  border-color: rgba(14, 15, 20, 0.14) !important;
}

html[data-theme="light"] .hero-banner h1.hero-title,
body.theme-light .hero-banner h1.hero-title,
html[data-theme="light"] .hero-banner .hero-title,
body.theme-light .hero-banner .hero-title {
  color: #eef1f2 !important;
}

html[data-theme="light"] .hero-banner .hero-desc,
body.theme-light .hero-banner .hero-desc {
  color: rgba(238, 241, 242, 0.88) !important;
}

/* Píldoras de filtro y Banner de recomendaciones */
html[data-theme="light"] .filter-pill,
body.theme-light .filter-pill {
  background: #f1f4f7;
  color: #0e0f14;
  border: 1px solid #d5dbe2;
}

html[data-theme="light"] .filter-pill:hover,
body.theme-light .filter-pill:hover {
  background: #e4e9ef;
  border-color: #0e0f14;
  color: #0e0f14;
}

html[data-theme="light"] .filter-pill.active,
body.theme-light .filter-pill.active {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  color: #eef1f2 !important;
}

html[data-theme="light"] .personalized-recom-banner,
body.theme-light .personalized-recom-banner {
  background: #f8fafc !important;
  border: 1px solid #dce1e8 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] #btn-edit-preferences,
body.theme-light #btn-edit-preferences {
  color: #0e0f14 !important;
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

/* Tarjetas Póster de Eventos sobre Blanco */
html[data-theme="light"] .event-card.asoma-poster-card,
body.theme-light .event-card.asoma-poster-card {
  border: 1px solid rgba(14, 15, 20, 0.12) !important;
  box-shadow: 0 10px 24px rgba(14, 15, 20, 0.09);
}

html[data-theme="light"] .event-card.asoma-poster-card:hover,
body.theme-light .event-card.asoma-poster-card:hover {
  box-shadow: 0 16px 32px rgba(14, 15, 20, 0.14);
}

html[data-theme="light"] .quick-grid-card,
body.theme-light .quick-grid-card,
html[data-theme="light"] .space-card,
body.theme-light .space-card {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0e0f14;
}

/* Calendario, Modales, Mapa y Barra Móvil en Modo Blanco */
html[data-theme="light"] .modal-box,
body.theme-light .modal-box,
html[data-theme="light"] .cart-modal-box,
body.theme-light .cart-modal-box {
  background: #ffffff !important;
  border-color: #dce1e8 !important;
  color: #0e0f14 !important;
  box-shadow: 0 24px 60px rgba(14, 15, 20, 0.22);
}

html[data-theme="light"] .month-day-cell,
body.theme-light .month-day-cell,
html[data-theme="light"] .btn-cal-scope,
body.theme-light .btn-cal-scope,
html[data-theme="light"] .cal-filter-select,
body.theme-light .cal-filter-select {
  background: #ffffff;
  color: #0e0f14;
  border-color: #dce1e8;
}

html[data-theme="light"] .btn-cal-scope:hover,
body.theme-light .btn-cal-scope:hover {
  background: #f1f4f7;
  color: #0e0f14;
  border-color: #0e0f14;
}

html[data-theme="light"] .btn-cal-scope.active,
body.theme-light .btn-cal-scope.active {
  background: #ff3b00 !important;
  color: #eef1f2 !important;
  border-color: #ff3b00 !important;
  box-shadow: none;
}

html[data-theme="light"] .cal-brand-kicker,
body.theme-light .cal-brand-kicker {
  color: #6d28d9;
}

html[data-theme="light"] .week-event-badge,
body.theme-light .week-event-badge,
html[data-theme="light"] .month-event-badge,
body.theme-light .month-event-badge {
  color: #eef1f2;
}

html[data-theme="light"] .spaces-map-footer,
body.theme-light .spaces-map-footer,
html[data-theme="light"] .spaces-map-footer span,
body.theme-light .spaces-map-footer span {
  color: #475569 !important;
}

html[data-theme="light"] .mobile-bottom-nav,
body.theme-light .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -6px 24px rgba(14, 15, 20, 0.08);
}

html[data-theme="light"] .mobile-nav-item,
body.theme-light .mobile-nav-item {
  color: #475569;
}

@media (max-width: 768px) {

  html[data-theme="light"] #topbar,
  body.theme-light #topbar {
    background: rgba(255, 255, 255, 0.96) !important;
  }
}

/* ============================================================
   REFINAMIENTO MODO BLANCO: COMUNIDAD, ARTISTAS & PANEL ADMIN
   Elimina zonas oscuras no deseadas y asegura contraste total
   ============================================================ */

/* 1. Comunidad & Amigos en Modo Blanco */
html[data-theme="light"] .friends-view-wrapper,
body.theme-light .friends-view-wrapper {
  background: #ffffff !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .friends-hero-title,
body.theme-light .friends-hero-title,
html[data-theme="light"] .friends-plans-title,
body.theme-light .friends-plans-title,
html[data-theme="light"] .friend-name,
body.theme-light .friend-name,
html[data-theme="light"] .friends-stat-value,
body.theme-light .friends-stat-value,
html[data-theme="light"] .friend-plan-title,
body.theme-light .friend-plan-title,
html[data-theme="light"] .friend-request-name,
body.theme-light .friend-request-name,
html[data-theme="light"] .friend-match-name,
body.theme-light .friend-match-name,
html[data-theme="light"] .friends-discover-title,
body.theme-light .friends-discover-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .friends-hero-subtitle,
body.theme-light .friends-hero-subtitle,
html[data-theme="light"] .friend-event-status,
body.theme-light .friend-event-status,
html[data-theme="light"] .friend-plan-meta,
body.theme-light .friend-plan-meta,
html[data-theme="light"] .friend-request-mutual,
body.theme-light .friend-request-mutual,
html[data-theme="light"] .friend-match-desc,
body.theme-light .friend-match-desc,
html[data-theme="light"] .friends-discover-desc,
body.theme-light .friends-discover-desc {
  color: #475569 !important;
}

html[data-theme="light"] .friend-event-status strong,
body.theme-light .friend-event-status strong {
  color: #0e0f14 !important;
}

html[data-theme="light"] .friends-watermark-bg,
body.theme-light .friends-watermark-bg {
  -webkit-text-stroke: 1px rgba(14, 15, 20, 0.05) !important;
  color: transparent !important;
}

html[data-theme="light"] .friends-side-meta,
body.theme-light .friends-side-meta {
  color: #94a3b8 !important;
}

html[data-theme="light"] .friend-card,
body.theme-light .friend-card,
html[data-theme="light"] .friends-stat-card,
body.theme-light .friends-stat-card,
html[data-theme="light"] .friend-plan-card,
body.theme-light .friend-plan-card,
html[data-theme="light"] .friends-sidebar-card,
body.theme-light .friends-sidebar-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .friend-card:hover,
body.theme-light .friend-card:hover,
html[data-theme="light"] .friend-plan-card:hover,
body.theme-light .friend-plan-card:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  background: #f8fafc !important;
}

html[data-theme="light"] .friends-search-box,
body.theme-light .friends-search-box {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .friends-search-input,
body.theme-light .friends-search-input {
  color: #0e0f14 !important;
}

html[data-theme="light"] .friends-search-input::placeholder,
body.theme-light .friends-search-input::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="light"] .btn-friend-msg,
body.theme-light .btn-friend-msg,
html[data-theme="light"] .btn-friend-propose,
body.theme-light .btn-friend-propose {
  background: #f1f4f7 !important;
  color: #0e0f14 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .btn-friend-msg:hover,
body.theme-light .btn-friend-msg:hover,
html[data-theme="light"] .btn-friend-propose:hover,
body.theme-light .btn-friend-propose:hover {
  background: #e2e8f0 !important;
}

html[data-theme="light"] .btn-friend-view-profile,
body.theme-light .btn-friend-view-profile,
html[data-theme="light"] .btn-friend-invite,
body.theme-light .btn-friend-invite {
  background: #ff3b00 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 59, 0, 0.25) !important;
}

html[data-theme="light"] .friends-discover-card,
body.theme-light .friends-discover-card {
  background: #f8fafc !important;
  border: 1.5px dashed #cbd5e1 !important;
}

html[data-theme="light"] .friends-discover-card:hover,
body.theme-light .friends-discover-card:hover {
  border-color: #ff3b00 !important;
}

html[data-theme="light"] .friends-footer,
body.theme-light .friends-footer {
  border-top-color: #e2e8f0 !important;
}

html[data-theme="light"] .friends-footer-manifesto,
body.theme-light .friends-footer-manifesto,
html[data-theme="light"] .friends-footer-copyright,
body.theme-light .friends-footer-copyright,
html[data-theme="light"] .friends-footer-tagline,
body.theme-light .friends-footer-tagline {
  color: #64748b !important;
}

html[data-theme="light"] .friends-footer-col-title,
body.theme-light .friends-footer-col-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .friends-footer-col-link,
body.theme-light .friends-footer-col-link {
  color: #475569 !important;
}

/* 2. Artistas Culturales en Modo Blanco */
html[data-theme="light"] .artists-catalog-header,
body.theme-light .artists-catalog-header {
  background: linear-gradient(180deg, rgba(255, 59, 0, 0.05) 0%, transparent 100%) !important;
  border-bottom-color: #e2e8f0 !important;
}

html[data-theme="light"] .artists-catalog-header h1,
body.theme-light .artists-catalog-header h1 {
  color: #0e0f14 !important;
}

html[data-theme="light"] .artist-catalog-card,
body.theme-light .artist-catalog-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .artist-catalog-card:hover,
body.theme-light .artist-catalog-card:hover {
  border-color: #ff3b00 !important;
  box-shadow: 0 8px 24px rgba(255, 59, 0, 0.12) !important;
}

html[data-theme="light"] .artist-catalog-card h3,
body.theme-light .artist-catalog-card h3 {
  color: #0e0f14 !important;
}

html[data-theme="light"] .artist-catalog-card p,
body.theme-light .artist-catalog-card p {
  color: #475569 !important;
}

html[data-theme="light"] #artists-search-input,
body.theme-light #artists-search-input,
html[data-theme="light"] #artists-sector-filter,
body.theme-light #artists-sector-filter {
  background: #ffffff !important;
  color: #0e0f14 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] #artists-sector-filter option,
body.theme-light #artists-sector-filter option {
  background: #ffffff !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .btn-card-open-fichas,
body.theme-light .btn-card-open-fichas {
  background: #f1f4f7 !important;
  color: #0e0f14 !important;
  border-color: #dce1e8 !important;
}

html[data-theme="light"] .btn-card-open-fichas:hover,
body.theme-light .btn-card-open-fichas:hover {
  background: #e2e8f0 !important;
}

html[data-theme="light"] .btn-card-open-studio,
body.theme-light .btn-card-open-studio {
  background: #ffffff !important;
  color: #ff3b00 !important;
  border-color: #ff3b00 !important;
}

html[data-theme="light"] .btn-card-open-contact,
body.theme-light .btn-card-open-contact {
  background: #ff3b00 !important;
  color: #ffffff !important;
}

/* 3. Panel Administrador en Modo Blanco (Elimina bloque negro superior) */
html[data-theme="light"] .admin-dashboard-banner,
body.theme-light .admin-dashboard-banner {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.06) 0%, #ffffff 100%) !important;
  border: 1px solid rgba(255, 0, 0, 0.28) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .admin-dashboard-banner h1,
body.theme-light .admin-dashboard-banner h1 {
  color: #0e0f14 !important;
}

html[data-theme="light"] .admin-dashboard-banner p,
body.theme-light .admin-dashboard-banner p {
  color: #475569 !important;
}

html[data-theme="light"] #btn-admin-create-event,
body.theme-light #btn-admin-create-event {
  background: #ff3b00 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 59, 0, 0.28) !important;
}

html[data-theme="light"] #btn-admin-export-report,
body.theme-light #btn-admin-export-report {
  background: #f1f4f7 !important;
  color: #0e0f14 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] #btn-admin-export-report:hover,
body.theme-light #btn-admin-export-report:hover {
  background: #e2e8f0 !important;
}

html[data-theme="light"] .admin-kpi-card,
body.theme-light .admin-kpi-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .admin-kpi-card:hover,
body.theme-light .admin-kpi-card:hover {
  border-color: #ff3b00 !important;
  box-shadow: 0 8px 20px rgba(255, 59, 0, 0.12) !important;
}

html[data-theme="light"] .admin-kpi-sub,
body.theme-light .admin-kpi-sub {
  color: #64748b !important;
}

html[data-theme="light"] .admin-table-card,
body.theme-light .admin-table-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .admin-table th,
body.theme-light .admin-table th {
  background: #f1f4f7 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .admin-table td,
body.theme-light .admin-table td {
  border-color: #e2e8f0 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .admin-table td strong,
body.theme-light .admin-table td strong {
  color: #0e0f14 !important;
}

html[data-theme="light"] #btn-admin-config-bank,
body.theme-light #btn-admin-config-bank {
  background: #f1f4f7 !important;
  color: #c2410c !important;
  border-color: #c2410c !important;
}

html[data-theme="light"] .btn-admin-order-filter,
body.theme-light .btn-admin-order-filter {
  background: #f1f4f7 !important;
  color: #0e0f14 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .btn-admin-order-filter[style*="var(--primary)"],
body.theme-light .btn-admin-order-filter[style*="var(--primary)"] {
  background: #ff0000 !important;
  color: #ffffff !important;
  border-color: #ff0000 !important;
}

/* Management Table Buttons High-Contrast & Legibility Fix */
.btn-space-manage-view,
.btn-artist-manage-view,
.btn-action-preview,
.btn-db-open-detail {
  color: var(--white) !important;
}

html[data-theme="light"] .btn-space-manage-view,
body.theme-light .btn-space-manage-view,
html[data-theme="light"] .btn-artist-manage-view,
body.theme-light .btn-artist-manage-view,
html[data-theme="light"] .btn-action-preview,
body.theme-light .btn-action-preview,
html[data-theme="light"] .btn-db-open-detail,
body.theme-light .btn-db-open-detail {
  background: #f1f4f7 !important;
  color: #0e0f14 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .btn-space-manage-view:hover,
body.theme-light .btn-space-manage-view:hover,
html[data-theme="light"] .btn-artist-manage-view:hover,
body.theme-light .btn-artist-manage-view:hover,
html[data-theme="light"] .btn-action-preview:hover,
body.theme-light .btn-action-preview:hover,
html[data-theme="light"] .btn-db-open-detail:hover,
body.theme-light .btn-db-open-detail:hover {
  background: #e2e8f0 !important;
  color: #000000 !important;
  border-color: #94a3b8 !important;
}

html[data-theme="light"] .btn-space-manage-edit,
body.theme-light .btn-space-manage-edit,
html[data-theme="light"] .btn-artist-manage-edit,
body.theme-light .btn-artist-manage-edit {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #a16207 !important;
  border: 1px solid rgba(234, 179, 8, 0.5) !important;
}

html[data-theme="light"] .btn-space-manage-delete,
body.theme-light .btn-space-manage-delete,
html[data-theme="light"] .btn-artist-manage-delete,
body.theme-light .btn-artist-manage-delete,
html[data-theme="light"] .btn-action-delete-space,
body.theme-light .btn-action-delete-space,
html[data-theme="light"] .btn-action-delete-event,
body.theme-light .btn-action-delete-event {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

html[data-theme="light"] .btn-space-manage-pause,
body.theme-light .btn-space-manage-pause {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #a16207 !important;
  border: 1px solid rgba(234, 179, 8, 0.4) !important;
}

html[data-theme="light"] .btn-artist-manage-invite,
body.theme-light .btn-artist-manage-invite {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

/* ============================================================
   ASOMA SPOTLIGHT: ¿QUÉ QUIERES VIVIR HOY? (DROPDOWN INMERSIVO)
   ============================================================ */
.asoma-spotlight-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: clamp(460px, 46vw, 560px);
  max-width: calc(100vw - 32px);
  max-height: min(620px, calc(100vh - 96px));
  overflow-y: auto;
  overflow-x: hidden;
  background: #111219;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(180, 247, 50, 0.15);
  z-index: 2500 !important;
  animation: spotlightFadeDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 640px) {
  .asoma-spotlight-dropdown {
    width: min(500px, calc(100vw - 24px));
    min-width: 0;
    max-width: calc(100vw - 24px);
  }
}

@keyframes spotlightFadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spotlight-inner {
  padding: 16px;
}

.spotlight-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spotlight-section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 4px;
}

.spotlight-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.spotlight-section-subtitle {
  font-size: 12px;
  color: var(--grey1);
}

/* Grid de Moods */
.spotlight-moods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 540px) {
  .spotlight-moods-grid {
    grid-template-columns: 1fr;
  }
}

.spotlight-mood-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  padding: 11px 12px;
  background: #181924;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
}

.spotlight-mood-btn:hover {
  background: #202330;
  color: #ffffff;
  border-color: #ff3b00;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.spotlight-mood-btn:hover .spotlight-mood-sub {
  color: #cbd5e1;
}

.spotlight-mood-emoji {
  font-size: 20px;
  flex-shrink: 0;
}

.spotlight-mood-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.spotlight-mood-label {
  font-family: var(--font-display, var(--font-mono));
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-mood-sub {
  font-size: 10px;
  color: var(--grey1);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chips de Tendencias y Sectores */
.spotlight-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spotlight-trend-chip,
.spotlight-sector-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spotlight-trend-chip:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.spotlight-sector-chip:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: #60a5fa;
  color: #93c5fd;
  transform: translateY(-1px);
}

/* Listado de Resultados Dinámicos */
.spotlight-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spotlight-event-item,
.spotlight-artist-item,
.spotlight-space-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.spotlight-event-item:hover,
.spotlight-artist-item:hover,
.spotlight-space-item:hover {
  background: rgba(204, 255, 0, 0.08);
  border-color: var(--accent);
  transform: translateX(2px);
}

.spotlight-item-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.spotlight-artist-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #18181c;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}

.spotlight-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spotlight-item-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-item-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--grey1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-item-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(204, 255, 0, 0.15);
  color: var(--accent);
  border: 1px solid rgba(204, 255, 0, 0.3);
  white-space: nowrap;
}

.spotlight-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-spotlight-artist-ficha,
.btn-spotlight-space-ficha {
  background: var(--surface2);
  color: var(--white);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-spotlight-artist-ficha:hover,
.btn-spotlight-space-ficha:hover {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
}

.btn-spotlight-artist-studio {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-spotlight-artist-studio:hover {
  background: rgba(204, 255, 0, 0.2);
}

.spotlight-reset-btn {
  background: var(--surface2);
  color: var(--white);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.spotlight-mark {
  background: rgba(204, 255, 0, 0.3);
  color: inherit;
  font-weight: 900;
  padding: 0 2px;
  border-radius: 2px;
}

.spotlight-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--grey1);
}

.spotlight-footer kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* ============================================================
   LIGHT MODE (BLANCO) OVERRIDES PARA SPOTLIGHT
   ============================================================ */
html[data-theme="light"] .asoma-spotlight-dropdown,
body.theme-light .asoma-spotlight-dropdown {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 0, 0, 0.1) !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .spotlight-geo-card,
body.theme-light .spotlight-geo-card {
  background: #fff7f5 !important;
  border: 1px solid rgba(255, 59, 0, 0.24) !important;
}

html[data-theme="light"] .spotlight-geo-title,
body.theme-light .spotlight-geo-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .spotlight-geo-desc,
body.theme-light .spotlight-geo-desc {
  color: #475569 !important;
}

html[data-theme="light"] .spotlight-geo-icon-wrap,
body.theme-light .spotlight-geo-icon-wrap {
  background: rgba(255, 59, 0, 0.12) !important;
}

html[data-theme="light"] .spotlight-section-title,
body.theme-light .spotlight-section-title {
  color: #ff3b00 !important;
}

html[data-theme="light"] .spotlight-section-subtitle,
body.theme-light .spotlight-section-subtitle {
  color: #64748b !important;
}

html[data-theme="light"] .spotlight-mood-btn,
body.theme-light .spotlight-mood-btn {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .spotlight-mood-btn:hover,
body.theme-light .spotlight-mood-btn:hover {
  background: #fff5f2 !important;
  color: #0e0f14 !important;
  border-color: #ff3b00 !important;
  box-shadow: 0 4px 14px rgba(255, 59, 0, 0.14) !important;
}

html[data-theme="light"] .spotlight-mood-btn:hover .spotlight-mood-sub,
body.theme-light .spotlight-mood-btn:hover .spotlight-mood-sub {
  color: #475569 !important;
}

html[data-theme="light"] .spotlight-mood-sub,
body.theme-light .spotlight-mood-sub {
  color: #64748b !important;
}

html[data-theme="light"] .spotlight-trend-chip,
body.theme-light .spotlight-trend-chip {
  background: #f1f4f7 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .spotlight-trend-chip:hover,
body.theme-light .spotlight-trend-chip:hover {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
}

html[data-theme="light"] .spotlight-sector-chip,
body.theme-light .spotlight-sector-chip {
  background: #f1f4f7 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .spotlight-sector-chip:hover,
body.theme-light .spotlight-sector-chip:hover {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #1d4ed8 !important;
}

html[data-theme="light"] .spotlight-event-item,
body.theme-light .spotlight-event-item,
html[data-theme="light"] .spotlight-artist-item,
body.theme-light .spotlight-artist-item,
html[data-theme="light"] .spotlight-space-item,
body.theme-light .spotlight-space-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .spotlight-event-item:hover,
body.theme-light .spotlight-event-item:hover,
html[data-theme="light"] .spotlight-artist-item:hover,
body.theme-light .spotlight-artist-item:hover,
html[data-theme="light"] .spotlight-space-item:hover,
body.theme-light .spotlight-space-item:hover {
  background: #fff5f5 !important;
  border-color: #ff0000 !important;
}

html[data-theme="light"] .spotlight-item-title,
body.theme-light .spotlight-item-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .spotlight-item-meta,
body.theme-light .spotlight-item-meta {
  color: #64748b !important;
}

html[data-theme="light"] .spotlight-item-badge,
body.theme-light .spotlight-item-badge {
  background: #fef2f2 !important;
  color: #ff0000 !important;
  border-color: #fecaca !important;
}

html[data-theme="light"] .spotlight-mark,
body.theme-light .spotlight-mark {
  background: rgba(255, 0, 0, 0.15) !important;
  color: #ff0000 !important;
}

html[data-theme="light"] .btn-spotlight-artist-ficha,
body.theme-light .btn-spotlight-artist-ficha,
html[data-theme="light"] .btn-spotlight-space-ficha,
body.theme-light .btn-spotlight-space-ficha {
  background: #f1f4f7 !important;
  color: #0e0f14 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .btn-spotlight-artist-ficha:hover,
body.theme-light .btn-spotlight-artist-ficha:hover,
html[data-theme="light"] .btn-spotlight-space-ficha:hover,
body.theme-light .btn-spotlight-space-ficha:hover {
  background: #ff0000 !important;
  color: #ffffff !important;
  border-color: #ff0000 !important;
}

html[data-theme="light"] .btn-spotlight-artist-studio,
body.theme-light .btn-spotlight-artist-studio {
  background: transparent !important;
  color: #ff0000 !important;
  border-color: #ff0000 !important;
}

html[data-theme="light"] .btn-spotlight-artist-studio:hover,
body.theme-light .btn-spotlight-artist-studio:hover {
  background: rgba(255, 0, 0, 0.08) !important;
}

html[data-theme="light"] .spotlight-footer,
body.theme-light .spotlight-footer {
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}

html[data-theme="light"] .spotlight-footer kbd,
body.theme-light .spotlight-footer kbd {
  background: #f1f4f7 !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .search-clear-btn,
body.theme-light .search-clear-btn {
  background: #f1f4f7 !important;
  color: #64748b !important;
}

html[data-theme="light"] .search-clear-btn:hover,
body.theme-light .search-clear-btn:hover {
  background: #ff0000 !important;
  color: #ffffff !important;
}

/* ============================================================
   ASOMA RECOMENDACIONES CULTURALES & COMUNIDAD DE FANS
   ============================================================ */
.home-recommendations-section {
  background: linear-gradient(180deg, rgba(204, 255, 0, 0.04) 0%, transparent 100%);
  border: 1px solid rgba(204, 255, 0, 0.2);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 30px;
}

.recom-header-badge {
  background: rgba(204, 255, 0, 0.15);
  color: var(--accent);
  border: 1px solid rgba(204, 255, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.home-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.recom-event-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}

.recom-event-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.recom-card-hero {
  position: relative;
  width: 100%;
  height: 140px;
  background: #111;
  overflow: hidden;
}

.recom-card-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.recom-event-card:hover .recom-card-hero img {
  transform: scale(1.04);
}

.recom-card-affinity-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
}

.recom-card-reason-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(14, 15, 20, 0.9);
  backdrop-filter: blur(6px);
  color: #fff;
  border-left: 3px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recom-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.recom-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recom-card-meta {
  font-size: 11px;
  color: var(--grey1);
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

/* Light mode overrides */
html[data-theme="light"] .home-recommendations-section,
body.theme-light .home-recommendations-section {
  background: linear-gradient(180deg, rgba(255, 0, 0, 0.04) 0%, transparent 100%) !important;
  border: 1px solid rgba(255, 0, 0, 0.22) !important;
}

html[data-theme="light"] .recom-header-badge,
body.theme-light .recom-header-badge {
  background: #fef2f2 !important;
  color: #ff0000 !important;
  border: 1px solid #fecaca !important;
}

html[data-theme="light"] .recom-event-card,
body.theme-light .recom-event-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .recom-event-card:hover,
body.theme-light .recom-event-card:hover {
  border-color: #ff0000 !important;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.1) !important;
}

html[data-theme="light"] .recom-card-title,
body.theme-light .recom-card-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .recom-card-affinity-pill,
body.theme-light .recom-card-affinity-pill {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #ff0000 !important;
  border-color: #ff0000 !important;
}

html[data-theme="light"] .recom-card-reason-badge,
body.theme-light .recom-card-reason-badge {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0e0f14 !important;
  border-left-color: #ff0000 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Adaptaciones de Modo Claro para Perfil, Comunidades y Recomendaciones */
html[data-theme="light"] .profile-community-card,
body.theme-light .profile-community-card,
html[data-theme="light"] .profile-friend-card,
body.theme-light .profile-friend-card,
html[data-theme="light"] .profile-recom-card,
body.theme-light .profile-recom-card {
  background: #ffffff !important;
  border-color: #e4e4e7 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .profile-com-title,
body.theme-light .profile-com-title,
html[data-theme="light"] .profile-friend-name,
body.theme-light .profile-friend-name,
html[data-theme="light"] .profile-recom-title,
body.theme-light .profile-recom-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .profile-com-desc,
body.theme-light .profile-com-desc,
html[data-theme="light"] .profile-friend-meta,
body.theme-light .profile-friend-meta,
html[data-theme="light"] .profile-recom-meta,
body.theme-light .profile-recom-meta {
  color: #52525b !important;
}

html[data-theme="light"] .profile-com-badge,
body.theme-light .profile-com-badge {
  background: rgba(255, 0, 0, 0.08) !important;
  color: #ff0000 !important;
  border-color: rgba(255, 0, 0, 0.3) !important;
}

html[data-theme="light"] .profile-recom-match-badge,
body.theme-light .profile-recom-match-badge {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #ff0000 !important;
  border-color: #ff0000 !important;
}

html[data-theme="light"] .btn-card-toggle-follow:not(.following),
body.theme-light .btn-card-toggle-follow:not(.following) {
  background: #f4f4f5 !important;
  color: #ff0000 !important;
  border-color: #e4e4e7 !important;
}

html[data-theme="light"] .btn-card-toggle-follow.following,
body.theme-light .btn-card-toggle-follow.following {
  background: #ff0000 !important;
  color: #ffffff !important;
  border-color: #ff0000 !important;
}

/* ============================================================
   PERFIL DEL ESPECTADOR / USUARIO EN MODO BLANCO (DUAL-THEME)
   ============================================================ */
html[data-theme="light"] #view-user,
body.theme-light #view-user,
html[data-theme="light"] .public-profile-wrapper,
body.theme-light .public-profile-wrapper {
  background: #ffffff !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .public-profile-container,
body.theme-light .public-profile-container {
  background: #ffffff !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .public-profile-topbar,
body.theme-light .public-profile-topbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .public-profile-brand,
body.theme-light .public-profile-brand {
  color: #0e0f14 !important;
}

html[data-theme="light"] .public-profile-guest-bar,
body.theme-light .public-profile-guest-bar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .btn-profile-back,
body.theme-light .btn-profile-back {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .btn-profile-back:hover,
body.theme-light .btn-profile-back:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .btn-profile-msg,
body.theme-light .btn-profile-msg {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .btn-profile-msg:hover,
body.theme-light .btn-profile-msg:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .btn-profile-connect:not([style*="background:var(--accent)"]),
body.theme-light .btn-profile-connect:not([style*="background:var(--accent)"]) {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .public-profile-avatar-img,
body.theme-light .public-profile-avatar-img {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .public-profile-avatar-badge,
body.theme-light .public-profile-avatar-badge {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

html[data-theme="light"] .public-profile-name,
body.theme-light .public-profile-name {
  color: #0e0f14 !important;
}

html[data-theme="light"] .public-profile-meta,
body.theme-light .public-profile-meta {
  color: #64748b !important;
}

html[data-theme="light"] .public-profile-tag-pill,
body.theme-light .public-profile-tag-pill {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

html[data-theme="light"] .public-profile-stat-num,
body.theme-light .public-profile-stat-num {
  color: #0e0f14 !important;
}

html[data-theme="light"] .public-profile-stat-num.highlight,
body.theme-light .public-profile-stat-num.highlight {
  color: #ff5927 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .public-profile-stat-lbl,
body.theme-light .public-profile-stat-lbl {
  color: #64748b !important;
}

html[data-theme="light"] .public-profile-tabs,
body.theme-light .public-profile-tabs {
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .public-profile-tab,
body.theme-light .public-profile-tab {
  color: #64748b !important;
}

html[data-theme="light"] .public-profile-tab:hover,
body.theme-light .public-profile-tab:hover {
  color: #0e0f14 !important;
}

html[data-theme="light"] .public-profile-tab.active,
body.theme-light .public-profile-tab.active {
  color: #ff5927 !important;
}

html[data-theme="light"] .public-profile-tab.active::after,
body.theme-light .public-profile-tab.active::after {
  background: #ff5927 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .profile-section-title,
body.theme-light .profile-section-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .profile-empty-card,
body.theme-light .profile-empty-card {
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .profile-empty-card h3,
body.theme-light .profile-empty-card h3 {
  color: #0e0f14 !important;
}

html[data-theme="light"] .profile-empty-card p,
body.theme-light .profile-empty-card p {
  color: #64748b !important;
}

html[data-theme="light"] .btn-profile-empty-action,
body.theme-light .btn-profile-empty-action {
  background: #ff5927 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .btn-profile-empty-action.btn-profile-empty-outline,
body.theme-light .btn-profile-empty-action.btn-profile-empty-outline {
  background: #fff7ed !important;
  color: #ff5927 !important;
  border: 1px solid #fed7aa !important;
}

html[data-theme="light"] .profile-ticket-card,
body.theme-light .profile-ticket-card,
html[data-theme="light"] .profile-space-card,
body.theme-light .profile-space-card,
html[data-theme="light"] .profile-history-item,
body.theme-light .profile-history-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0e0f14 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .profile-ticket-card:hover,
body.theme-light .profile-ticket-card:hover,
html[data-theme="light"] .profile-space-card:hover,
body.theme-light .profile-space-card:hover,
html[data-theme="light"] .profile-history-item:hover,
body.theme-light .profile-history-item:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .profile-ticket-title,
body.theme-light .profile-ticket-title,
html[data-theme="light"] .profile-space-title,
body.theme-light .profile-space-title,
html[data-theme="light"] .profile-history-title,
body.theme-light .profile-history-title,
html[data-theme="light"] .profile-history-price,
body.theme-light .profile-history-price {
  color: #0e0f14 !important;
}

html[data-theme="light"] .profile-ticket-meta,
body.theme-light .profile-ticket-meta,
html[data-theme="light"] .profile-space-sector,
body.theme-light .profile-space-sector,
html[data-theme="light"] .profile-history-meta,
body.theme-light .profile-history-meta {
  color: #64748b !important;
}

html[data-theme="light"] .profile-ticket-bottom,
body.theme-light .profile-ticket-bottom,
html[data-theme="light"] .profile-space-bottom,
body.theme-light .profile-space-bottom {
  border-top: 1px solid #f1f5f9 !important;
  color: #64748b !important;
}

html[data-theme="light"] .profile-ticket-code,
body.theme-light .profile-ticket-code {
  color: #64748b !important;
}

html[data-theme="light"] .profile-space-more-card,
body.theme-light .profile-space-more-card {
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  color: #64748b !important;
}

html[data-theme="light"] .profile-space-more-card:hover,
body.theme-light .profile-space-more-card:hover {
  background: #fff7ed !important;
  border-color: #ff5927 !important;
  color: #ff5927 !important;
}

html[data-theme="light"] .btn-edit-profile-action,
body.theme-light .btn-edit-profile-action {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .btn-edit-profile-action:hover,
body.theme-light .btn-edit-profile-action:hover {
  background: #f1f5f9 !important;
}

html[data-theme="light"] .btn-leave-review,
body.theme-light .btn-leave-review {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #ff5927 !important;
}

html[data-theme="light"] .btn-view-hist-event,
body.theme-light .btn-view-hist-event {
  background: transparent !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

html[data-theme="light"] .btn-view-hist-event:hover,
body.theme-light .btn-view-hist-event:hover {
  background: #f1f5f9 !important;
  color: #0e0f14 !important;
}

/* ============================================================
   ESTUDIO DEL ARTISTA Y ESPACIOS EN MODO BLANCO
   ============================================================ */
html[data-theme="light"] .artist-dashboard-banner,
body.theme-light .artist-dashboard-banner {
  background: linear-gradient(135deg, rgba(255, 89, 39, 0.08) 0%, #ffffff 100%) !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .artist-watermark-bg,
body.theme-light .artist-watermark-bg {
  color: rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .artist-guest-context-bar,
body.theme-light .artist-guest-context-bar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .artist-stat-card,
body.theme-light .artist-stat-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .artist-stat-num,
body.theme-light .artist-stat-num {
  color: #0e0f14 !important;
}

html[data-theme="light"] .artist-stat-label,
body.theme-light .artist-stat-label {
  color: #64748b !important;
}

html[data-theme="light"] .artist-bio-text,
body.theme-light .artist-bio-text {
  color: #475569 !important;
}

html[data-theme="light"] .artist-identity-col h1,
body.theme-light .artist-identity-col h1 {
  color: #0e0f14 !important;
}

/* Paneles, pestañas y cajas del Estudio del Artista en Modo Blanco */
html[data-theme="light"] .artist-nav-tabs,
body.theme-light .artist-nav-tabs {
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .artist-nav-tab,
body.theme-light .artist-nav-tab {
  color: #64748b !important;
}

html[data-theme="light"] .artist-nav-tab:hover,
body.theme-light .artist-nav-tab:hover {
  color: #0e0f14 !important;
}

html[data-theme="light"] .artist-nav-tab.active,
body.theme-light .artist-nav-tab.active {
  color: var(--accent, #ff3b00) !important;
  border-bottom-color: var(--accent, #ff3b00) !important;
}

html[data-theme="light"] .artist-empty-box,
body.theme-light .artist-empty-box {
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .artist-empty-box .artist-empty-title,
body.theme-light .artist-empty-box .artist-empty-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .artist-empty-box p,
body.theme-light .artist-empty-box p {
  color: #475569 !important;
}

html[data-theme="light"] .artist-sidebar-widget,
body.theme-light .artist-sidebar-widget {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .artist-widget-title,
body.theme-light .artist-widget-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .artist-widget-link,
body.theme-light .artist-widget-link {
  color: #64748b !important;
}

html[data-theme="light"] .artist-widget-link:hover,
body.theme-light .artist-widget-link:hover {
  color: var(--accent, #ff3b00) !important;
}

html[data-theme="light"] .artist-community-stats-bar,
body.theme-light .artist-community-stats-bar {
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .artist-avatar-stack-item,
body.theme-light .artist-avatar-stack-item {
  background: #f1f5f9 !important;
  border-color: #ffffff !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .artist-activity-card,
body.theme-light .artist-activity-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .artist-activity-text,
body.theme-light .artist-activity-text {
  color: #334155 !important;
}

html[data-theme="light"] .artist-convocatoria-item,
body.theme-light .artist-convocatoria-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .artist-convocatoria-item:hover,
body.theme-light .artist-convocatoria-item:hover {
  border-color: #ff3b00 !important;
  background: #f1f5f9 !important;
}

html[data-theme="light"] .artist-convocatoria-item>div:first-child,
body.theme-light .artist-convocatoria-item>div:first-child {
  color: #0e0f14 !important;
}

html[data-theme="light"] .artist-history-card,
body.theme-light .artist-history-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .artist-history-card:hover,
body.theme-light .artist-history-card:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .artist-history-circle-btn,
body.theme-light .artist-history-circle-btn {
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}

html[data-theme="light"] .artist-propose-banner,
body.theme-light .artist-propose-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, #ffffff 100%) !important;
  border-color: #f59e0b !important;
}

html[data-theme="light"] .artist-propose-banner h3,
body.theme-light .artist-propose-banner h3 {
  color: #0e0f14 !important;
}

html[data-theme="light"] .artist-audio-box,
body.theme-light .artist-audio-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .artist-track-item,
body.theme-light .artist-track-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .artist-dossier-card,
body.theme-light .artist-dossier-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .artist-community-banner,
body.theme-light .artist-community-banner {
  background: linear-gradient(135deg, rgba(255, 59, 0, 0.08) 0%, #ffffff 100%) !important;
  border-color: #fed7aa !important;
}

html[data-theme="light"] .artist-community-banner h3,
body.theme-light .artist-community-banner h3 {
  color: #0e0f14 !important;
}

html[data-theme="light"] .artist-community-banner p,
body.theme-light .artist-community-banner p {
  color: #475569 !important;
}

/* Botones de tarjeta en Directorio de Artistas */
html[data-theme="light"] .btn-card-open-studio,
body.theme-light .btn-card-open-studio {
  background: #f1f5f9 !important;
  color: #0e0f14 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .btn-card-open-studio:hover,
body.theme-light .btn-card-open-studio:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
}

html[data-theme="light"] .btn-card-toggle-follow:not(.following),
body.theme-light .btn-card-toggle-follow:not(.following) {
  background: transparent !important;
  color: #ff3b00 !important;
  border: 1px solid #ff3b00 !important;
}

html[data-theme="light"] .btn-card-toggle-follow.following,
body.theme-light .btn-card-toggle-follow.following {
  background: #ff3b00 !important;
  color: #ffffff !important;
  border: 1px solid #ff3b00 !important;
}

html[data-theme="light"] .space-dashboard-banner,
body.theme-light .space-dashboard-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, #ffffff 100%) !important;
  border: 1px solid #fde68a !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .space-spec-card,
body.theme-light .space-spec-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .profile-modal-card,
body.theme-light .profile-modal-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0e0f14 !important;
}

/* ============================================================
   SPACE DETAIL EN MODO CLARO (BLANCO)
   ============================================================ */
html[data-theme="light"] .space-detail-page,
body.theme-light .space-detail-page {
  background: #ffffff !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .offcanvas-panel.offcanvas-space-large,
body.theme-light .offcanvas-panel.offcanvas-space-large {
  background: #ffffff !important;
  border: 1px solid #dce1e8 !important;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.2) !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-sticky-bar,
body.theme-light .spd-sticky-bar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .spd-back-btn,
body.theme-light .spd-back-btn,
html[data-theme="light"] .spd-close-btn,
body.theme-light .spd-close-btn {
  background: #f1f4f7 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-back-btn:hover,
body.theme-light .spd-back-btn:hover {
  background: #e2e8f0 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-close-btn:hover,
body.theme-light .spd-close-btn:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .spd-breadcrumb-sep,
body.theme-light .spd-breadcrumb-sep {
  color: #94a3b8 !important;
}

html[data-theme="light"] .spd-breadcrumb-name,
body.theme-light .spd-breadcrumb-name {
  color: #ff3b00 !important;
}

html[data-theme="light"] .spd-header-hero,
body.theme-light .spd-header-hero {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .spd-badge-accent,
body.theme-light .spd-badge-accent {
  background: #ff3b00 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .spd-badge-pill,
body.theme-light .spd-badge-pill {
  background: #ffffff !important;
  color: #0e0f14 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .spd-badge-pill.muted,
body.theme-light .spd-badge-pill.muted {
  color: #64748b !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .spd-title-h1,
body.theme-light .spd-title-h1 {
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-btn-follow,
body.theme-light .spd-btn-follow {
  background: #ff3b00 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .spd-action-icon-btn,
body.theme-light .spd-action-icon-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-action-icon-btn:hover,
body.theme-light .spd-action-icon-btn:hover {
  background: #f1f4f7 !important;
  border-color: #94a3b8 !important;
}

html[data-theme="light"] .spd-stats-bar,
body.theme-light .spd-stats-bar {
  border-top: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

html[data-theme="light"] .spd-stat-cell,
body.theme-light .spd-stat-cell {
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .spd-stat-lbl,
body.theme-light .spd-stat-lbl {
  color: #64748b !important;
}

html[data-theme="light"] .spd-stat-val,
body.theme-light .spd-stat-val {
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-stat-val.gold,
body.theme-light .spd-stat-val.gold {
  color: #d97706 !important;
}

html[data-theme="light"] .spd-section-bar,
body.theme-light .spd-section-bar {
  background: #ff3b00 !important;
}

html[data-theme="light"] .spd-section-title,
body.theme-light .spd-section-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-section-count,
body.theme-light .spd-section-count {
  color: #64748b !important;
}

html[data-theme="light"] .spd-desc-text,
body.theme-light .spd-desc-text,
html[data-theme="light"] #spd-desc-display p,
body.theme-light #spd-desc-display p,
html[data-theme="light"] .spd-left-col p,
body.theme-light .spd-left-col p {
  color: #334155 !important;
}

html[data-theme="light"] .spd-gallery-item,
body.theme-light .spd-gallery-item {
  background: #e2e8f0 !important;
}

html[data-theme="light"] .space-detail-ev-card,
body.theme-light .space-detail-ev-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .space-detail-ev-card:hover,
body.theme-light .space-detail-ev-card:hover {
  border-color: #ff3b00 !important;
  box-shadow: 0 8px 24px rgba(255, 59, 0, 0.12) !important;
}

html[data-theme="light"] .spd-ev-meta,
body.theme-light .spd-ev-meta {
  color: #64748b !important;
}

html[data-theme="light"] .spd-ev-price,
body.theme-light .spd-ev-price {
  color: #ff3b00 !important;
}

html[data-theme="light"] .spd-ev-title,
body.theme-light .spd-ev-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-ev-venue,
body.theme-light .spd-ev-venue {
  color: #64748b !important;
}

html[data-theme="light"] .spd-artist-card,
body.theme-light .spd-artist-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .spd-artist-avatar,
body.theme-light .spd-artist-avatar {
  background: #ffffff !important;
  border-color: #ff3b00 !important;
  color: #ff3b00 !important;
}

html[data-theme="light"] .spd-artist-name,
body.theme-light .spd-artist-name {
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-artist-role,
body.theme-light .spd-artist-role {
  color: #64748b !important;
}

html[data-theme="light"] .btn-open-artist-from-space,
body.theme-light .btn-open-artist-from-space {
  background: #ff3b00 !important;
  border-color: #ff3b00 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .btn-open-artist-from-space:hover,
body.theme-light .btn-open-artist-from-space:hover {
  background: #e03400 !important;
}

/* Sidebar in light theme */
html[data-theme="light"] .spd-side-card,
body.theme-light .spd-side-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .spd-side-card-header,
body.theme-light .spd-side-card-header {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #ff3b00 !important;
}

html[data-theme="light"] .spd-side-title,
body.theme-light .spd-side-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-side-sector,
body.theme-light .spd-side-sector {
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-side-icon,
body.theme-light .spd-side-icon {
  stroke: #ff3b00 !important;
}

html[data-theme="light"] .spd-field-lbl,
body.theme-light .spd-field-lbl {
  color: #64748b !important;
}

html[data-theme="light"] .spd-field-val,
body.theme-light .spd-field-val {
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-field-val-sub,
body.theme-light .spd-field-val-sub {
  color: #334155 !important;
}

html[data-theme="light"] .spd-map-card,
body.theme-light .spd-map-card {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .spd-map-card:hover,
body.theme-light .spd-map-card:hover {
  border-color: #ff3b00 !important;
  background: #f1f5f9 !important;
}

html[data-theme="light"] .spd-map-card svg,
body.theme-light .spd-map-card svg {
  stroke: #ff3b00 !important;
}

html[data-theme="light"] .spd-map-card-text,
body.theme-light .spd-map-card-text {
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-cat-row,
body.theme-light .spd-cat-row {
  color: #334155 !important;
}

html[data-theme="light"] .spd-cat-row:hover,
body.theme-light .spd-cat-row:hover {
  background: #f1f5f9 !important;
}

html[data-theme="light"] .spd-cat-name,
body.theme-light .spd-cat-name {
  color: #334155 !important;
}

html[data-theme="light"] .spd-cat-name.primary,
body.theme-light .spd-cat-name.primary {
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-cat-year,
body.theme-light .spd-cat-year {
  color: #64748b !important;
}

html[data-theme="light"] .spd-cat-count,
body.theme-light .spd-cat-count {
  color: #ff3b00 !important;
}

html[data-theme="light"] .spd-social-btn,
body.theme-light .spd-social-btn {
  background: #f1f4f7 !important;
  border: 1px solid #cbd5e1 !important;
  color: #64748b !important;
}

html[data-theme="light"] .spd-social-btn:hover,
body.theme-light .spd-social-btn:hover {
  background: #e2e8f0 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .spd-social-btn.active,
body.theme-light .spd-social-btn.active {
  background: rgba(255, 59, 0, 0.1) !important;
  border-color: rgba(255, 59, 0, 0.4) !important;
  color: #ff3b00 !important;
}

html[data-theme="light"] .spd-edit-input,
body.theme-light .spd-edit-input,
html[data-theme="light"] .spd-edit-select,
body.theme-light .spd-edit-select {
  background: #ffffff !important;
  color: #0e0f14 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .spd-btn-add-block,
body.theme-light .spd-btn-add-block {
  background: #f1f4f7 !important;
  border: 1px dashed #ff3b00 !important;
  color: #ff3b00 !important;
}

/* ============================================================
   TERMINAL PROFESIONAL DE CONTROL DE ACCESOS Y VALIDACIÓN QR
   ============================================================ */
.validador-terminal-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 28px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Cabecera Terminal */
.validador-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.validador-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.validador-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  border-radius: 20px;
  width: fit-content;
}

.validador-status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

.validador-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.15;
  margin: 0;
}

.validador-sub {
  font-size: 13px;
  color: var(--grey1);
  font-family: var(--font-mono);
  margin: 0;
}

.validador-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.validador-staff-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.staff-role-label {
  color: var(--grey1);
  font-weight: 800;
}

.staff-name {
  color: var(--text);
}

.staff-email {
  color: var(--grey2);
}

.validador-controls-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-validador-back-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface2, #1b1d26);
  border: 1px solid var(--border, #2b2e3b);
  color: var(--white, #eef1f2);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-validador-back-admin:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-validador-modal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #10b981;
  border: 1px solid #10b981;
  color: #000000;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-validador-modal-toggle:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.btn-validador-sound,
.btn-validador-switch-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-validador-sound:hover,
.btn-validador-switch-profile:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-validador-sound.active {
  background: rgba(255, 89, 39, 0.12);
  border-color: #ff5927;
  color: #ff5927;
}

/* Barra de Métricas y Selector */
.validador-metrics-strip {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}

.validador-field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--grey1);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.validador-select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.validador-select:focus {
  border-color: var(--accent);
}

.validador-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.validador-stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.validador-stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--grey1);
  text-transform: uppercase;
}

.validador-stat-card .stat-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.validador-stat-card.card-validados .stat-value {
  color: #22c55e;
}

.validador-stat-card.card-pendientes .stat-value {
  color: #f59e0b;
}

.validador-stat-card.card-ocupacion .stat-value {
  color: #ff5927;
}

.validador-stat-card .stat-sub {
  font-size: 11px;
  color: var(--grey2);
  font-family: var(--font-mono);
}

.stat-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.stat-progress-fill {
  height: 100%;
  background: #ff5927;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Grid Principal */
.validador-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.validador-col-scanner,
.validador-col-feedback {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Tarjeta Cámara */
.validador-cam-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.validador-cam-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 89, 39, 0.04);
}

.cam-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text);
}

.cam-status-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--grey1);
}

.cam-status-pill.active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.validador-cam-viewport {
  position: relative;
  width: 100%;
  height: 320px;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#validador-live-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.validador-cam-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
}

.cam-placeholder-text {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 1px;
}

.cam-placeholder-hint {
  font-size: 12px;
  color: var(--grey1);
  max-width: 280px;
}

/* Retícula de Escaneo Neón */
.validador-cam-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 89, 39, 0.4);
  border-radius: 14px;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(255, 89, 39, 0.3);
}

.reticle-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #ff5927;
  border-style: solid;
}

.reticle-corner.tl {
  top: -2px;
  left: -2px;
  border-width: 4px 0 0 4px;
  border-top-left-radius: 12px;
}

.reticle-corner.tr {
  top: -2px;
  right: -2px;
  border-width: 4px 4px 0 0;
  border-top-right-radius: 12px;
}

.reticle-corner.bl {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 4px 4px;
  border-bottom-left-radius: 12px;
}

.reticle-corner.br {
  bottom: -2px;
  right: -2px;
  border-width: 0 4px 4px 0;
  border-bottom-right-radius: 12px;
}

.reticle-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ff5927;
  box-shadow: 0 0 10px #ff5927, 0 0 20px #ff5927;
  animation: scanLine 2s infinite ease-in-out alternate;
}

@keyframes scanLine {
  0% {
    top: 4px;
  }

  100% {
    top: calc(100% - 6px);
  }
}

.validador-cam-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
}

.btn-validador-cam-toggle {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: #ff5927;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-validador-cam-toggle.active-stop {
  background: #7f1d1d;
  color: #fca5a5;
  border: 1px solid #ef4444;
}

.btn-validador-cam-flip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Tarjeta Manual */
.validador-manual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}

.validador-manual-form {
  display: flex;
  gap: 10px;
}

.validador-input-mono {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
}

.validador-input-mono:focus {
  border-color: var(--accent);
}

.btn-validador-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  background: var(--accent);
  color: #000000;
  border: none;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
}

/* Probador de Boletos */
.validador-test-box {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.test-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.test-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.5px;
}

.btn-issue-test-ticket {
  background: rgba(255, 89, 39, 0.12);
  border: 1px solid #ff5927;
  color: #ff5927;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-issue-test-ticket:hover {
  background: #ff5927;
  color: #000000;
}

.test-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-top: 6px;
}

.test-preview-qr {
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
}

.test-preview-qr img {
  width: 96px;
  height: 96px;
  display: block;
}

.test-preview-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test-preview-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

.test-preview-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  color: #ff5927;
  letter-spacing: 1px;
}

.test-preview-hint {
  font-size: 11px;
  color: var(--grey1);
}

.btn-test-quick-validate {
  margin-top: 6px;
  background: #ff5927;
  color: #000000;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  width: fit-content;
}

/* Columna Derecha: Tarjeta Resultado */
.validador-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-idle-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  gap: 10px;
  color: var(--grey1);
}

.result-idle-state h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text);
  margin: 0;
}

.result-idle-state p {
  font-size: 12px;
  max-width: 320px;
  margin: 0;
}

.result-active-state {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
}

.result-status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.result-details-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  line-height: 1.45;
}

.result-code-pill {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  width: fit-content;
}

.result-code-pill.pill-danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.result-code-pill.pill-warning {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

.result-code-pill.pill-info {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.result-meta-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.meta-label {
  color: var(--grey1);
  font-size: 11px;
  font-weight: 700;
}

.meta-value {
  color: var(--text);
}

.result-time-stamp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #22c55e;
  margin-top: 4px;
}

/* Estados de Resultado */
.result-active-state.state-valid {
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid #22c55e;
  color: #4ade80;
}

.result-active-state.state-used {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid #ef4444;
  color: #fca5a5;
}

.result-active-state.state-wrong {
  background: rgba(245, 158, 11, 0.1);
  border: 2px solid #f59e0b;
  color: #fde68a;
}

.result-active-state.state-flyer {
  background: rgba(56, 189, 248, 0.1);
  border: 2px solid #38bdf8;
  color: #bae6fd;
}

.result-active-state.state-invalid {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.result-active-state.state-loading {
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 89, 39, 0.3);
  border-top-color: #ff5927;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tarjeta Historial */
.validador-history-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.history-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--grey1);
  text-transform: uppercase;
}

.history-count {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
}

.btn-clear-validador-history {
  background: none;
  border: none;
  color: var(--grey2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-clear-validador-history:hover {
  color: var(--text);
}

.validador-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.history-empty-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey2);
  text-align: center;
  padding: 18px;
}

.validador-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  gap: 10px;
}

.row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.history-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.history-badge.badge-valid {
  background: #22c55e;
  color: #000;
}

.history-badge.badge-used {
  background: #ef4444;
  color: #fff;
}

.history-badge.badge-wrong {
  background: #f59e0b;
  color: #000;
}

.history-badge.badge-flyer {
  background: #38bdf8;
  color: #000;
}

.history-badge.badge-invalid {
  background: #64748b;
  color: #fff;
}

.history-code {
  color: var(--text);
  font-weight: 800;
}

.history-user {
  color: var(--grey1);
  font-size: 10px;
}

.history-time {
  color: var(--grey2);
  font-size: 10px;
}

/* Responsive Adaptations */
@media (max-width: 900px) {
  .validador-main-grid {
    grid-template-columns: 1fr;
  }

  .validador-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .validador-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .validador-header-right {
    align-items: flex-start;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .validador-terminal-wrapper {
    padding: 16px 14px 80px;
  }

  .validador-title {
    font-size: 20px;
  }

  .validador-cam-viewport {
    height: 240px;
  }

  .validador-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .validador-manual-form {
    flex-direction: column;
  }

  .test-preview-card {
    flex-direction: column;
    text-align: center;
  }
}

/* Light Mode Overrides for Terminal Validador QR */
html[data-theme="light"] .validador-terminal-wrapper,
body.theme-light .validador-terminal-wrapper {
  color: #0e0f14 !important;
  background: #ffffff !important;
}

html[data-theme="light"] .validador-header,
body.theme-light .validador-header {
  border-bottom-color: #e2e8f0 !important;
}

html[data-theme="light"] .validador-title,
body.theme-light .validador-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .validador-sub,
body.theme-light .validador-sub {
  color: #475569 !important;
}

html[data-theme="light"] .validador-staff-tag,
body.theme-light .validador-staff-tag {
  background: #f1f4f7 !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .staff-role-label,
body.theme-light .staff-role-label {
  color: #475569 !important;
}

html[data-theme="light"] .staff-name,
body.theme-light .staff-name {
  color: #0e0f14 !important;
}

html[data-theme="light"] .staff-email,
body.theme-light .staff-email {
  color: #64748b !important;
}

html[data-theme="light"] .btn-validador-back-admin,
body.theme-light .btn-validador-back-admin {
  background: #f1f4f7 !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .btn-validador-back-admin:hover,
body.theme-light .btn-validador-back-admin:hover {
  background: #e2e8f0 !important;
  color: #ff3b00 !important;
  border-color: #ff3b00 !important;
}

html[data-theme="light"] .btn-validador-sound,
body.theme-light .btn-validador-sound,
html[data-theme="light"] .btn-validador-switch-profile,
body.theme-light .btn-validador-switch-profile {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .btn-validador-sound:hover,
body.theme-light .btn-validador-sound:hover,
html[data-theme="light"] .btn-validador-switch-profile:hover,
body.theme-light .btn-validador-switch-profile:hover {
  border-color: #ff3b00 !important;
  color: #ff3b00 !important;
}

html[data-theme="light"] .btn-validador-sound.active,
body.theme-light .btn-validador-sound.active {
  background: rgba(255, 59, 0, 0.08) !important;
  border-color: #ff3b00 !important;
  color: #ff3b00 !important;
}

html[data-theme="light"] .validador-stat-card,
body.theme-light .validador-stat-card,
html[data-theme="light"] .validador-cam-card,
body.theme-light .validador-cam-card,
html[data-theme="light"] .validador-manual-card,
body.theme-light .validador-manual-card,
html[data-theme="light"] .validador-result-card,
body.theme-light .validador-result-card,
html[data-theme="light"] .validador-history-card,
body.theme-light .validador-history-card,
html[data-theme="light"] .validador-metrics-strip,
body.theme-light .validador-metrics-strip {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0e0f14 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .validador-field-label,
body.theme-light .validador-field-label {
  color: #1e293b !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .validador-select,
body.theme-light .validador-select {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .validador-select option,
body.theme-light .validador-select option {
  background-color: #ffffff !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .validador-stat-card .stat-label,
body.theme-light .validador-stat-card .stat-label {
  color: #475569 !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .validador-stat-card .stat-value,
body.theme-light .validador-stat-card .stat-value {
  color: #0e0f14 !important;
}

html[data-theme="light"] .validador-stat-card.card-validados .stat-value,
body.theme-light .validador-stat-card.card-validados .stat-value {
  color: #16a34a !important;
}

html[data-theme="light"] .validador-stat-card.card-pendientes .stat-value,
body.theme-light .validador-stat-card.card-pendientes .stat-value {
  color: #d97706 !important;
}

html[data-theme="light"] .validador-stat-card.card-ocupacion .stat-value,
body.theme-light .validador-stat-card.card-ocupacion .stat-value {
  color: #ff3b00 !important;
}

html[data-theme="light"] .validador-stat-card .stat-sub,
body.theme-light .validador-stat-card .stat-sub {
  color: #64748b !important;
}

html[data-theme="light"] .stat-progress-bar,
body.theme-light .stat-progress-bar {
  background: #e2e8f0 !important;
}

html[data-theme="light"] .validador-cam-header,
body.theme-light .validador-cam-header,
html[data-theme="light"] .validador-cam-actions,
body.theme-light .validador-cam-actions,
html[data-theme="light"] .test-preview-card,
body.theme-light .test-preview-card,
html[data-theme="light"] .validador-history-row,
body.theme-light .validador-history-row {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .cam-header-title,
body.theme-light .cam-header-title {
  color: #0e0f14 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .cam-placeholder-text,
body.theme-light .cam-placeholder-text {
  color: #0e0f14 !important;
}

html[data-theme="light"] .cam-placeholder-hint,
body.theme-light .cam-placeholder-hint {
  color: #475569 !important;
}

html[data-theme="light"] .validador-input-mono,
body.theme-light .validador-input-mono {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .btn-validador-cam-toggle,
body.theme-light .btn-validador-cam-toggle,
html[data-theme="light"] .btn-validador-cam-flip,
body.theme-light .btn-validador-cam-flip {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .test-box-title,
body.theme-light .test-box-title {
  color: #0e0f14 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .btn-issue-test-ticket,
body.theme-light .btn-issue-test-ticket {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #ff3b00 !important;
}

html[data-theme="light"] .result-idle-state h3,
body.theme-light .result-idle-state h3 {
  color: #0e0f14 !important;
}

html[data-theme="light"] .result-idle-state p,
body.theme-light .result-idle-state p {
  color: #475569 !important;
}

html[data-theme="light"] .history-title,
body.theme-light .history-title {
  color: #0e0f14 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .history-count,
body.theme-light .history-count {
  color: #64748b !important;
}

html[data-theme="light"] .history-code,
body.theme-light .history-code {
  color: #0e0f14 !important;
}

html[data-theme="light"] .history-user,
body.theme-light .history-user {
  color: #475569 !important;
}

html[data-theme="light"] .history-empty-text,
body.theme-light .history-empty-text {
  color: #64748b !important;
}

/* ============================================================
   PROTECCIÓN DE CONTRASTE TOTAL EN MODO BLANCO PARA MODALES,
   FORMULARIOS, TARJETAS DE QR Y PAGOS
   ============================================================ */

/* 1. Modales estándar y contenedores */
html[data-theme="light"] .modal-box,
body.theme-light .modal-box,
html[data-theme="light"] .cart-modal-box,
body.theme-light .cart-modal-box,
html[data-theme="light"] .pref-modal-box,
body.theme-light .pref-modal-box,
html[data-theme="light"] .profile-modal-card,
body.theme-light .profile-modal-card {
  background: #ffffff !important;
  border-color: #dce1e8 !important;
  color: #0e0f14 !important;
  box-shadow: 0 25px 60px rgba(14, 15, 20, 0.18) !important;
}

html[data-theme="light"] .modal-header,
body.theme-light .modal-header,
html[data-theme="light"] .profile-modal-header,
body.theme-light .profile-modal-header {
  border-bottom-color: #e2e8f0 !important;
}

html[data-theme="light"] .modal-title,
body.theme-light .modal-title,
html[data-theme="light"] .profile-modal-title,
body.theme-light .profile-modal-title,
html[data-theme="light"] .modal-box h1,
body.theme-light .modal-box h1,
html[data-theme="light"] .modal-box h2,
body.theme-light .modal-box h2,
html[data-theme="light"] .modal-box h3,
body.theme-light .modal-box h3,
html[data-theme="light"] .profile-modal-card h1,
body.theme-light .profile-modal-card h1,
html[data-theme="light"] .profile-modal-card h2,
body.theme-light .profile-modal-card h2,
html[data-theme="light"] .profile-modal-card h3,
body.theme-light .profile-modal-card h3,
html[data-theme="light"] .promo-qr-event-title,
body.theme-light .promo-qr-event-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .modal-box p,
body.theme-light .modal-box p,
html[data-theme="light"] .profile-modal-card p,
body.theme-light .profile-modal-card p,
html[data-theme="light"] .promo-qr-desc,
body.theme-light .promo-qr-desc {
  color: #334155 !important;
}

html[data-theme="light"] .modal-box label,
body.theme-light .modal-box label,
html[data-theme="light"] .profile-modal-card label,
body.theme-light .profile-modal-card label,
html[data-theme="light"] #modal-auth label,
body.theme-light #modal-auth label {
  color: #334155 !important;
}

html[data-theme="light"] .modal-box input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
body.theme-light .modal-box input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] .modal-box select,
body.theme-light .modal-box select,
html[data-theme="light"] .modal-box textarea,
body.theme-light .modal-box textarea,
html[data-theme="light"] .profile-modal-card input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
body.theme-light .profile-modal-card input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] .profile-modal-card select,
body.theme-light .profile-modal-card select,
html[data-theme="light"] .profile-modal-card textarea,
body.theme-light .profile-modal-card textarea,
html[data-theme="light"] #modal-auth input,
body.theme-light #modal-auth input {
  background: #f8fafc !important;
  color: #0e0f14 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .modal-box input::placeholder,
body.theme-light .modal-box input::placeholder,
html[data-theme="light"] .profile-modal-card input::placeholder,
body.theme-light .profile-modal-card input::placeholder,
html[data-theme="light"] #modal-auth input::placeholder,
body.theme-light #modal-auth input::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="light"] .modal-close,
body.theme-light .modal-close,
html[data-theme="light"] .profile-modal-close,
body.theme-light .profile-modal-close {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .modal-close:hover,
body.theme-light .modal-close:hover,
html[data-theme="light"] .profile-modal-close:hover,
body.theme-light .profile-modal-close:hover {
  background: #ff3b00 !important;
  border-color: #ff3b00 !important;
  color: #ffffff !important;
}

/* 2. Tarjetas de Órdenes y Pagos contra entrega en Modo Blanco */
html[data-theme="light"] .contra-pago-order-card,
body.theme-light .contra-pago-order-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .contra-pago-order-card strong,
body.theme-light .contra-pago-order-card strong {
  color: #0e0f14 !important;
}

/* 2b. Modal Carrito y Solicitud de Entradas en Modo Blanco */
html[data-theme="light"] .cart-modal-box,
body.theme-light .cart-modal-box {
  background: #ffffff !important;
  border: 1px solid #dce1e8 !important;
  color: #0e0f14 !important;
  box-shadow: 0 25px 60px rgba(14, 15, 20, 0.2) !important;
}

html[data-theme="light"] .cart-modal-title,
body.theme-light .cart-modal-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .cart-modal-icon,
body.theme-light .cart-modal-icon {
  color: #ff3b00 !important;
}

html[data-theme="light"] .cart-notice-box,
body.theme-light .cart-notice-box {
  background: #fff7ed !important;
  border: 1px solid #fdba74 !important;
  color: #1e293b !important;
}

html[data-theme="light"] .cart-notice-highlight,
body.theme-light .cart-notice-highlight {
  color: #c2410c !important;
}

html[data-theme="light"] .cart-empty-msg,
body.theme-light .cart-empty-msg {
  color: #475569 !important;
}

html[data-theme="light"] .cart-item-row,
body.theme-light .cart-item-row {
  border-bottom-color: #e2e8f0 !important;
}

html[data-theme="light"] .cart-item-title,
body.theme-light .cart-item-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .cart-item-sub,
body.theme-light .cart-item-sub {
  color: #475569 !important;
}

html[data-theme="light"] .cart-qty-num,
body.theme-light .cart-qty-num {
  color: #0e0f14 !important;
}

html[data-theme="light"] .cart-qty-btn,
body.theme-light .cart-qty-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .cart-qty-btn:hover,
body.theme-light .cart-qty-btn:hover {
  background: #ff3b00 !important;
  border-color: #ff3b00 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .cart-total-row,
body.theme-light .cart-total-row {
  color: #0e0f14 !important;
}

html[data-theme="light"] .cart-total-label,
body.theme-light .cart-total-label {
  color: #0e0f14 !important;
}

html[data-theme="light"] .cart-total-val,
body.theme-light .cart-total-val {
  color: #ea580c !important;
}

/* 3. Tarjeta de QR y Botones de Descarga en Modo Blanco */
html[data-theme="light"] .btn-qr-download-svg,
body.theme-light .btn-qr-download-svg {
  background: #f1f4f7 !important;
  color: #0e0f14 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .btn-qr-download-svg:hover,
body.theme-light .btn-qr-download-svg:hover {
  background: #e2e8f0 !important;
}

/* Pestañas Auth en Modo Blanco */
html[data-theme="light"] .auth-tab-btn,
body.theme-light .auth-tab-btn,
html[data-theme="light"] #modal-auth #tab-btn-login,
body.theme-light #modal-auth #tab-btn-login,
html[data-theme="light"] #modal-auth #tab-btn-register,
body.theme-light #modal-auth #tab-btn-register {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .auth-tab-btn:hover,
body.theme-light .auth-tab-btn:hover,
html[data-theme="light"] #modal-auth #tab-btn-login:hover,
body.theme-light #modal-auth #tab-btn-login:hover,
html[data-theme="light"] #modal-auth #tab-btn-register:hover,
body.theme-light #modal-auth #tab-btn-register:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .auth-tab-btn.active,
body.theme-light .auth-tab-btn.active,
html[data-theme="light"] #modal-auth #tab-btn-login.active,
body.theme-light #modal-auth #tab-btn-login.active,
html[data-theme="light"] #modal-auth #tab-btn-register.active,
body.theme-light #modal-auth #tab-btn-register.active {
  background: #ff3b00 !important;
  border-color: #ff3b00 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 14px rgba(255, 59, 0, 0.35) !important;
}

html[data-theme="light"] #modal-auth .btn-submit,
body.theme-light #modal-auth .btn-submit,
html[data-theme="light"] #btn-submit-reg,
body.theme-light #btn-submit-reg {
  background: #ff3b00 !important;
  color: #ffffff !important;
  border: none !important;
}

html[data-theme="light"] #modal-auth .btn-submit:hover,
body.theme-light #modal-auth .btn-submit:hover,
html[data-theme="light"] #btn-submit-reg:hover,
body.theme-light #btn-submit-reg:hover {
  background: #d93200 !important;
  color: #ffffff !important;
}

html[data-theme="light"] #btn-forgot-password,
body.theme-light #btn-forgot-password {
  color: #c2410c !important;
}

html[data-theme="light"] #btn-forgot-password:hover,
body.theme-light #btn-forgot-password:hover {
  color: #9a3412 !important;
  text-decoration: underline;
}

.btn-toggle-pass-visibility {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  cursor: pointer;
  padding: 6px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  z-index: 5;
  line-height: 1;
}

.btn-toggle-pass-visibility:hover {
  color: var(--accent, #ff5927) !important;
  background: rgba(255, 89, 39, 0.12) !important;
}

.btn-toggle-pass-visibility svg {
  display: block;
  pointer-events: none;
}

html[data-theme="light"] .btn-toggle-pass-visibility,
body.theme-light .btn-toggle-pass-visibility {
  color: #64748b !important;
}

html[data-theme="light"] .btn-toggle-pass-visibility:hover,
body.theme-light .btn-toggle-pass-visibility:hover {
  color: #ff3b00 !important;
  background: rgba(255, 59, 0, 0.08) !important;
}

html[data-theme="light"] #modal-auth .social-divider span,
body.theme-light #modal-auth .social-divider span {
  background: #ffffff !important;
  color: #64748b !important;
}

/* Botones de Pasos / Wizard en Modo Blanco */
html[data-theme="light"] .btn-event-step,
body.theme-light .btn-event-step,
html[data-theme="light"] .btn-space-step,
body.theme-light .btn-space-step,
html[data-theme="light"] .btn-artist-step,
body.theme-light .btn-artist-step {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .btn-event-step.active,
body.theme-light .btn-event-step.active,
html[data-theme="light"] .btn-space-step.active,
body.theme-light .btn-space-step.active,
html[data-theme="light"] .btn-artist-step.active,
body.theme-light .btn-artist-step.active {
  background: #ff3b00 !important;
  color: #ffffff !important;
  border-color: #ff3b00 !important;
}

html[data-theme="light"] #btn-event-step-prev,
body.theme-light #btn-event-step-prev,
html[data-theme="light"] #btn-space-step-prev,
body.theme-light #btn-space-step-prev,
html[data-theme="light"] #btn-artist-step-prev,
body.theme-light #btn-artist-step-prev {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] #btn-event-step-next,
body.theme-light #btn-event-step-next,
html[data-theme="light"] #btn-space-step-next,
body.theme-light #btn-space-step-next,
html[data-theme="light"] #btn-artist-step-next,
body.theme-light #btn-artist-step-next {
  background: #ff3b00 !important;
  color: #ffffff !important;
}

/* ============================================================
   MODAL INTERACTIVO: ¿QUÉ QUIERES VIVIR HOY EN QUITO?
   ============================================================ */
.vivir-quiz-box {
  max-width: 860px;
}

.vivir-quiz-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: #ff3b00;
  background: rgba(255, 59, 0, 0.12);
  border: 1px solid rgba(255, 59, 0, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.vivir-quiz-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vivir-option-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vivir-option-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.vivir-option-pill.active {
  background: #ff3b00 !important;
  color: #ffffff !important;
  border-color: #ff3b00 !important;
  box-shadow: 0 2px 10px rgba(255, 59, 0, 0.35);
  font-weight: 800;
}

/* Banner de Resultados de Recomendación en la Cartelera */
.vivir-quiz-recom-banner {
  background: linear-gradient(135deg, rgba(255, 59, 0, 0.12) 0%, rgba(14, 15, 20, 0.95) 100%);
  border: 1.5px solid rgba(255, 59, 0, 0.4);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vivir-recom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vivir-recom-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  color: #ff3b00;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vivir-recom-summary {
  font-size: 13.5px;
  color: #cbd5e1;
}

.vivir-recom-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-vivir-reajustar {
  background: #ff3b00;
  color: #ffffff;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-vivir-reajustar:hover {
  background: #e63500;
}

.btn-vivir-limpiar {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-vivir-limpiar:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Modo Blanco adaptativo para Quiz y Banner de Recomendaciones */
html[data-theme="light"] .vivir-quiz-recom-banner,
body.theme-light .vivir-quiz-recom-banner {
  background: linear-gradient(135deg, rgba(255, 59, 0, 0.06) 0%, #ffffff 100%) !important;
  border-color: #ff3b00 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .vivir-recom-summary,
body.theme-light .vivir-recom-summary {
  color: #334155 !important;
}

html[data-theme="light"] .vivir-option-pill,
body.theme-light .vivir-option-pill {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

html[data-theme="light"] .vivir-option-pill.active,
body.theme-light .vivir-option-pill.active {
  background: #ff3b00 !important;
  color: #ffffff !important;
  border-color: #ff3b00 !important;
}

html[data-theme="light"] .btn-vivir-limpiar,
body.theme-light .btn-vivir-limpiar {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

/* ============================================================
   MODAL DE PREFERENCIAS / ONBOARDING EN MODO BLANCO
   ============================================================ */
html[data-theme="light"] .pref-modal-box,
body.theme-light .pref-modal-box {
  background: #ffffff !important;
  border: 1px solid #dce1e8 !important;
  color: #0e0f14 !important;
  box-shadow: 0 25px 60px rgba(14, 15, 20, 0.18) !important;
}

html[data-theme="light"] .pref-modal-close,
body.theme-light .pref-modal-close {
  background: #f1f4f7 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .pref-modal-close:hover,
body.theme-light .pref-modal-close:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

/* Título principal */
html[data-theme="light"] .pref-main-title,
body.theme-light .pref-main-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .pref-main-title .highlight,
body.theme-light .pref-main-title .highlight {
  color: #ff3b00 !important;
  text-shadow: none !important;
}

/* Subtítulo */
html[data-theme="light"] .pref-main-subtitle,
body.theme-light .pref-main-subtitle {
  color: #334155 !important;
}

/* Fila de pasos y títulos */
html[data-theme="light"] .pref-step-row,
body.theme-light .pref-step-row {
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .pref-step-badge,
body.theme-light .pref-step-badge {
  background: #fff7ed !important;
  border: 1px solid #fdba74 !important;
  color: #c2410c !important;
}

html[data-theme="light"] .pref-step-heading,
body.theme-light .pref-step-heading {
  color: #0e0f14 !important;
}

html[data-theme="light"] .pref-step-hint,
body.theme-light .pref-step-hint {
  color: #475569 !important;
  font-weight: 800 !important;
}

/* Tarjetas de Preferencia (No Seleccionadas) */
html[data-theme="light"] .pref-card,
body.theme-light .pref-card {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0e0f14 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .pref-card:hover,
body.theme-light .pref-card:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px);
}

html[data-theme="light"] .pref-card .pref-card-label,
body.theme-light .pref-card .pref-card-label {
  color: #0e0f14 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .pref-card .pref-card-check,
body.theme-light .pref-card .pref-card-check {
  border: 1.5px solid #94a3b8 !important;
  background: #ffffff !important;
}

/* Tarjetas de Preferencia (Seleccionadas / Activas) */
html[data-theme="light"] .pref-card.active,
body.theme-light .pref-card.active {
  background: #ff3b00 !important;
  border-color: #ff3b00 !important;
  box-shadow: 0 4px 14px rgba(255, 59, 0, 0.28) !important;
  transform: translateY(-1px);
}

html[data-theme="light"] .pref-card.active .pref-card-label,
body.theme-light .pref-card.active .pref-card-label {
  color: #ffffff !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .pref-card.active .pref-card-check,
body.theme-light .pref-card.active .pref-card-check {
  border-color: #ffffff !important;
  background: #ffffff !important;
  color: #ff3b00 !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4) !important;
}

html[data-theme="light"] .pref-card.active .pref-card-check::after,
body.theme-light .pref-card.active .pref-card-check::after {
  color: #ff3b00 !important;
}

/* Acciones finales */
html[data-theme="light"] .pref-modal-actions,
body.theme-light .pref-modal-actions {
  border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .pref-submit-btn,
body.theme-light .pref-submit-btn {
  background: #ff3b00 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 59, 0, 0.3) !important;
  border: none !important;
}

html[data-theme="light"] .pref-submit-btn:hover,
body.theme-light .pref-submit-btn:hover {
  background: #d93200 !important;
  box-shadow: 0 6px 20px rgba(255, 59, 0, 0.45) !important;
}

html[data-theme="light"] .pref-skip-btn,
body.theme-light .pref-skip-btn {
  color: #64748b !important;
}

html[data-theme="light"] .pref-skip-btn:hover,
body.theme-light .pref-skip-btn:hover {
  color: #0e0f14 !important;
  text-decoration: underline;
}

/* ============================================================
   FOOTER EN MODO BLANCO (PUBLIC PROFILE & KAWSAY FOOTER)
   ============================================================ */
html[data-theme="light"] .public-profile-footer,
body.theme-light .public-profile-footer {
  border-top: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

html[data-theme="light"] .public-profile-footer-brand,
body.theme-light .public-profile-footer-brand {
  color: #0e0f14 !important;
}

html[data-theme="light"] .public-profile-footer-brand span,
body.theme-light .public-profile-footer-brand span {
  color: #0e0f14 !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .public-profile-footer-desc,
body.theme-light .public-profile-footer-desc {
  color: #475569 !important;
  font-weight: 500 !important;
}

/* Títulos de columnas: EXPLORAR, CUENTA, SOCIAL */
.public-profile-footer-col-title {
  color: var(--text-primary, #ffffff);
}

html[data-theme="light"] .public-profile-footer-col-title,
body.theme-light .public-profile-footer-col-title,
#view-user .public-profile-footer-col-title {
  color: #0e0f14 !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
}

/* Enlaces de pie de página */
html[data-theme="light"] .public-profile-footer-link,
body.theme-light .public-profile-footer-link {
  color: #475569 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .public-profile-footer-link:hover,
body.theme-light .public-profile-footer-link:hover {
  color: #ff3b00 !important;
}

/* Botones de Redes Sociales */
html[data-theme="light"] .public-profile-social-btn,
body.theme-light .public-profile-social-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .public-profile-social-btn:hover,
body.theme-light .public-profile-social-btn:hover {
  background: #ff3b00 !important;
  border-color: #ff3b00 !important;
  color: #ffffff !important;
}

/* Barra inferior del footer */
html[data-theme="light"] .public-profile-footer-bottom,
body.theme-light .public-profile-footer-bottom {
  border-top: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .public-profile-footer-bottom span,
body.theme-light .public-profile-footer-bottom span {
  color: #475569 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .public-profile-footer-bottom span:hover,
body.theme-light .public-profile-footer-bottom span:hover {
  color: #ff3b00 !important;
}

/* KAWSAY Footer (Cartelera General) en Modo Blanco */
html[data-theme="light"] .kawsay-footer,
body.theme-light .kawsay-footer {
  background: #ffffff !important;
  border-top-color: #e2e8f0 !important;
}

html[data-theme="light"] .footer-brand-name,
body.theme-light .footer-brand-name {
  color: #0e0f14 !important;
}

html[data-theme="light"] .footer-tagline,
body.theme-light .footer-tagline {
  color: #475569 !important;
}

html[data-theme="light"] .footer-col-title,
body.theme-light .footer-col-title {
  color: #0e0f14 !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .footer-link,
body.theme-light .footer-link {
  color: #475569 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .footer-link:hover,
body.theme-light .footer-link:hover {
  color: #ff3b00 !important;
}

html[data-theme="light"] .social-icon,
body.theme-light .social-icon {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .social-icon:hover,
body.theme-light .social-icon:hover {
  background: #ff3b00 !important;
  border-color: #ff3b00 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .footer-bottom,
body.theme-light .footer-bottom {
  border-top-color: #e2e8f0 !important;
  color: #475569 !important;
}










/* ============================================================
   ESTILOS DE ALTO CONTRASTE PARA ESCÁNER Y VALIDADOR QR
   ============================================================ */
#scanner-result-box {
  border-radius: 12px !important;
  font-family: var(--font-mono) !important;
  padding: 14px 16px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

#scanner-result-box.result-valid {
  background: #ecfdf5 !important;
  border: 2px solid #10b981 !important;
}

#scanner-result-box.result-valid .result-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #047857 !important;
  margin-bottom: 8px !important;
}

#scanner-result-box.result-valid .result-title svg {
  stroke: #047857 !important;
}

#scanner-result-box.result-valid .result-details {
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: #064e3b !important;
  font-weight: 600 !important;
}

#scanner-result-box.result-valid .result-details strong {
  color: #047857 !important;
  font-weight: 900 !important;
}

#scanner-result-box.result-valid .result-timestamp {
  margin-top: 6px !important;
  font-size: 11px !important;
  color: #059669 !important;
  font-weight: 800 !important;
}

/* Modo oscuro para #scanner-result-box.result-valid */
html:not([data-theme="light"]):not(.theme-light) #scanner-result-box.result-valid {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #10b981 !important;
}

html:not([data-theme="light"]):not(.theme-light) #scanner-result-box.result-valid .result-title {
  color: #34d399 !important;
}

html:not([data-theme="light"]):not(.theme-light) #scanner-result-box.result-valid .result-title svg {
  stroke: #34d399 !important;
}

html:not([data-theme="light"]):not(.theme-light) #scanner-result-box.result-valid .result-details {
  color: #f1f5f9 !important;
}

html:not([data-theme="light"]):not(.theme-light) #scanner-result-box.result-valid .result-details strong {
  color: #6ee7b7 !important;
}

html:not([data-theme="light"]):not(.theme-light) #scanner-result-box.result-valid .result-timestamp {
  color: #a7f3d0 !important;
}

/* Estados Duplicado / Error */
#scanner-result-box.result-used {
  background: #fef2f2 !important;
  border: 2px solid #ef4444 !important;
}

#scanner-result-box.result-used .result-title {
  color: #b91c1c !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}

#scanner-result-box.result-used .result-details {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #7f1d1d !important;
  font-weight: 600 !important;
}

#scanner-result-box.result-used .result-details strong {
  color: #991b1b !important;
  font-weight: 900 !important;
}

html:not([data-theme="light"]):not(.theme-light) #scanner-result-box.result-used {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
}

html:not([data-theme="light"]):not(.theme-light) #scanner-result-box.result-used .result-title {
  color: #f87171 !important;
}

html:not([data-theme="light"]):not(.theme-light) #scanner-result-box.result-used .result-details {
  color: #fca5a5 !important;
}

#scanner-result-box.result-wrong {
  background: #fffbeb !important;
  border: 2px solid #f59e0b !important;
}

#scanner-result-box.result-wrong .result-title {
  color: #b45309 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}

#scanner-result-box.result-wrong .result-details {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #78350f !important;
  font-weight: 600 !important;
}

html:not([data-theme="light"]):not(.theme-light) #scanner-result-box.result-wrong {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: #f59e0b !important;
}

html:not([data-theme="light"]):not(.theme-light) #scanner-result-box.result-wrong .result-title {
  color: #fbbf24 !important;
}

html:not([data-theme="light"]):not(.theme-light) #scanner-result-box.result-wrong .result-details {
  color: #fde68a !important;
}

/* Badge para botón de Mis Entradas en barra móvil */
.mobile-nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 16px);
  background: var(--primary, #ff3b00);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(255, 59, 0, 0.45);
}


/* ============================================================
   NUEVA INTERFAZ MODAL DE CONTROL DE ACCESO & ESCÁNER QR
   (Andean Cultural Design / High-fidelity Mobile Mock)
   ============================================================ */
.qr-access-modal-card {
  width: 95vw;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 24px !important;
  padding: 22px 20px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  position: relative;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  box-sizing: border-box;
}

/* Header */
.qr-access-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.qr-access-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qr-access-title {
  font-family: var(--font-display, inherit);
  font-size: 17px;
  font-weight: 900;
  color: #0f172a !important;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.qr-access-sub {
  font-size: 11px;
  font-weight: 700;
  color: #64748b !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.qr-access-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.qr-access-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.05);
}

/* 3 Stat Pills */
.qr-access-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.qr-stat-pill {
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.qr-stat-pill.pill-dark {
  background: #0f172a !important;
  color: #ffffff !important;
}

.qr-stat-pill.pill-dark .qr-stat-label {
  color: #94a3b8 !important;
}

.qr-stat-pill.pill-dark .qr-stat-val {
  color: #ffffff !important;
}

.qr-stat-pill.pill-light {
  background: #ffffff !important;
  border: 1.5px solid #f1f5f9 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.qr-stat-pill.pill-light .qr-stat-label {
  color: #64748b !important;
}

.qr-stat-pill.pill-validados .qr-stat-val {
  color: #ff3b00 !important;
}

.qr-stat-pill.pill-rechazados .qr-stat-val {
  color: #ef4444 !important;
}

.qr-stat-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.qr-stat-val {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  font-family: var(--font-display, inherit);
}

/* Selector de Evento */
.qr-access-field-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.qr-event-selector-card {
  position: relative;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 14px;
}

.qr-event-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.qr-event-title-display {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-event-date-display {
  font-size: 11px;
  font-weight: 700;
  color: #ff3b00 !important;
}

.qr-event-caret {
  color: #64748b;
  margin-left: 8px;
  flex-shrink: 0;
}

.qr-event-native-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Visor de Cámara Box */
.qr-cam-viewport-card {
  position: relative;
  background: #0e1118 !important;
  border-radius: 18px !important;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.qr-live-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.qr-cam-placeholder-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
  text-align: center;
  padding: 20px;
}

.qr-cam-placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 59, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff3b00;
}

.qr-cam-placeholder-text {
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qr-cam-placeholder-sub {
  font-size: 10px;
  color: #64748b;
  max-width: 220px;
}

/* Mira / Retícula de Escaneo Neón Orange */
.qr-scan-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  pointer-events: none;
  display: none;
}

.qr-frame-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: #ff3b00;
  border-style: solid;
}

.qr-frame-corner.top-left {
  top: 0;
  left: 0;
  border-width: 3.5px 0 0 3.5px;
  border-top-left-radius: 10px;
}

.qr-frame-corner.top-right {
  top: 0;
  right: 0;
  border-width: 3.5px 3.5px 0 0;
  border-top-right-radius: 10px;
}

.qr-frame-corner.bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 0 3.5px 3.5px;
  border-bottom-left-radius: 10px;
}

.qr-frame-corner.bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 3.5px 3.5px 0;
  border-bottom-right-radius: 10px;
}

.qr-scan-laser-line {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff3b00, transparent);
  box-shadow: 0 0 8px #ff3b00;
  animation: qrLaserScan 2s ease-in-out infinite alternate;
}

@keyframes qrLaserScan {
  0% {
    top: 8px;
  }

  100% {
    top: calc(100% - 10px);
  }
}

/* Overlay Controls on Camera */
.qr-cam-overlay-controls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.qr-overlay-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qr-overlay-circle-btn:hover {
  background: rgba(51, 65, 85, 0.95);
  transform: scale(1.05);
}

.qr-overlay-circle-btn.active {
  background: #ff3b00;
  border-color: #ff3b00;
}

.qr-flip-cam-pill-btn {
  background: #ff3b00;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 25px;
  border: none;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(255, 59, 0, 0.45);
  transition: all 0.2s ease;
}

.qr-flip-cam-pill-btn:hover {
  background: #e03400;
  transform: translateY(-1px);
}

/* Manual Input */
.qr-manual-input-wrap {
  margin-top: 14px;
}

.qr-manual-form-row {
  display: flex;
  gap: 8px;
}

.qr-manual-input {
  flex: 1;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-transform: uppercase;
  outline: none;
  font-family: var(--font-mono, monospace) !important;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.qr-manual-input:focus {
  border-color: #ff3b00 !important;
}

.qr-manual-submit-btn {
  background: #ff3b00 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 11px 18px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255, 59, 0, 0.35);
  transition: all 0.2s ease;
}

.qr-manual-submit-btn:hover {
  background: #e03400 !important;
}

/* Result Box Cards */
.qr-result-box {
  margin-top: 14px;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  display: none;
  animation: qrSlideDown 0.25s ease-out;
  box-sizing: border-box;
}

@keyframes qrSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qr-result-box.result-valid {
  background: #f0fdf4 !important;
  border: 1.5px solid #10b981 !important;
}

.qr-result-box.result-used {
  background: #fef2f2 !important;
  border: 1.5px solid #ef4444 !important;
}

.qr-result-box.result-wrong {
  background: #fffbeb !important;
  border: 1.5px solid #f59e0b !important;
}

.qr-result-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-result-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qr-result-box.result-valid .qr-result-icon-circle {
  background: #10b981;
  color: #ffffff;
}

.qr-result-box.result-used .qr-result-icon-circle {
  background: #ef4444;
  color: #ffffff;
}

.qr-result-box.result-wrong .qr-result-icon-circle {
  background: #f59e0b;
  color: #ffffff;
}

.qr-result-header-text {
  display: flex;
  flex-direction: column;
}

.qr-result-main-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.qr-result-box.result-valid .qr-result-main-title {
  color: #059669 !important;
}

.qr-result-box.result-used .qr-result-main-title {
  color: #b91c1c !important;
}

.qr-result-box.result-wrong .qr-result-main-title {
  color: #b45309 !important;
}

.qr-result-sub-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.qr-result-box.result-valid .qr-result-sub-title {
  color: #10b981 !important;
}

.qr-result-box.result-used .qr-result-sub-title {
  color: #ef4444 !important;
}

.qr-result-box.result-wrong .qr-result-sub-title {
  color: #d97706 !important;
}

.qr-result-divider {
  border-top: 1px solid #dcfce7;
  margin: 10px 0;
}

.qr-result-box.result-used .qr-result-divider {
  border-top-color: #fee2e2;
}

.qr-result-box.result-wrong .qr-result-divider {
  border-top-color: #fef3c7;
}

.qr-result-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qr-result-field {
  display: flex;
  flex-direction: column;
}

.qr-result-field-lbl {
  font-size: 9px;
  font-weight: 800;
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.qr-result-field-val {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a !important;
}

.qr-result-code-val {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 800;
  color: #0f172a !important;
  letter-spacing: 0.5px;
}

/* History List */
.qr-history-section {
  margin-top: 16px;
}

.qr-history-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.qr-history-section-title {
  font-size: 11px;
  font-weight: 900;
  color: #0f172a !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qr-history-badge-count {
  font-size: 10px;
  font-weight: 800;
  color: #64748b !important;
  text-transform: uppercase;
}

.qr-history-list-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.qr-history-item-card {
  background: #ffffff !important;
  border: 1.5px solid #f1f5f9 !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.qr-history-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.qr-history-status-chip {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.qr-history-status-chip.chip-valido {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.qr-history-status-chip.chip-duplicado {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.qr-history-status-chip.chip-error {
  background: #fef3c7 !important;
  color: #b45309 !important;
}

.qr-history-item-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.qr-history-item-code {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  color: #0f172a !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-history-item-sub {
  font-size: 10px;
  color: #64748b !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-history-item-time {
  font-size: 11px;
  font-weight: 700;
  color: #64748b !important;
  margin-left: 8px;
  flex-shrink: 0;
}

.qr-history-more-btn {
  background: #ffffff !important;
  border: 1.5px solid #fee2e2 !important;
  color: #ff3b00 !important;
  border-radius: 25px !important;
  padding: 10px 16px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  cursor: pointer;
  text-align: center;
  margin-top: 10px;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.qr-history-more-btn:hover {
  background: #fff5f2 !important;
  border-color: #ff3b00 !important;
}


/* ============================================================
   AISLAMIENTO DE INTERACCIÓN Y BLOQUEO DE FONDO PARA MODALES
   ============================================================ */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

#modals-container {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  pointer-events: none;
}

#modals-container>* {
  pointer-events: auto;
}

/* Evitar clics y scrolls fantasma hacia la pestaña de atrás */
.modal-overlay>*,
.profile-modal-overlay>*,
.offcanvas-overlay>* {
  pointer-events: auto;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Permitir desplazamiento táctil fluido (iOS/Android) en todos los modales y paneles */
.modal-box,
.cart-modal-box,
.profile-modal-card,
.qr-access-modal-card,
.offcanvas-panel,
.offcanvas-box,
.offcanvas-space-large,
.offcanvas-body,
.offcanvas-left,
.space-detail-page,
.pref-modal-box,
.auth-modal-card,
.modal-content,
[role="dialog"] {
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

/* ============================================================
   AISLAMIENTO DE Z-INDEX EN BUSCADOR & MAPA LEAFLET
   ============================================================ */
.topbar-search-cluster,
.search-wrap {
  overflow: visible !important;
  position: relative;
  z-index: 40;
}

#view-spaces-map .leaflet-container {
  z-index: 10 !important;
  isolation: isolate;
}

#view-spaces-map .leaflet-pane,
#view-spaces-map .leaflet-top,
#view-spaces-map .leaflet-bottom,
#view-spaces-map .leaflet-control {
  z-index: 20 !important;
}

.view-header-flex,
.spaces-map-toolbar {
  position: relative;
  z-index: 15;
}

/* ============================================================
   WIZARD STEPS (DARK & LIGHT THEME) -> NARANJA #FF3B00 ACTIVO
   ============================================================ */
.btn-event-step,
.btn-space-step,
.btn-artist-step {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-event-step.active,
.btn-space-step.active,
.btn-artist-step.active {
  background: #ff3b00 !important;
  color: #ffffff !important;
  border-color: #ff3b00 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(255, 59, 0, 0.28);
}

/* ============================================================
   CONSTRUCTOR DE HORARIOS & TARJETAS DE FORMULARIO DUAL-MODE
   ============================================================ */
.asoma-schedule-builder {
  background: #111625;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.asoma-schedule-block {
  background: #0e0f14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asoma-schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.asoma-schedule-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #ff3b00;
  text-transform: uppercase;
}

.asoma-schedule-hint {
  font-size: 11px;
  color: #94a3b8;
}

.asoma-schedule-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.asoma-day-chip {
  padding: 7px 4px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #181c28;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.asoma-day-chip.is-selected {
  background: #ff3b00 !important;
  color: #ffffff !important;
  border-color: #ff3b00 !important;
  font-weight: 800 !important;
}

.asoma-schedule-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.asoma-schedule-label {
  display: block;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.asoma-schedule-input {
  width: 100%;
  background: #181c28;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  color: #ffffff;
  font-size: 12px;
  font-family: var(--font-mono);
}

.asoma-schedule-add-btn {
  background: rgba(255, 59, 0, 0.12);
  color: #ff3b00;
  border: 1px dashed rgba(255, 59, 0, 0.5);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  align-self: flex-start;
}

.asoma-schedule-summary {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #e2f576;
  background: rgba(226, 245, 118, 0.1);
  border: 1px solid rgba(226, 245, 118, 0.25);
  border-radius: 6px;
  padding: 3px 9px;
}

.asoma-modal-step-card {
  background: #111625;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.asoma-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.asoma-dropzone:hover {
  border-color: #ff3b00;
  background: rgba(255, 59, 0, 0.05);
}

/* Light Mode Overrides para Constructor de Horarios y Wizards */
html[data-theme="light"] .asoma-schedule-builder,
body.theme-light .asoma-schedule-builder {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .asoma-schedule-block,
body.theme-light .asoma-schedule-block {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .asoma-schedule-hint,
body.theme-light .asoma-schedule-hint,
html[data-theme="light"] .asoma-schedule-label,
body.theme-light .asoma-schedule-label {
  color: #475569 !important;
}

html[data-theme="light"] .asoma-day-chip,
body.theme-light .asoma-day-chip {
  background: #f1f5f9 !important;
  color: #0e0f14 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .asoma-schedule-input,
body.theme-light .asoma-schedule-input {
  background: #ffffff !important;
  color: #0e0f14 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .asoma-schedule-summary,
body.theme-light .asoma-schedule-summary {
  background: #fff5f2 !important;
  color: #ff3b00 !important;
  border-color: rgba(255, 59, 0, 0.35) !important;
}

html[data-theme="light"] .asoma-modal-step-card,
body.theme-light .asoma-modal-step-card {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .asoma-dropzone,
body.theme-light .asoma-dropzone {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

/* ============================================================
   CONTRA PAGO MODAL & TICKET CARDS (DARK & LIGHT LEGIBILITY)
   ============================================================ */
.contra-pago-bank-card {
  background: linear-gradient(135deg, rgba(255, 59, 0, 0.1), rgba(17, 22, 37, 0.96));
  border: 1px solid rgba(255, 59, 0, 0.3);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.contra-pago-total {
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 20px;
}

.contra-pago-acc-box {
  background: rgba(14, 15, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  color: #e2e8f0;
}

.contra-pago-order-card {
  background: #141926;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.contra-pago-order-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
}

.contra-pago-ref-code {
  color: #e2f576;
  font-family: var(--font-mono);
  font-weight: 800;
}

.contra-pago-ticket-row {
  background: #0e0f14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.activation-error-box {
  display: none;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.activation-resend-btn {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.activation-resend-btn:hover:not(:disabled) {
  border-color: #ff3b00;
  color: #ffffff;
}

.activation-resend-btn.is-highlighted {
  background: rgba(255, 59, 0, 0.14);
  border: 1.5px solid #ff3b00;
  color: #ffffff;
  font-weight: 800;
}

.activation-resend-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.activation-success-box {
  display: none;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

.activation-inline-resend-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1.5px solid #ff3b00;
  background: #ff3b00;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
}

.activation-inline-resend-trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.offcanvas-detail-title {
  color: #ffffff;
}

.nearby-modal-card {
  background: #0f1015;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nearby-modal-header {
  background: linear-gradient(135deg, rgba(255, 59, 0, 0.15) 0%, rgba(20, 21, 28, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nearby-event-row {
  background: #181922;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.nearby-event-title {
  color: #ffffff;
}

.nearby-modal-footer {
  background: #14151c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nearby-fallback-btn {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
}

/* Light Mode Overrides globales para legibilidad */
html[data-theme="light"] .contra-pago-bank-card,
body.theme-light .contra-pago-bank-card {
  background: linear-gradient(135deg, #fff5f2 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(255, 59, 0, 0.3) !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .contra-pago-total,
body.theme-light .contra-pago-total,
html[data-theme="light"] .contra-pago-order-title,
body.theme-light .contra-pago-order-title,
html[data-theme="light"] .offcanvas-detail-title,
body.theme-light .offcanvas-detail-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .contra-pago-ref-code,
body.theme-light .contra-pago-ref-code {
  color: #ff3b00 !important;
}

html[data-theme="light"] .contra-pago-acc-box,
body.theme-light .contra-pago-acc-box {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}

html[data-theme="light"] .contra-pago-order-card,
body.theme-light .contra-pago-order-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .contra-pago-ticket-row,
body.theme-light .contra-pago-ticket-row {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .activation-error-box,
body.theme-light .activation-error-box {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

html[data-theme="light"] .activation-success-box,
body.theme-light .activation-success-box {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
}

html[data-theme="light"] .activation-resend-btn.is-highlighted,
body.theme-light .activation-resend-btn.is-highlighted {
  background: #fff5f2 !important;
  border-color: #ff3b00 !important;
  color: #ff3b00 !important;
}

html[data-theme="light"] .activation-resend-btn,
body.theme-light .activation-resend-btn {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .nearby-modal-card,
body.theme-light .nearby-modal-card {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16) !important;
}

html[data-theme="light"] .nearby-modal-header,
body.theme-light .nearby-modal-header {
  background: linear-gradient(135deg, #fff5f2 0%, #f8fafc 100%) !important;
  border-bottom-color: #e2e8f0 !important;
}

html[data-theme="light"] .nearby-event-row,
body.theme-light .nearby-event-row {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .nearby-event-title,
body.theme-light .nearby-event-title {
  color: #0e0f14 !important;
}

html[data-theme="light"] .nearby-modal-footer,
body.theme-light .nearby-modal-footer {
  background: #f8fafc !important;
  border-top-color: #e2e8f0 !important;
}

html[data-theme="light"] .nearby-fallback-btn,
body.theme-light .nearby-fallback-btn {
  background: #f1f5f9 !important;
  color: #0e0f14 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .profile-modal-card h2,
body.theme-light .profile-modal-card h2,
html[data-theme="light"] .profile-modal-card h3,
body.theme-light .profile-modal-card h3,
html[data-theme="light"] .modal-box h2,
body.theme-light .modal-box h2,
html[data-theme="light"] .modal-box h3,
body.theme-light .modal-box h3 {
  color: #0e0f14 !important;
}

html[data-theme="light"] .profile-modal-close,
body.theme-light .profile-modal-close {
  color: #334155 !important;
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .space-kpi-interactive,
body.theme-light .space-kpi-interactive {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .space-kpi-interactive .artist-stat-label,
body.theme-light .space-kpi-interactive .artist-stat-label {
  color: #334155 !important;
}

/* ============================================================
   MODAL BOARDING PASS MULTI-ENTRADA & RESPONSIVE
   ============================================================ */
.ticket-switcher-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ticket-switcher-tab {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #141926;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.ticket-switcher-tab.active {
  background: #ff3b00 !important;
  color: #ffffff !important;
  border-color: #ff3b00 !important;
}

html[data-theme="light"] .ticket-switcher-tab,
body.theme-light .ticket-switcher-tab {
  background: #f1f5f9 !important;
  color: #0e0f14 !important;
  border-color: #cbd5e1 !important;
}

@media (max-width: 660px) {
  .asoma-schedule-days {
    grid-template-columns: repeat(4, 1fr);
  }
  .asoma-schedule-times {
    grid-template-columns: 1fr;
  }
  .asoma-ticket-modal-card {
    padding: 14px !important;
    max-width: 96vw !important;
    border-radius: 16px !important;
  }
  .asoma-boarding-pass-grid {
    grid-template-columns: 1fr !important;
  }
  .asoma-boarding-pass-stub {
    border-left: none !important;
    border-top: 2px dashed rgba(255, 255, 255, 0.22) !important;
  }
}

/* ============================================================
   EVENT DASHBOARD VIEW (MÉTRICAS, ASISTENTES Y ÓRDENES)
   ============================================================ */
.evdash-wrap {
  padding: 24px 28px 64px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.evdash-hero {
  background: #111625;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.evdash-hero-main {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.evdash-hero-poster {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.evdash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.evdash-kpi-card {
  background: #111625;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
}

.evdash-kpi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.evdash-kpi-val {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 4px;
}

.evdash-kpi-sub {
  font-size: 12px;
  color: #94a3b8;
}

.evdash-progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 8px;
}

.evdash-progress-fill {
  height: 100%;
  background: #ff3b00;
  border-radius: 999px;
}

.evdash-panel {
  background: #111625;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px;
  overflow-x: auto;
}

.btn-open-event-dashboard {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 59, 0, 0.45);
  text-underline-offset: 3px;
}

.btn-open-event-dashboard:hover {
  color: #ff3b00 !important;
}

html[data-theme="light"] .evdash-hero,
body.theme-light .evdash-hero,
html[data-theme="light"] .evdash-kpi-card,
body.theme-light .evdash-kpi-card,
html[data-theme="light"] .evdash-panel,
body.theme-light .evdash-panel {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0e0f14 !important;
}

html[data-theme="light"] .evdash-kpi-val,
body.theme-light .evdash-kpi-val {
  color: #0e0f14 !important;
}

html[data-theme="light"] .evdash-kpi-label,
body.theme-light .evdash-kpi-label,
html[data-theme="light"] .evdash-kpi-sub,
body.theme-light .evdash-kpi-sub {
  color: #475569 !important;
}

html[data-theme="light"] .evdash-progress-track,
body.theme-light .evdash-progress-track {
  background: #e2e8f0 !important;
}
