/* ═══════════════════════════════════════════════════════════════════
   EXPOKAI — Main CSS
   Tema Unificado: Cyber-Neon (Azul marino · Celeste neon · Morado)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Fondo y Superficies */
  --bg:         #0f1729;
  --bg-2:       #162035;
  --bg-3:       #1a2540;
  --surface:    #1e2d4a;
  --surface-2:  #243050;

  /* Acento Principal: Celeste Brillante */
  --red:        #38bdf8;   /* Mantenemos el nombre de la variable por compatibilidad HTML */
  --red-bright: #7dd3fc;
  --red-glow:   rgba(56, 189, 248, 0.4);
  
  /* Acento Secundario: Morado Suave */
  --gold:       #a78bfa;   /* Mantenemos el nombre de la variable por compatibilidad HTML */
  --gold-light: #c4b5fd;
  --gold-glow:  rgba(167, 139, 250, 0.35);

  --white:      #e2eeff;
  --muted:      #7a93c0;
  --border:     rgba(56, 189, 248, 0.18);

  --font-display: 'Noto Serif JP', serif;
  --font-mono:    'Space Mono', monospace;
  --font-body:    'Inter', sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --max-w: 1200px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Tipografía ─────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
.mono { font-family: var(--font-mono); }

/* ── Layout helpers ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
main { padding-top: 64px; }

/* ── Botones ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--red);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 0 16px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 0 32px var(--red-glow), 0 0 64px rgba(56,189,248,0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(56,189,248,0.3);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .06em;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(56,189,248,0.08);
  box-shadow: 0 0 12px rgba(56,189,248,0.15);
}

.btn-gold {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 16px var(--gold-glow);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--gold-glow);
}

.btn-danger {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #2e0f14;
  border: 1px solid #7a2a32;
  color: #e8706e;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-danger:hover { background: #3d141a; transform: translateY(-2px); }

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 23, 41, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo-kanji {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--red);
  line-height: 1;
  text-shadow: 0 0 12px var(--red-glow);
}
.logo-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--white);
}
/* Etiqueta ADMIN en navbar */
.admin-badge {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: .15rem .45rem;
  border-radius: 4px;
  margin-left: .25rem;
  box-shadow: 0 0 8px var(--red-glow);
}
.nav-user {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
}
.nav-links { display: flex; gap: 2rem; margin-left: auto; }
.nav-links a {
  font-size: .88rem;
  font-family: var(--font-mono);
  letter-spacing: .05em;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: .75rem; margin-left: 1.5rem; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: .5rem; margin-left: auto; }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: .5rem;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  padding: .6rem 0;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .9rem;
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--white); }
.nav-mobile .mobile-cta { margin-top: .5rem; color: var(--red); font-weight: 700; }
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile.open { display: flex; }
}

/* ── Flash messages ─────────────────────────────────────────────── */
.flash-container {
  position: fixed; top: 70px; right: 1rem; z-index: 200;
  display: flex; flex-direction: column; gap: .5rem;
  max-width: 360px;
}
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.2rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-family: var(--font-mono);
  animation: slideIn .3s ease;
}
.flash-success { background: #0f2e1a; border: 1px solid #2a7a40; color: #5dcc80; }
.flash-danger  { background: #2e0f14; border: 1px solid #7a2a32; color: #e8706e; }
.flash-info    { background: #0f1a2e; border: 1px solid #2a4a7a; color: #6ea8e8; }
.flash-warning { background: #2e240f; border: 1px solid #7a5e2a; color: #e8c06e; }
.flash-close   { color: inherit; opacity: .6; font-size: 1rem; }
.flash-close:hover { opacity: 1; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(1rem); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-brand .logo-kanji { font-size: 2.5rem; display: block; margin-bottom: .3rem; text-shadow: 0 0 16px var(--red-glow); }
.footer-brand p { color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .05em;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: var(--muted); font-size: .78rem; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 8rem 1.5rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(56,189,248,0.08), transparent 50%),
              radial-gradient(circle at bottom left, rgba(167,139,250,0.06), transparent 50%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.4);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-badge::before { content: '●'; font-size: .5rem; animation: pulse 1.5s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.hero-title { margin-bottom: 1rem; }
.hero-title .accent { color: var(--red); text-shadow: 0 0 20px var(--red-glow); }
.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-meta { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-meta-item { display: flex; flex-direction: column; gap: .15rem; }
.hero-meta-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('/imagenes/hero-graphic.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .12;
  pointer-events: none;
}
.hero-flyer {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px var(--red-glow), 0 0 120px rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.3);
}
.hero-flyer-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(56,189,248,0.15) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 6rem; }
  .hero-visual { order: -1; }
  .hero-flyer  { max-width: 280px; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
}

/* ── Countdown ──────────────────────────────────────────────────── */
.countdown-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
}
.countdown-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.countdown { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.countdown-unit {
  display: flex; flex-direction: column; align-items: center;
  min-width: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem .75rem;
  border-color: rgba(56,189,248,0.2);
  box-shadow: 0 0 16px rgba(56,189,248,0.1), inset 0 1px 0 rgba(56,189,248,0.08);
}
.countdown-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.countdown-sub {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .4rem;
}

/* ── Actividades ────────────────────────────────────────────────── */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.activity-card {
  background: var(--surface);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.06), inset 0 1px 0 rgba(56,189,248,0.08);
}
.activity-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.15);
}
.activity-icon { font-size: 2rem; margin-bottom: .75rem; }
.activity-name { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .4rem; }
.activity-desc { color: var(--muted); font-size: .88rem; line-height: 1.6; }

/* ── Mapa ───────────────────────────────────────────────────────── */
.map-section { background: var(--bg-2); }
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 2rem;
}
.map-wrapper iframe { width: 100%; height: 400px; display: block; filter: grayscale(.4) invert(.9) hue-rotate(180deg); }
.map-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Sistema de votos ───────────────────────────────────────────── */
.votes-hero { text-align: center; padding: 8rem 1.5rem 4rem; }
.vote-categories { display: flex; flex-direction: column; gap: 3rem; }
.vote-category {
  background: var(--surface);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.06), inset 0 1px 0 rgba(56,189,248,0.08);
}
.vote-category:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.15);
}
.vote-category-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.vote-category-name { font-family: var(--font-display); font-size: 1.4rem; }
.vote-status-open   { color: #5dcc80; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; }
.vote-status-closed { color: var(--muted); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; }
.vote-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.vote-option {
  background: var(--bg-3);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.vote-option:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(56,189,248,0.25);
}
.vote-option.voted { 
  border-color: var(--gold); 
  background: rgba(167,139,250,0.08); 
  box-shadow: 0 0 16px rgba(167,139,250,0.2);
}
.vote-option-img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto .75rem;
  border: 2px solid var(--border);
}
.vote-option-name { font-family: var(--font-display); font-size: 1rem; margin-bottom: .75rem; }
.vote-bar-wrap { background: var(--bg); border-radius: 999px; height: 6px; overflow: hidden; }
.vote-bar {
  height: 6px;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  border-radius: 999px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.vote-pct { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); margin-top: .4rem; }

/* ── Galería ────────────────────────────────────────────────────── */
.gallery-grid { columns: 3 280px; gap: 1rem; margin-top: 2rem; }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img { width: 100%; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(15,23,41,.9));
  color: var(--white);
  font-size: .82rem;
  padding: 1.5rem .75rem .75rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ── Admin panel ────────────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  padding-top: 64px;
}
.admin-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 2rem 1rem;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.admin-sidebar-title {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 .75rem;
  margin-bottom: 1rem;
}
.admin-nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .75rem;
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
  margin-bottom: .25rem;
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: var(--surface);
  color: var(--white);
}
.admin-nav-item.active { border-left: 2px solid var(--red); box-shadow: inset 4px 0 0 var(--red-glow); }
.admin-content { padding: 2.5rem 2rem; }
.admin-header  { margin-bottom: 2rem; }
.admin-title   { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: .25rem; }
.admin-subtitle { color: var(--muted); font-size: .9rem; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}
.stat-card:hover {
  box-shadow: 0 0 20px var(--red-glow);
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label { color: var(--muted); font-size: .82rem; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th {
  text-align: left;
  padding: .75rem 1rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(56,189,248,0.08);
  color: var(--white);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.badge-status {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .25rem .65rem;
  border-radius: 999px;
}
.badge-upcoming { background: rgba(167,139,250,0.15); color: #c4b5fd; }
.badge-ongoing  { background: rgba(56,189,248,0.15);  color: #38bdf8; }
.badge-finished { background: rgba(122,147,192,0.15); color: var(--muted); }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.12), 0 0 16px rgba(56,189,248,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select option { background: var(--surface); }

/* ── Auth pages ─────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
}
.auth-page::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(56,189,248,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.auth-card {
  background: var(--bg-2);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.06), inset 0 1px 0 rgba(56,189,248,0.08);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .logo-kanji { font-size: 3rem; color: var(--red); text-shadow: 0 0 16px var(--red-glow); }
.auth-title { font-family: var(--font-display); font-size: 1.6rem; text-align: center; margin-bottom: .5rem; }
.auth-sub   { color: var(--muted); text-align: center; font-size: .88rem; margin-bottom: 2rem; }
.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: .8rem;
  font-family: var(--font-mono);
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem;
  color: var(--white);
  font-size: .9rem;
  font-family: var(--font-body);
  transition: border-color var(--transition), background var(--transition);
}
.google-btn:hover { border-color: var(--gold); background: var(--surface-2); }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--muted); font-size: .85rem; }
.auth-footer a { color: var(--gold); }
.auth-footer a:hover { color: var(--gold-light); text-shadow: 0 0 8px var(--gold-glow); }

/* ── Utility ────────────────────────────────────────────────────── */
.text-red    { color: var(--red); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.section-title    { margin-bottom: .5rem; }
.section-subtitle { color: var(--muted); max-width: 560px; margin-bottom: 2.5rem; }

.gold-line {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, #38bdf8, transparent);
  border-radius: 2px;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .gallery-grid  { columns: 2 180px; }
}

/* ═══════════════════════════════════════════════════════════════════
   TEMA APP + ADMIN — Neón sobre blanco
   (la web pública conserva el tema cyber-neon oscuro de arriba)
   Activado por las clases body.app-theme y body.admin-theme
   asignadas dinámicamente en base.html.
   ═══════════════════════════════════════════════════════════════════ */
body.app-theme,
body.admin-theme {
  /* Fondo y superficies — blanco */
  --bg:        #ffffff;
  --bg-2:      #f5f7fb;
  --bg-3:      #eef2f9;
  --surface:   #ffffff;
  --surface-2: #f8fafc;

  /* Acento primario — celeste neón */
  --red:        #00d9ff;
  --red-bright: #38e3ff;
  --red-glow:   rgba(0, 217, 255, 0.45);

  /* Acento secundario — morado neón */
  --gold:       #a855f7;
  --gold-light: #c084fc;
  --gold-glow:  rgba(168, 85, 247, 0.4);

  /* Texto */
  --white:  #0f172a;
  --muted:  #64748b;
  --border: rgba(0, 217, 255, 0.22);

  background: var(--bg);
  color: var(--white);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(0,217,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(168,85,247,0.06) 0%, transparent 45%);
}

/* Navbar app/admin — vidrio blanco con borde neón */
body.app-theme .navbar,
body.admin-theme .navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.25);
  box-shadow: 0 1px 0 rgba(168, 85, 247, 0.08);
}
body.app-theme .logo-text,
body.admin-theme .logo-text { color: var(--white); }

body.app-theme .nav-links a,
body.admin-theme .nav-links a { color: #475569; }
body.app-theme .nav-links a:hover,
body.admin-theme .nav-links a:hover {
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold-glow);
}

/* Botones primarios — celeste neón sobre blanco */
body.app-theme .btn-primary,
body.admin-theme .btn-primary {
  background: var(--red);
  color: #06212b;
  box-shadow: 0 0 18px var(--red-glow), 0 4px 12px rgba(0,217,255,0.18);
}
body.app-theme .btn-primary:hover,
body.admin-theme .btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 0 28px var(--red-glow), 0 0 56px rgba(168,85,247,0.25);
}

body.app-theme .btn-ghost,
body.admin-theme .btn-ghost {
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.32);
  color: var(--gold);
}
body.app-theme .btn-ghost:hover,
body.admin-theme .btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(168, 85, 247, 0.12);
  color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}

body.app-theme .btn-gold,
body.admin-theme .btn-gold {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 0 18px var(--gold-glow), 0 4px 12px rgba(168,85,247,0.18);
}
body.app-theme .btn-gold:hover,
body.admin-theme .btn-gold:hover { background: var(--gold-light); }

/* Tarjetas y superficies */
body.app-theme .activity-card,
body.app-theme .vote-category,
body.app-theme .stat-card,
body.app-theme .auth-card,
body.admin-theme .activity-card,
body.admin-theme .vote-category,
body.admin-theme .stat-card,
body.admin-theme .auth-card {
  background: var(--surface);
  border: 1px solid rgba(0, 217, 255, 0.18);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06),
              0 0 0 1px rgba(168, 85, 247, 0.04);
}
body.app-theme .activity-card:hover,
body.app-theme .vote-category:hover,
body.app-theme .stat-card:hover,
body.admin-theme .activity-card:hover,
body.admin-theme .vote-category:hover,
body.admin-theme .stat-card:hover {
  border-color: rgba(0, 217, 255, 0.45);
  box-shadow: 0 10px 32px rgba(0, 217, 255, 0.15),
              0 0 24px rgba(168, 85, 247, 0.12);
}

/* Sidebar admin */
body.admin-theme .admin-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-right: 1px solid rgba(0, 217, 255, 0.18);
}
body.admin-theme .admin-nav-item { color: #475569; }
body.admin-theme .admin-nav-item:hover,
body.admin-theme .admin-nav-item.active {
  background: rgba(0, 217, 255, 0.08);
  color: var(--gold);
}
body.admin-theme .admin-nav-item.active {
  border-left: 2px solid var(--red);
  box-shadow: inset 4px 0 0 var(--red-glow);
}

/* Tablas admin */
body.admin-theme .admin-table th { color: var(--muted); border-bottom-color: rgba(0,217,255,0.18); }
body.admin-theme .admin-table td { color: var(--white); border-bottom-color: rgba(15,23,42,0.06); }
body.admin-theme .admin-table tr:hover td { background: rgba(0, 217, 255, 0.04); }

/* Forms */
body.app-theme .form-input,
body.app-theme .form-select,
body.app-theme .form-textarea,
body.admin-theme .form-input,
body.admin-theme .form-select,
body.admin-theme .form-textarea {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--white);
}
body.app-theme .form-input:focus,
body.app-theme .form-select:focus,
body.app-theme .form-textarea:focus,
body.admin-theme .form-input:focus,
body.admin-theme .form-select:focus,
body.admin-theme .form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.18),
              0 0 16px rgba(168, 85, 247, 0.12);
}
body.app-theme .form-label,
body.admin-theme .form-label { color: #475569; }

/* Flash messages — sobre fondo blanco */
body.app-theme .flash-success,
body.admin-theme .flash-success { background: #ecfdf5; border-color: #10b981; color: #065f46; }
body.app-theme .flash-danger,
body.admin-theme .flash-danger  { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
body.app-theme .flash-info,
body.admin-theme .flash-info    { background: #eff6ff; border-color: #3b82f6; color: #1e3a8a; }
body.app-theme .flash-warning,
body.admin-theme .flash-warning { background: #fefce8; border-color: #eab308; color: #854d0e; }

/* Línea decorativa — gradiente neón */
body.app-theme .gold-line,
body.admin-theme .gold-line {
  background: linear-gradient(90deg, #00d9ff 0%, #a855f7 100%);
  height: 3px;
  width: 64px;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

/* Countdown app */
body.app-theme .countdown-section,
body.admin-theme .countdown-section {
  background: var(--bg-2);
  border-top: 1px solid rgba(0,217,255,0.18);
  border-bottom: 1px solid rgba(168,85,247,0.18);
}
body.app-theme .countdown-unit,
body.admin-theme .countdown-unit {
  background: #ffffff;
  border: 1px solid rgba(0,217,255,0.22);
  box-shadow: 0 0 18px rgba(0,217,255,0.10), 0 4px 12px rgba(15,23,42,0.04);
}
body.app-theme .countdown-num,
body.admin-theme .countdown-num {
  color: var(--gold);
  text-shadow: 0 0 14px var(--gold-glow);
}

/* Vote bar — gradiente neón consistente */
body.app-theme .vote-bar,
body.admin-theme .vote-bar {
  background: linear-gradient(90deg, #00d9ff 0%, #a855f7 100%);
  box-shadow: 0 0 8px rgba(0,217,255,0.4);
}

/* Mapa — sin filtro invertido sobre blanco */
body.app-theme .map-wrapper iframe,
body.admin-theme .map-wrapper iframe { filter: none; }

/* Hero glow ajustado a blanco */
body.app-theme .hero::before,
body.admin-theme .hero::before {
  background: radial-gradient(circle at top right, rgba(0,217,255,0.12), transparent 50%),
              radial-gradient(circle at bottom left, rgba(168,85,247,0.10), transparent 50%);
}
body.app-theme .hero-flyer,
body.admin-theme .hero-flyer {
  box-shadow: 0 10px 60px rgba(0,217,255,0.25), 0 0 100px rgba(168,85,247,0.15);
  border-color: rgba(168, 85, 247, 0.3);
}
body.app-theme .hero-subtitle,
body.admin-theme .hero-subtitle { color: #475569; }

/* Footer (cuando aplique) */
body.app-theme .footer,
body.admin-theme .footer {
  border-top: 1px solid rgba(0, 217, 255, 0.22);
}

/* Mobile responsive extras */
@media (max-width: 640px) {
  .admin-content { padding: 1.5rem 1rem; }
  .admin-table { font-size: .82rem; }
  .admin-table th, .admin-table td { padding: .6rem .5rem; }
  .stat-cards { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stat-num { font-size: 1.6rem; }
  .vote-options { grid-template-columns: 1fr 1fr; }
  .vote-option-img { width: 60px; height: 60px; }
  h1 { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.2rem, 6vw, 1.8rem); }
}
@media (max-width: 420px) {
  .stat-cards { grid-template-columns: 1fr; }
  .countdown-unit { min-width: 64px; padding: .75rem .5rem; }
  .nav-actions { gap: .4rem; }
}
/* ═══════════════════════════════════════════════════════════════════
   Componentes estilo PROTOTIPO simple — para .app-theme y .admin-theme
   Cards blancas, orden vertical, sombras sutiles, paleta neón.
   ═══════════════════════════════════════════════════════════════════ */

body.app-theme, body.admin-theme {
  background-color: #F4F6FB;
  background-image:
    radial-gradient(circle at 5% 0%, rgba(0,217,255,0.07) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(168,85,247,0.07) 0%, transparent 45%);
}

/* Contenedor general estilo prototipo (más estrecho, centrado) */
.app-container {
  max-width: 960px;
  margin: 1.5rem auto 4rem;
  padding: 0 1rem;
}

/* ── Card simple ──────────────────────────────────────────────────── */
.simple-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.25rem;
}
.simple-card h3 { color: #0F172A; margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.15rem; }
.simple-card h3 .accent { color: var(--gold); }

/* ── Alerta push global (banner rojo arriba) ──────────────────────── */
.alert-banner {
  background: #FEF2F2;
  color: #991B1B;
  border-left: 4px solid #EF4444;
  padding: .9rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.alert-banner::before { content: '⚠️'; font-size: 1.2rem; }

/* ── Hero del evento (estilo prototipo: imagen + overlay neón) ───── */
.event-hero-card {
  position: relative;
  border-radius: 14px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-color: #1E1B4B;
  margin-bottom: 1.25rem;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-hero-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0, 217, 255, .85) 0%, rgba(168, 85, 247, .85) 100%);
  z-index: 0;
}
.event-hero-card > * { position: relative; z-index: 1; }
.event-hero-card .status-pill {
  position: absolute;
  top: 1rem; right: 1rem;
  background: #ffffff;
  color: var(--gold);
  padding: .35rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.event-hero-card h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 0 0 .6rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.event-hero-card .meta {
  font-size: 1rem;
  opacity: .95;
  margin: 0 0 1.25rem;
}
.event-hero-card .countdown-display {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #FCD34D;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  margin: .5rem 0 1.25rem;
  letter-spacing: .04em;
}
.btn-pill {
  display: inline-block;
  background: #ffffff;
  color: var(--gold);
  padding: .85rem 2.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-pill.disabled {
  background: #94A3B8;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Fila de actividad (estilo prototipo) ─────────────────────────── */
.activity-row {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: .9rem 1rem;
  margin-bottom: .6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.activity-row.in-progress {
  background: #ECFEFF;
  border-left: 4px solid #00d9ff;
  box-shadow: 0 0 0 1px rgba(0,217,255,.15), 0 4px 12px rgba(0,217,255,.08);
}
.activity-row .time {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}
.activity-row .info { flex: 1; }
.activity-row .info strong { color: #0F172A; }
.activity-row .info small { color: #64748B; display: block; margin-top: .2rem; font-size: .82rem; }

/* ── Invitados (grid de cards) ────────────────────────────────────── */
.guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.guest-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.guest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(168,85,247,.12);
  border-color: rgba(168,85,247,.3);
}
.guest-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d9ff, #a855f7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto .6rem;
  overflow: hidden;
}
.guest-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Votos (estilo prototipo) ─────────────────────────────────────── */
.vote-cat-card-simple {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.vote-cat-card-simple h4 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vote-cat-card-simple .state-label {
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.state-label.active  { background: #D1FAE5; color: #065F46; }
.state-label.paused  { background: #FEF3C7; color: #92400E; }
.state-label.closed  { background: #FEE2E2; color: #991B1B; }

.vote-btn-simple {
  width: 100%;
  text-align: left;
  background: #ffffff;
  padding: .85rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: .92rem;
  color: #0F172A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  transition: border-color .2s ease, transform .15s ease;
  font-family: var(--font-body);
}
.vote-btn-simple:hover:not(:disabled) {
  border-color: var(--red);
  transform: translateY(-1px);
}
.vote-btn-simple:disabled {
  background: #F3F4F6;
  color: #94A3B8;
  cursor: not-allowed;
}
.vote-btn-simple.voted {
  background: #ECFEFF;
  border-color: var(--red);
  color: var(--gold);
}

.progress-row { margin-bottom: .75rem; }
.progress-bg {
  background: #E5E7EB;
  height: 22px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  background: linear-gradient(90deg, #00d9ff 0%, #a855f7 100%);
  height: 100%;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}
.progress-text {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .72rem;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,.4);
  font-family: var(--font-mono);
}

/* ── Auth simple (login/registro centrado) ────────────────────────── */
.auth-simple-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 3rem;
}
.auth-simple-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.auth-simple-card .emoji-logo {
  font-size: 3.5rem;
  margin-bottom: .75rem;
}
.auth-simple-card h2 {
  margin: 0 0 .4rem;
  font-size: 1.6rem;
  color: #0F172A;
}
.auth-simple-card .sub {
  color: #64748B;
  margin-bottom: 1.75rem;
  font-size: .92rem;
}
.auth-simple-card input {
  width: 100%;
  padding: .85rem 1rem;
  margin-bottom: .85rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  background: #ffffff;
  color: #0F172A;
}
.auth-simple-card input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(0,217,255,.18);
}
.btn-block {
  width: 100%;
  padding: .9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s ease;
  border: none;
  font-family: inherit;
}
.btn-block.primary {
  background: linear-gradient(135deg, #00d9ff 0%, #a855f7 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0,217,255,.25);
}
.btn-block.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(168,85,247,.3); }
.btn-block.google {
  background: #ffffff;
  color: #1F2937;
  border: 1px solid #D1D5DB;
  margin-top: .75rem;
}
.btn-block.google:hover { background: #F9FAFB; border-color: #94A3B8; }
.auth-link {
  display: block;
  margin-top: 1.25rem;
  color: var(--gold);
  font-size: .9rem;
  text-decoration: none;
  font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }

/* ── Admin: panel oscuro de bienvenida + secciones ────────────────── */
.admin-welcome-card {
  background: #1E293B;
  color: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.admin-welcome-card h2 { color: #ffffff; margin: 0; font-size: 1.4rem; font-family: var(--font-display); }
.admin-welcome-card .sub { color: #94A3B8; margin: .4rem 0 0; font-size: .92rem; }

.admin-section-title {
  border-bottom: 2px solid var(--gold);
  padding-bottom: .5rem;
  margin: 0 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0F172A;
  font-size: 1.1rem;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #F3F4F6;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  border: 1px solid #E5E7EB;
  user-select: none;
}
.switch-label input { transform: scale(1.2); margin: 0; }
.switch-label:has(input:checked) {
  background: rgba(0,217,255,.10);
  border-color: rgba(0,217,255,.35);
  color: var(--gold);
}

.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 1rem;
  border-radius: 8px;
  margin-bottom: .35rem;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  font-size: .9rem;
}
.user-row.attended { background: #ECFDF5; border-color: #A7F3D0; }

.btn-small {
  padding: .4rem .8rem;
  font-size: .82rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all .15s ease;
  font-family: inherit;
}
.btn-small.primary  { background: var(--red); color: #06212B; }
.btn-small.success  { background: #10B981; color: #ffffff; }
.btn-small.warning  { background: #F59E0B; color: #000000; }
.btn-small.danger   { background: #EF4444; color: #ffffff; }
.btn-small.outline  { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-small:hover    { transform: translateY(-1px); }

.grid-2-simple { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 768px) { .grid-2-simple { grid-template-columns: 1fr; } }

/* Form helpers admin */
.inline-form { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.inline-form input, .inline-form select, .inline-form textarea {
  flex: 1;
  min-width: 0;
  padding: .65rem .85rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  background: #ffffff;
  color: #0F172A;
}
.inline-form textarea { width: 100%; flex-basis: 100%; }

/* Navbar simple para app-theme (oculta sidebar admin viejo) */
body.admin-theme .admin-layout { display: block; padding-top: 64px; }
body.admin-theme .admin-sidebar { display: none !important; }
body.admin-theme .admin-content { padding: 0; max-width: 960px; margin: 1.5rem auto; }

/* ═══════════════════════════════════════════════════════════════════
   NAVBAR consistente para app/admin — blanco con borde neon sutil
   Override absoluto del navbar oscuro de la versión cyber-neon.
   ═══════════════════════════════════════════════════════════════════ */
body.app-theme .navbar,
body.admin-theme .navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.22);
  box-shadow: 0 2px 16px rgba(168, 85, 247, 0.06);
}

body.app-theme .logo-text,
body.admin-theme .logo-text {
  color: #0F172A;
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .18em;
  background: linear-gradient(135deg, #00d9ff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.app-theme .admin-badge,
body.admin-theme .admin-badge {
  background: linear-gradient(135deg, #00d9ff, #a855f7);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: .2rem .55rem;
  box-shadow: 0 2px 8px rgba(168,85,247,.25);
}

body.app-theme .nav-user,
body.admin-theme .nav-user {
  color: #475569;
  font-family: var(--font-mono);
  font-size: .82rem;
}

body.app-theme .nav-links a,
body.admin-theme .nav-links a {
  color: #475569;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  text-transform: none;
  font-family: var(--font-body);
}
body.app-theme .nav-links a:hover,
body.admin-theme .nav-links a:hover {
  color: var(--gold);
  text-shadow: none;
}

body.app-theme .nav-burger span,
body.admin-theme .nav-burger span {
  background: #0F172A;
}

body.app-theme .nav-mobile,
body.admin-theme .nav-mobile {
  background: #ffffff;
  border-top: 1px solid rgba(0, 217, 255, 0.18);
}
body.app-theme .nav-mobile a,
body.admin-theme .nav-mobile a {
  color: #475569;
  font-family: var(--font-body);
}
body.app-theme .nav-mobile a:hover,
body.admin-theme .nav-mobile a:hover { color: var(--gold); }
body.app-theme .nav-mobile .mobile-cta,
body.admin-theme .nav-mobile .mobile-cta {
  color: var(--gold);
  font-weight: 700;
}

/* Botones del nav en tema blanco */
body.app-theme .navbar .btn-ghost,
body.admin-theme .navbar .btn-ghost {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: var(--gold);
  font-size: .82rem;
  padding: .5rem 1rem;
  letter-spacing: .02em;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 600;
}
body.app-theme .navbar .btn-ghost:hover,
body.admin-theme .navbar .btn-ghost:hover {
  background: rgba(168, 85, 247, 0.14);
  border-color: var(--gold);
  color: var(--gold);
}

body.app-theme .navbar .btn-primary,
body.admin-theme .navbar .btn-primary {
  background: linear-gradient(135deg, #00d9ff 0%, #a855f7 100%);
  color: #ffffff;
  font-size: .82rem;
  padding: .55rem 1.1rem;
  letter-spacing: .02em;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,217,255,.25);
}
body.app-theme .navbar .btn-primary:hover,
body.admin-theme .navbar .btn-primary:hover {
  background: linear-gradient(135deg, #38e3ff 0%, #c084fc 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(168,85,247,.30);
}

/* Padding superior del contenido principal — la barra mide 64px */
body.app-theme main,
body.admin-theme main { padding-top: 64px; }

/* ═══════════════════════════════════════════════════════════════════
   Fix de botones: forzar look de boton incluso cuando son <a> o cuando
   el reset CSS de las clases base le quita borde/padding.
   ═══════════════════════════════════════════════════════════════════ */
body.app-theme .btn-small,
body.admin-theme .btn-small,
body.app-theme a.btn-small,
body.admin-theme a.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .5rem 1rem;
  font-size: .85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
  font-family: var(--font-body);
  line-height: 1.2;
  white-space: nowrap;
}

body.app-theme .btn-small.primary,
body.admin-theme .btn-small.primary {
  background: linear-gradient(135deg, #00d9ff 0%, #a855f7 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(168, 85, 247, .20);
}
body.app-theme .btn-small.primary:hover,
body.admin-theme .btn-small.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(168, 85, 247, .30);
}

body.app-theme .btn-small.success,
body.admin-theme .btn-small.success {
  background: #10B981;
  color: #ffffff;
  border-color: transparent;
}
body.app-theme .btn-small.success:hover,
body.admin-theme .btn-small.success:hover { background: #059669; transform: translateY(-1px); }

body.app-theme .btn-small.warning,
body.admin-theme .btn-small.warning {
  background: #F59E0B;
  color: #1F2937;
  border-color: transparent;
  font-weight: 700;
}
body.app-theme .btn-small.warning:hover,
body.admin-theme .btn-small.warning:hover { background: #D97706; transform: translateY(-1px); }

body.app-theme .btn-small.danger,
body.admin-theme .btn-small.danger {
  background: #EF4444;
  color: #ffffff;
  border-color: transparent;
}
body.app-theme .btn-small.danger:hover,
body.admin-theme .btn-small.danger:hover { background: #DC2626; transform: translateY(-1px); }

body.app-theme .btn-small.outline,
body.admin-theme .btn-small.outline,
body.app-theme a.btn-small.outline,
body.admin-theme a.btn-small.outline {
  background: #ffffff;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  box-shadow: 0 1px 4px rgba(168, 85, 247, .08);
}
body.app-theme .btn-small.outline:hover,
body.admin-theme .btn-small.outline:hover,
body.app-theme a.btn-small.outline:hover,
body.admin-theme a.btn-small.outline:hover {
  background: rgba(168, 85, 247, .08);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, .18);
}

/* Forzar también que .btn-block como link tenga look completo */
body.app-theme a.btn-block,
body.admin-theme a.btn-block {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

/* Botones del hero del evento (clase .btn-pill) — asegurar look */
body.app-theme a.btn-pill,
body.admin-theme a.btn-pill,
body.app-theme button.btn-pill,
body.admin-theme button.btn-pill {
  display: inline-block;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════
   BOTONES — render consistente para <a> y <button>
   Asegura que cualquier elemento con .btn-small, .btn-block, .btn-pill
   se vea como botón aunque sea un anchor.
   ═══════════════════════════════════════════════════════════════════ */
.btn-small,
a.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.1;
  min-height: 32px;
  border: 1px solid transparent;
  user-select: none;
}
a.btn-small.outline,
.btn-small.outline {
  border: 1.5px solid var(--gold);
  background: rgba(168, 85, 247, 0.06);
  color: var(--gold);
  font-weight: 600;
}
a.btn-small.outline:hover,
.btn-small.outline:hover {
  background: rgba(168, 85, 247, 0.14);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(168,85,247,.15);
}

.btn-small.primary {
  background: var(--red);
  color: #06212B;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,217,255,.20);
}
.btn-small.primary:hover {
  background: var(--red-bright);
  box-shadow: 0 4px 14px rgba(0,217,255,.30);
}

.btn-small.success {
  background: #10B981;
  color: #ffffff;
  font-weight: 700;
  border-color: #10B981;
}
.btn-small.success:hover { background: #059669; }

.btn-small.warning {
  background: #F59E0B;
  color: #1F2937;
  font-weight: 700;
  border-color: #F59E0B;
}
.btn-small.warning:hover { background: #D97706; }

.btn-small.danger {
  background: #EF4444;
  color: #ffffff;
  font-weight: 700;
  border-color: #EF4444;
}
.btn-small.danger:hover { background: #DC2626; }

/* btn-block y btn-pill — también consistentes con anchors */
.btn-block,
a.btn-block,
.btn-pill,
a.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-block { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════
   HOME DARK NEON — Solo aplica a body.home-dark (events.index)
   Inspirado en el prototipo Expokai Visual Concept del cliente.
   Paleta: dark-bg #0f1f4f, cyan #00D9FF, purple #BB86FC, deep #A569FF.
   ═══════════════════════════════════════════════════════════════════ */

body.home-dark {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,217,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(187,134,252,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 100%, rgba(165,105,255,0.06) 0%, transparent 50%),
    #0f1f4f;
  background-attachment: fixed;
  color: #ffffff;
}

/* Navbar — translúcido oscuro con borde cyan sutil sobre la home */
body.home-dark .navbar {
  background: rgba(15, 31, 79, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.35);
  box-shadow: 0 2px 24px rgba(0, 217, 255, 0.10);
}
body.home-dark .logo-text {
  background: linear-gradient(135deg, #00D9FF 0%, #BB86FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.home-dark .nav-user { color: rgba(255,255,255,0.7); }
body.home-dark .nav-links a { color: rgba(255,255,255,0.75); }
body.home-dark .nav-links a:hover { color: #00D9FF; text-shadow: 0 0 8px rgba(0,217,255,.6); }
body.home-dark .nav-burger span { background: #ffffff; }
body.home-dark .navbar .btn-ghost {
  background: rgba(187, 134, 252, 0.10);
  border-color: rgba(187, 134, 252, 0.45);
  color: #BB86FC;
}
body.home-dark .navbar .btn-ghost:hover {
  background: rgba(187, 134, 252, 0.18);
  border-color: #BB86FC;
  color: #fff;
  box-shadow: 0 0 14px rgba(187,134,252,.40);
}
body.home-dark .navbar .btn-primary {
  background: linear-gradient(135deg, #00D9FF 0%, #BB86FC 100%);
  color: #0f1f4f;
  box-shadow: 0 0 12px rgba(0,217,255,.30);
}

/* Textos neón ── shadows múltiples */
body.home-dark .neon-text-cyan {
  color: #00D9FF;
  text-shadow:
    0 0 7px #00D9FF,
    0 0 20px rgba(0,217,255,.7),
    0 0 42px rgba(0,217,255,.4);
}
body.home-dark .neon-text-purple {
  color: #BB86FC;
  text-shadow:
    0 0 7px #BB86FC,
    0 0 20px rgba(187,134,252,.7),
    0 0 42px rgba(187,134,252,.4);
}
body.home-dark .neon-text-deep {
  color: #A569FF;
  text-shadow:
    0 0 7px #A569FF,
    0 0 20px rgba(165,105,255,.6);
}

/* Bordes neón con glow + fondo card semitransparente */
body.home-dark .neon-card {
  background: rgba(30, 20, 60, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
body.home-dark .neon-border-cyan {
  border: 1px solid #00D9FF;
  box-shadow: 0 0 10px rgba(0,217,255,.45), inset 0 0 12px rgba(0,217,255,.06);
}
body.home-dark .neon-border-purple {
  border: 1px solid #BB86FC;
  box-shadow: 0 0 10px rgba(187,134,252,.45), inset 0 0 12px rgba(187,134,252,.06);
}
body.home-dark .neon-border-deep {
  border: 1px solid #A569FF;
  box-shadow: 0 0 10px rgba(165,105,255,.45), inset 0 0 12px rgba(165,105,255,.06);
}
body.home-dark .neon-card:hover { transform: translateY(-4px); }
body.home-dark .neon-card.neon-border-cyan:hover   { box-shadow: 0 0 22px #00D9FF, 0 0 50px rgba(0,217,255,.35); }
body.home-dark .neon-card.neon-border-purple:hover { box-shadow: 0 0 22px #BB86FC, 0 0 50px rgba(187,134,252,.35); }
body.home-dark .neon-card.neon-border-deep:hover   { box-shadow: 0 0 22px #A569FF, 0 0 50px rgba(165,105,255,.35); }

/* Animaciones */
@keyframes home-pulse-glow {
  0%, 100% { box-shadow: 0 0 10px #00D9FF, 0 0 22px rgba(0,217,255,.45); }
  50%      { box-shadow: 0 0 22px #00D9FF, 0 0 55px rgba(0,217,255,.65); }
}
@keyframes home-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.home-dark .fade-up { animation: home-fade-up .8s ease forwards; opacity: 0; }
body.home-dark .delay-1 { animation-delay: .15s; }
body.home-dark .delay-2 { animation-delay: .30s; }
body.home-dark .delay-3 { animation-delay: .45s; }
body.home-dark .delay-4 { animation-delay: .60s; }
body.home-dark .delay-5 { animation-delay: .75s; }

/* Botón neón pulsante (CTA principal del hero) */
body.home-dark .btn-neon {
  background: transparent;
  border: 2px solid #00D9FF;
  color: #00D9FF;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  animation: home-pulse-glow 2s ease-in-out infinite;
  transition: transform .2s ease, color .2s ease, background .2s ease;
  text-decoration: none;
  display: inline-block;
  font-family: 'Raleway', var(--font-body);
}
body.home-dark .btn-neon:hover {
  transform: scale(1.05);
  background: rgba(0,217,255,.10);
  color: #ffffff;
}
body.home-dark .btn-neon.disabled,
body.home-dark .btn-neon[disabled] {
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.45);
  animation: none;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* ── HERO de la home ──────────────────────────────────────────────── */
body.home-dark .home-hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}
body.home-dark .home-hero .status-tag {
  display: inline-block;
  padding: .35rem 1rem;
  border: 1px solid #BB86FC;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #BB86FC;
  box-shadow: 0 0 10px rgba(187,134,252,.40);
  margin-bottom: 1.5rem;
}
body.home-dark .home-hero h1 {
  font-family: 'Raleway', var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
}
body.home-dark .home-hero .meta {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  margin: 0 0 2.5rem;
}

/* Countdown gigante con tarjetas neón */
body.home-dark .home-countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 2.5rem;
}
body.home-dark .countdown-box {
  background: rgba(30, 20, 60, 0.55);
  border: 1px solid #00D9FF;
  box-shadow: 0 0 12px rgba(0,217,255,.30), inset 0 0 16px rgba(0,217,255,.05);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  min-width: 92px;
}
body.home-dark .countdown-box .num {
  display: block;
  font-family: 'Raleway', var(--font-mono);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #00D9FF;
  text-shadow: 0 0 12px rgba(0,217,255,.7);
  line-height: 1;
}
body.home-dark .countdown-box .lbl {
  display: block;
  margin-top: .35rem;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  font-weight: 600;
}

/* Sección título estándar */
body.home-dark .section-heading {
  font-family: 'Raleway', var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 2rem;
}

/* ── ALERTA en home oscura ────────────────────────────────────────── */
body.home-dark .alert-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #EF4444;
  box-shadow: 0 0 14px rgba(239,68,68,.30);
  color: #FCA5A5;
  backdrop-filter: blur(8px);
}

/* ── INVITADOS — cards alternando colores neón ────────────────────── */
body.home-dark .home-guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}
body.home-dark .home-guest-card {
  background: rgba(30, 20, 60, 0.55);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
body.home-dark .home-guest-card:nth-child(3n+1) { border: 1px solid #00D9FF; box-shadow: 0 0 10px rgba(0,217,255,.30); }
body.home-dark .home-guest-card:nth-child(3n+2) { border: 1px solid #BB86FC; box-shadow: 0 0 10px rgba(187,134,252,.30); }
body.home-dark .home-guest-card:nth-child(3n)   { border: 1px solid #A569FF; box-shadow: 0 0 10px rgba(165,105,255,.30); }
body.home-dark .home-guest-card:hover { transform: translateY(-4px); }
body.home-dark .home-guest-card .avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto .75rem;
  background: linear-gradient(135deg, #00D9FF 0%, #BB86FC 100%);
  display: flex; align-items: center; justify-content: center;
  color: #0f1f4f;
  font-weight: 900;
  font-size: 2rem;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0,217,255,.30);
}
body.home-dark .home-guest-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
body.home-dark .home-guest-card strong { color: #fff; font-size: 1rem; }
body.home-dark .home-guest-card small  { color: rgba(255,255,255,.65); font-size: .82rem; display: block; margin-top: .25rem; }

/* ── CRONOGRAMA — filas con borde lateral neón ───────────────────── */
body.home-dark .home-activity {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(30, 20, 60, 0.5);
  border: 1px solid rgba(187, 134, 252, 0.30);
  border-left: 3px solid #BB86FC;
  border-radius: 10px;
  margin-bottom: .75rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.home-dark .home-activity:hover {
  border-color: rgba(187, 134, 252, 0.55);
  box-shadow: 0 0 14px rgba(187,134,252,.20);
}
body.home-dark .home-activity.live {
  border-left-color: #00D9FF;
  background: rgba(0, 217, 255, 0.10);
  box-shadow: 0 0 16px rgba(0,217,255,.30);
}
body.home-dark .home-activity .time {
  font-family: 'Raleway', var(--font-mono);
  font-weight: 800;
  font-size: 1.15rem;
  color: #BB86FC;
  text-shadow: 0 0 8px rgba(187,134,252,.50);
  flex-shrink: 0;
  min-width: 60px;
}
body.home-dark .home-activity.live .time { color: #00D9FF; text-shadow: 0 0 10px rgba(0,217,255,.70); }
body.home-dark .home-activity strong { color: #fff; font-size: 1rem; }
body.home-dark .home-activity small  { color: rgba(255,255,255,.65); font-size: .82rem; display: block; margin-top: .2rem; }
body.home-dark .home-activity .live-pill {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: #00D9FF;
  color: #0f1f4f;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-left: .5rem;
  box-shadow: 0 0 10px rgba(0,217,255,.60);
}

/* ── VOTACIONES — cards con bordes neón y barras gradiente ──────── */
body.home-dark .home-vote-card {
  background: rgba(30, 20, 60, 0.55);
  border: 1px solid #BB86FC;
  box-shadow: 0 0 10px rgba(187,134,252,.30);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
body.home-dark .home-vote-card h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 1.25rem;
  font-family: 'Raleway', var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}
body.home-dark .home-vote-card .state {
  font-size: .68rem;
  font-weight: 800;
  padding: .25rem .7rem;
  border-radius: 999px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.home-dark .state.active { background: rgba(0,217,255,.15); color: #00D9FF; border: 1px solid #00D9FF; }
body.home-dark .state.paused { background: rgba(245,158,11,.15); color: #FCD34D; border: 1px solid #FCD34D; }
body.home-dark .state.closed { background: rgba(239,68,68,.15);  color: #FCA5A5; border: 1px solid #EF4444; }

body.home-dark .home-vote-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1.1rem;
  background: rgba(15, 31, 79, 0.60);
  border: 1px solid rgba(187, 134, 252, 0.30);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
  margin-bottom: .55rem;
  font-family: 'Raleway', var(--font-body);
  transition: all .2s ease;
}
body.home-dark .home-vote-btn:hover:not(:disabled) {
  border-color: #00D9FF;
  background: rgba(0,217,255,.10);
  box-shadow: 0 0 14px rgba(0,217,255,.25);
}
body.home-dark .home-vote-btn:disabled {
  cursor: not-allowed;
  color: rgba(255,255,255,.55);
}
body.home-dark .home-vote-btn.voted {
  background: rgba(0,217,255,.18);
  border-color: #00D9FF;
  color: #00D9FF;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0,217,255,.35);
}

body.home-dark .home-progress-wrap {
  background: rgba(255,255,255,.08);
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: .75rem;
  border: 1px solid rgba(255,255,255,.10);
}
body.home-dark .home-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00D9FF 0%, #BB86FC 100%);
  transition: width .8s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 12px rgba(0,217,255,.50);
}
body.home-dark .home-progress-text {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  font-family: 'Raleway', var(--font-mono);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* ── MAPA — marco neón cyan ─────────────────────────────────────── */
body.home-dark .home-map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #00D9FF;
  box-shadow: 0 0 14px rgba(0,217,255,.40), inset 0 0 12px rgba(0,217,255,.05);
  background: rgba(30, 20, 60, 0.5);
}
body.home-dark .home-map-wrap iframe { display: block; filter: hue-rotate(190deg) brightness(.85) contrast(1.05); }
body.home-dark .home-map-info {
  background: rgba(30, 20, 60, 0.55);
  border: 1px solid #BB86FC;
  box-shadow: 0 0 10px rgba(187,134,252,.30);
  border-radius: 14px;
  padding: 1.25rem;
}
body.home-dark .home-map-info h4 {
  color: #BB86FC;
  text-shadow: 0 0 8px rgba(187,134,252,.5);
  margin: 0 0 .5rem;
  font-family: 'Raleway', var(--font-display);
}
body.home-dark .home-map-info p { color: rgba(255,255,255,.78); margin: .2rem 0; }

/* ── GALERÍA — bordes neón alternados ───────────────────────────── */
body.home-dark .home-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem;
}
body.home-dark .home-gallery img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(187, 134, 252, 0.40);
  transition: transform .3s ease, box-shadow .3s ease, border-color .2s ease;
}
body.home-dark .home-gallery img:hover {
  transform: scale(1.03);
  border-color: #00D9FF;
  box-shadow: 0 0 16px rgba(0,217,255,.40);
}

/* Override de elementos legacy en home-dark (cards blancas, alert) */
body.home-dark .app-container { max-width: 1100px; }
body.home-dark .simple-card { display: none; }   /* las cards blancas viejas no se usan en la home */

/* Flash messages legibles sobre fondo oscuro */
body.home-dark .flash-success { background: rgba(16,185,129,.20); border-color: #10B981; color: #6EE7B7; }
body.home-dark .flash-danger  { background: rgba(239,68,68,.20);  border-color: #EF4444; color: #FCA5A5; }
body.home-dark .flash-info    { background: rgba(59,130,246,.20); border-color: #3B82F6; color: #93C5FD; }
body.home-dark .flash-warning { background: rgba(245,158,11,.20); border-color: #F59E0B; color: #FCD34D; }

/* ═══════════════════════════════════════════════════════════════════
   LOGIN / REGISTRO — Tema oscuro neón (body.auth-dark)
   Reusa el fondo de home-dark (radial gradients + navbar oscuro).
   ═══════════════════════════════════════════════════════════════════ */

/* Card central — fondo oscuro, borde celeste neón con glow */
body.auth-dark .auth-simple-card {
  background: rgba(30, 20, 60, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #00D9FF;
  box-shadow: 0 0 22px rgba(0,217,255,.30), 0 12px 40px rgba(0,0,0,.4), inset 0 0 12px rgba(0,217,255,.05);
  color: #ffffff;
  animation: home-fade-up .8s ease forwards;
}

body.auth-dark .auth-simple-card h2 {
  color: #ffffff;
  font-family: 'Raleway', var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin: 0 0 .5rem;
}
body.auth-dark .auth-simple-card .sub {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
}
body.auth-dark .auth-simple-card .emoji-logo {
  filter: drop-shadow(0 0 16px rgba(0,217,255,.5));
}

/* Inputs oscuros con borde neón en focus */
body.auth-dark .auth-simple-card input {
  background: rgba(15, 31, 79, 0.65);
  border: 1px solid rgba(187, 134, 252, 0.35);
  color: #ffffff;
}
body.auth-dark .auth-simple-card input::placeholder { color: rgba(255,255,255,.45); }
body.auth-dark .auth-simple-card input:focus {
  border-color: #00D9FF;
  box-shadow: 0 0 0 3px rgba(0,217,255,.20), 0 0 14px rgba(0,217,255,.25);
  background: rgba(15, 31, 79, 0.85);
}

/* Botones del login */
body.auth-dark .btn-block.primary {
  background: transparent;
  border: 2px solid #00D9FF;
  color: #00D9FF;
  font-family: 'Raleway', var(--font-body);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  animation: home-pulse-glow 2.5s ease-in-out infinite;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
body.auth-dark .btn-block.primary:hover {
  background: rgba(0,217,255,.12);
  color: #ffffff;
  transform: scale(1.02);
}

body.auth-dark .btn-block.google {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(187, 134, 252, 0.45);
  color: rgba(255,255,255,.92);
  border-radius: 999px;
  font-weight: 600;
}
body.auth-dark .btn-block.google:hover {
  background: rgba(187,134,252,.14);
  border-color: #BB86FC;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(187,134,252,.30);
}

body.auth-dark .auth-link {
  color: #BB86FC;
  text-shadow: 0 0 8px rgba(187,134,252,.40);
}
body.auth-dark .auth-link:hover { color: #00D9FF; text-shadow: 0 0 10px rgba(0,217,255,.50); }

/* Logo imagen dentro del título — reemplaza la palabra "Expokai" */
.brand-logo-text {
  height: 1.3em;
  width: auto;
  display: inline-block;
  vertical-align: -0.25em;
  filter: drop-shadow(0 0 10px rgba(0,217,255,.55)) drop-shadow(0 0 18px rgba(187,134,252,.30));
}

/* En el navbar (sobre fondo blanco) el logotipo conserva sus colores originales sin glow */
body.app-theme:not(.home-dark):not(.auth-dark) .nav-logo .brand-logo-nav {
  filter: none;
}
.brand-logo-nav {
  height: 26px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0,217,255,.45));
}
