/* =========================================================
   LAST ASYLUM GUIDES - STANDALONE STYLESHEET
   Compatible with Last-Asylum-Alliance/ui/css/style.css
   ========================================================= */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-display: 'Outfit', var(--font-sans);

  /* Base Oscura Neutra */
  --bg-primary: #090b10;
  --bg-secondary: #10131b;
  --bg-card: rgba(16, 20, 29, 0.75);
  --bg-card-hover: rgba(23, 29, 41, 0.88);
  --bg-input: #0c0f16;
  --bg-surface: rgba(16, 20, 29, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Tipografía Neutra y Limpia */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Estado y Rangos */
  --color-r5: #fbbf24;
  --color-r4: #a78bfa;
  --color-r3: #60a5fa;
  --color-r2: #94a3b8;
  --color-r1: #64748b;
  --color-online: #34d399;
  --color-offline: #64748b;
  --color-danger: #f87171;
  --color-warning: #fbbf24;

  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   PERFILES DE COLOR (DARK MODE)
   ========================================================= */

/* 1. Violet (Por Defecto) */
:root, [data-theme-color="violet"] {
  --accent: #8b5cf6;
  --accent-color: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-dim: #7c3aed;
  --accent-glow: rgba(139, 92, 246, 0.18);
  --accent-gradient: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  --color-r4: #a78bfa;
  --glow-hover: 0 12px 32px -6px rgba(139, 92, 246, 0.25), 0 0 15px rgba(124, 58, 237, 0.12);
  --bg-halo: radial-gradient(at 10% 5%, rgba(139, 92, 246, 0.08) 0px, transparent 40%),
             radial-gradient(at 90% 95%, rgba(99, 102, 241, 0.05) 0px, transparent 45%);
}

/* 2. Crimson */
[data-theme-color="crimson"] {
  --accent: #f43f5e;
  --accent-color: #f43f5e;
  --accent-light: #fb7185;
  --accent-dim: #e11d48;
  --accent-glow: rgba(244, 63, 94, 0.18);
  --accent-gradient: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  --color-r4: #fb7185;
  --glow-hover: 0 12px 32px -6px rgba(244, 63, 94, 0.25), 0 0 15px rgba(225, 29, 72, 0.12);
  --bg-halo: radial-gradient(at 10% 5%, rgba(244, 63, 94, 0.08) 0px, transparent 40%),
             radial-gradient(at 90% 95%, rgba(225, 29, 72, 0.05) 0px, transparent 45%);
}

/* 3. Cyan */
[data-theme-color="cyan"] {
  --accent: #06b6d4;
  --accent-color: #06b6d4;
  --accent-light: #22d3ee;
  --accent-dim: #0891b2;
  --accent-glow: rgba(6, 182, 212, 0.18);
  --accent-gradient: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
  --color-r4: #22d3ee;
  --glow-hover: 0 12px 32px -6px rgba(6, 182, 212, 0.25), 0 0 15px rgba(8, 145, 178, 0.12);
  --bg-halo: radial-gradient(at 10% 5%, rgba(6, 182, 212, 0.08) 0px, transparent 40%),
             radial-gradient(at 90% 95%, rgba(14, 165, 233, 0.05) 0px, transparent 45%);
}

/* 4. Amber */
[data-theme-color="amber"] {
  --accent: #f59e0b;
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dim: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.18);
  --accent-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --color-r4: #fcd34d;
  --glow-hover: 0 12px 32px -6px rgba(245, 158, 11, 0.25), 0 0 15px rgba(217, 119, 6, 0.12);
  --bg-halo: radial-gradient(at 10% 5%, rgba(245, 158, 11, 0.08) 0px, transparent 40%),
             radial-gradient(at 90% 95%, rgba(217, 119, 6, 0.05) 0px, transparent 45%);
}

/* 5. Emerald */
[data-theme-color="emerald"] {
  --accent: #10b981;
  --accent-color: #10b981;
  --accent-light: #34d399;
  --accent-dim: #059669;
  --accent-glow: rgba(16, 185, 129, 0.18);
  --accent-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --color-r4: #34d399;
  --glow-hover: 0 12px 32px -6px rgba(16, 185, 129, 0.25), 0 0 15px rgba(5, 150, 105, 0.12);
  --bg-halo: radial-gradient(at 10% 5%, rgba(16, 185, 129, 0.08) 0px, transparent 40%),
             radial-gradient(at 90% 95%, rgba(5, 150, 105, 0.05) 0px, transparent 45%);
}

/* 6. Monochrome */
[data-theme-color="monochrome"] {
  --accent: #cbd5e1;
  --accent-color: #cbd5e1;
  --accent-light: #f8fafc;
  --accent-dim: #94a3b8;
  --accent-glow: rgba(203, 213, 225, 0.18);
  --accent-gradient: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
  --color-r4: #e2e8f0;
  --glow-hover: 0 12px 32px -6px rgba(255, 255, 255, 0.18), 0 0 15px rgba(203, 213, 225, 0.1);
  --bg-halo: radial-gradient(at 10% 5%, rgba(255, 255, 255, 0.05) 0px, transparent 40%),
             radial-gradient(at 90% 95%, rgba(148, 163, 184, 0.03) 0px, transparent 45%);
}

/* =========================================================
   LIGHT MODE PALETTES
   ========================================================= */
html.light {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(248, 246, 255, 0.96);
  --bg-input: #f1f5f9;

  --bg-surface: rgba(255, 255, 255, 0.9);
  --border-subtle: rgba(0, 0, 0, 0.08);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --shadow-card: 0 8px 20px -4px rgba(0, 0, 0, 0.06);
}

html.light, html.light[data-theme-color="violet"] {
  --accent: #7c3aed;
  --accent-color: #7c3aed;
  --accent-light: #8b5cf6;
  --accent-dim: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.12);
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --glow-hover: 0 12px 28px -4px rgba(124, 58, 237, 0.18);
}

html.light[data-theme-color="crimson"] {
  --accent: #e11d48;
  --accent-color: #e11d48;
  --accent-light: #f43f5e;
  --accent-dim: #be123c;
  --accent-glow: rgba(225, 29, 72, 0.12);
  --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  --glow-hover: 0 12px 28px -4px rgba(225, 29, 72, 0.18);
}

html.light[data-theme-color="cyan"] {
  --accent: #0891b2;
  --accent-color: #0891b2;
  --accent-light: #06b6d4;
  --accent-dim: #0e7490;
  --accent-glow: rgba(8, 145, 178, 0.12);
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
  --glow-hover: 0 12px 28px -4px rgba(8, 145, 178, 0.18);
}

html.light[data-theme-color="amber"] {
  --accent: #d97706;
  --accent-color: #d97706;
  --accent-light: #f59e0b;
  --accent-dim: #b45309;
  --accent-glow: rgba(217, 119, 6, 0.12);
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  --glow-hover: 0 12px 28px -4px rgba(217, 119, 6, 0.18);
}

html.light[data-theme-color="emerald"] {
  --accent: #059669;
  --accent-color: #059669;
  --accent-light: #10b981;
  --accent-dim: #047857;
  --accent-glow: rgba(5, 150, 105, 0.12);
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --glow-hover: 0 12px 28px -4px rgba(5, 150, 105, 0.18);
}

html.light[data-theme-color="monochrome"] {
  --accent: #334155;
  --accent-color: #334155;
  --accent-light: #475569;
  --accent-dim: #1e293b;
  --accent-glow: rgba(51, 65, 85, 0.12);
  --accent-gradient: linear-gradient(135deg, #475569 0%, #1e293b 100%);
  --glow-hover: 0 12px 28px -4px rgba(51, 65, 85, 0.16);
}


/* =========================================================
   BASE STYLES
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  background-image: var(--bg-halo);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  max-width: 100vw;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.glass-panel:hover {
  box-shadow: var(--glow-hover);
  transform: translateY(-2px);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-main);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  color: var(--accent-light);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-1.5px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-live {
  background: var(--accent-glow);
  color: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-glow);
}

.badge-cached {
  background: rgba(251, 191, 36, 0.14);
  color: var(--color-warning);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.site-header {
  background: rgba(9, 11, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.3s ease;
}

html.light .site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  height: 38px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  transition: transform 0.25s ease;
}

.brand-logo:hover {
  transform: scale(1.04);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
}

.tag-badge {
  color: var(--accent-light);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.1rem;
}

.last-sync-time {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-icon {
  padding: 0.5rem;
  width: 38px;
  height: 38px;
}

.lang-dropdown {
  position: relative;
}

.flag-icon {
  width: 18px;
  height: 13.5px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 1px 3px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  display: inline-block;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 0.35rem;
  display: none;
  flex-direction: column;
  min-width: 140px;
  z-index: 110;
  animation: fadeIn 0.15s ease-out;
}

.lang-menu.show {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: background-color 0.15s ease;
}

.lang-option:hover {
  background: var(--bg-card-hover);
  color: var(--accent-light);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   EXACT GUIDES MODULE (Direct copy-paste compatibility)
   ========================================================= */
/* =========================================================
   SECCIÓN: GUÍAS Y MANUALES
   ========================================================= */
.guides-section {
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.guides-header {
  margin-bottom: 1.25rem;
}

.guides-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-subtle, rgba(168, 85, 247, 0.15));
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}

.guides-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.25rem 0;
}

.guides-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.guides-category-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.guide-card {
  padding: 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  gap: 0.85rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.guide-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.guide-card-body {
  flex: 1;
  min-width: 0;
}

.guide-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.guide-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

.guide-read-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.guide-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.guide-card-snippet {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0 0 0.65rem 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.45rem;
}

.guide-card-featured {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-card) 60%);
}

.guide-card-featured:hover {
  border-color: #ef4444;
  box-shadow: 0 8px 26px rgba(239, 68, 68, 0.25);
}

.guide-open-btn {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
}

/* =========================================================
   MODAL / HOJA DE DETALLE DEL REY DEMONIO
   ========================================================= */
.guide-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* En móvil sube como bottom-sheet */
  padding: 0;
  animation: fadeInModal 0.2s ease-out forwards;
}

@media (min-width: 769px) {
  .guide-modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }
}

.guide-modal-sheet {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  animation: slideUpSheet 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (min-width: 769px) {
  .guide-modal-sheet {
    border-radius: 18px;
    max-height: 85vh;
    animation: fadeInModal 0.2s ease-out forwards;
  }
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.guide-sheet-header {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

.guide-sheet-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ef4444;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.guide-sheet-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.guide-sheet-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-modal-share {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-modal-share:hover {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(99, 102, 241, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-modal-share.copied {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.6);
  color: #86efac;
}

.btn-modal-share .share-icon {
  flex-shrink: 0;
}

/* Floating Toast Notification */
.app-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(99, 102, 241, 0.45);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.7), 0 0 18px rgba(99, 102, 241, 0.3);
  color: #f8fafc;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.app-toast-icon {
  color: #4ade80;
  font-weight: 800;
  font-size: 1.05rem;
}

.guide-sheet-body {
  padding: 1.2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Card de preparación obligatoria */
.boss-prep-card {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.09) 0%, rgba(239, 68, 68, 0.08) 100%);
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.prep-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.prep-icon {
  font-size: 1.2rem;
}

.prep-header h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fde047;
  margin: 0;
}

.prep-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prep-checklist li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.prep-checklist .chk-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.prep-checklist strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

.boss-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
}

/* Pestañas de selección de los 3 reyes */
.boss-tabs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.boss-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.5rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.boss-tab-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
}

.boss-tab-btn.active {
  background: rgba(239, 68, 68, 0.14);
  border-color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}

.boss-tab-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 0.4rem;
  transition: transform 0.2s ease;
}

.boss-tab-btn.active .boss-tab-thumb {
  border-color: #ef4444;
  transform: scale(1.06);
}

.boss-tab-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.boss-tab-role {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.boss-tab-btn.active .boss-tab-role {
  color: #fca5a5;
}

.boss-tab-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

/* Tarjeta de Detalle del Jefe */
.boss-detail-card {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  overflow: hidden;
  animation: fadeInView 0.25s ease-out;
}

.boss-banner-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.boss-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.boss-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.boss-banner-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.boss-banner-badge.warrior {
  background: rgba(239, 68, 68, 0.28);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.boss-banner-badge.ranger {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.boss-banner-badge.warlock {
  background: rgba(168, 85, 247, 0.28);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.boss-banner-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.boss-advantage-banner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  margin: 0.75rem 0.75rem 0 0.75rem;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.82rem;
  color: #86efac;
}

.boss-advantage-banner .adv-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.boss-advantage-banner strong {
  color: #ffffff;
}

.boss-lineup-box {
  padding: 0.85rem 1.15rem 1rem;
}

.lineup-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.lineup-icon {
  font-size: 1.1rem;
}

.lineup-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.hero-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.6rem 0.4rem 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.hero-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-mini-card.is-dd {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.hero-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: 0.35rem;
  border-radius: 10px;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  display: block;
}

.hero-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.hero-avatar-fallback.tank { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.hero-avatar-fallback.dd { background: linear-gradient(135deg, #7f1d1d, #ef4444); }
.hero-avatar-fallback.sup { background: linear-gradient(135deg, #064e3b, #10b981); }

/* Значок перчатки на ДД */
.hero-glove-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.65rem;
  background: #a855f7;
  color: #ffffff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: help;
}

.hero-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hero-card-meta {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 700;
}

.hero-card-class {
  color: var(--text-muted);
}

.hero-card-role {
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.6rem;
}

.hero-card-role.dd {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.18);
}

.hero-card-role.tank {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.18);
}

.hero-card-role.sup {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
}

.hero-card-role.hybrid {
  color: #fde047;
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.lineup-summary-text {
  font-size: 0.92rem;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #ef4444;
  padding: 0.6rem 0.85rem;
  border-radius: 0 8px 8px 0;
}

/* =========================================================
   GUÍA: ELIXIR SCRAMBLE (GONKA ZA ELIXIR)
   ========================================================= */

/* Hero Banner dentro del modal */
.elixir-hero-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  box-shadow: 0 8px 24px -6px rgba(168, 85, 247, 0.25);
}

.elixir-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.25;
  filter: blur(1px);
}

.elixir-hero-content {
  position: relative;
  z-index: 2;
}

.elixir-hero-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.elixir-badge-soul {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.elixir-badge-event {
  background: rgba(255, 255, 255, 0.12);
  color: #e9d5ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.elixir-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.elixir-hero-motto {
  font-size: 0.82rem;
  color: #d8b4fe;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Selector de pestañas del Elixir */
.elixir-tabs-row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
}

.elixir-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.elixir-tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: rgba(168, 85, 247, 0.4);
}

.elixir-tab-btn.active {
  background: rgba(168, 85, 247, 0.18);
  border-color: #a855f7;
  color: #f3e8ff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}

.elixir-tab-btn .tab-icon {
  font-size: 1rem;
}

/* Tarjetas y Bloques de Información */
.elixir-panel {
  animation: fadeInView 0.22s ease-out;
}

.elixir-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1.15rem;
}

.elixir-card-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.elixir-card-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.elixir-card-icon {
  font-size: 1.2rem;
}

/* Caja de alerta crítica: Barracks death */
.elixir-warning-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(245, 158, 11, 0.09) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1.15rem;
  position: relative;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.12);
}

.elixir-warning-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  color: #fca5a5;
  font-weight: 800;
  font-size: 0.95rem;
}

.elixir-warning-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #fecaca;
  margin: 0;
}

/* Grid de configuración de escuadrones */
.elixir-squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.elixir-squad-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem;
}

.elixir-squad-col.top-tier {
  border-color: rgba(234, 179, 8, 0.35);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.elixir-squad-col.midlow-tier {
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.elixir-col-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.45rem;
}

.elixir-col-badge.gold {
  background: rgba(234, 179, 8, 0.22);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.elixir-col-badge.purple {
  background: rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.elixir-squad-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.elixir-tags-cluster {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.elixir-pill-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.elixir-pill-tag.accent {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
}

/* Lista de Defensa */
.elixir-defense-rule-box {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  margin-top: 0.65rem;
  font-size: 0.83rem;
  line-height: 1.45;
}

.elixir-defense-rule-box strong {
  color: #f3e8ff;
  display: block;
  margin-bottom: 0.25rem;
}

.elixir-defense-rule-box span {
  color: #d8b4fe;
}

.elixir-defense-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.elixir-defense-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.elixir-defense-item.low {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
}

.elixir-defense-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.elixir-defense-badge.top { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.elixir-defense-badge.mid { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.elixir-defense-badge.low { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }

/* Banner de objetivo principal */
.elixir-goal-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.16) 0%, rgba(59, 130, 246, 0.12) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1.15rem;
}

.elixir-goal-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  color: #e9d5ff;
  font-size: 0.95rem;
  font-weight: 800;
}

.elixir-goal-desc {
  font-size: 0.86rem;
  color: #f1f5f9;
  line-height: 1.5;
  margin: 0;
}

/* Prioridad de Edificios (1 a 5) */
.elixir-priority-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.elixir-priority-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.elixir-priority-card:hover {
  transform: translateX(3px);
}

.elixir-priority-card.p1 {
  border-color: rgba(234, 179, 8, 0.45);
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.elixir-priority-card.p2 {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.elixir-priority-card.p3 {
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.elixir-priority-rank {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

.elixir-priority-card.p1 .elixir-priority-rank { background: #eab308; color: #000; box-shadow: 0 0 10px rgba(234, 179, 8, 0.5); }
.elixir-priority-card.p2 .elixir-priority-rank { background: #22c55e; color: #000; box-shadow: 0 0 10px rgba(34, 197, 94, 0.4); }
.elixir-priority-card.p3 .elixir-priority-rank { background: #a855f7; color: #fff; box-shadow: 0 0 10px rgba(168, 85, 247, 0.4); }
.elixir-priority-card.p4 .elixir-priority-rank { background: #3b82f6; color: #fff; }
.elixir-priority-card.p5 .elixir-priority-rank { background: rgba(255, 255, 255, 0.1); color: var(--text-dim); }

.elixir-priority-info {
  flex: 1;
}

.elixir-priority-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.elixir-priority-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.elixir-priority-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.elixir-priority-card.p1 .elixir-priority-tag { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.elixir-priority-card.p2 .elixir-priority-tag { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.elixir-priority-card.p3 .elixir-priority-tag { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }
.elixir-priority-card.p4 .elixir-priority-tag { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.elixir-priority-card.p5 .elixir-priority-tag { background: rgba(255, 255, 255, 0.1); color: var(--text-dim); }

.elixir-priority-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}

/* Grid de Roles de Batalla (4 roles) */
.elixir-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.elixir-role-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.elixir-role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
}

.elixir-role-card.gate-watcher {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-card) 60%);
}

.elixir-role-card.top-experienced {
  border-color: rgba(234, 179, 8, 0.35);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.08) 0%, var(--bg-card) 60%);
}

.elixir-role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.elixir-role-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.elixir-role-badge.red { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.elixir-role-badge.gold { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.elixir-role-badge.blue { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.elixir-role-badge.green { background: rgba(34, 197, 94, 0.2); color: #86efac; }

.elixir-role-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.4rem 0;
}

.elixir-role-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}

/* Situaciones especiales y chat */
.elixir-situations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.elixir-situation-item {
  padding: 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.elixir-situation-item strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.elixir-situation-item p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}

/* Caja de disciplina de chat */
.elixir-chat-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

.elixir-chat-signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.elixir-signal-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
}

.elixir-code-badge {
  font-family: monospace;
  font-weight: 700;
  color: #fde047;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Banner lema SOUL */
.elixir-motto-banner {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(88, 28, 135, 0.35) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
  margin-top: 1.25rem;
}

.elixir-motto-text {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.7);
  margin: 0;
  line-height: 1.4;
}

/* Galería de Infografías */
.elixir-infographics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.15rem;
}

.elixir-infographic-card {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

.elixir-infographic-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px -4px rgba(168, 85, 247, 0.3);
}

.elixir-infographic-header {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

.elixir-infographic-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.elixir-infographic-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-light);
  background: rgba(168, 85, 247, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

.elixir-infographic-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #000;
  position: relative;
  overflow: hidden;
}

.elixir-infographic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease;
}

.elixir-infographic-card:hover .elixir-infographic-img {
  transform: scale(1.02);
}

.elixir-infographic-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.elixir-infographic-card:hover .elixir-infographic-overlay {
  opacity: 1;
}

.elixir-zoom-btn {
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* Lightbox Modal para ver infografías en pantalla completa */
.guide-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
  animation: fadeInModal 0.2s ease-out;
}

.guide-lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  cursor: default;
}

.guide-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.guide-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s ease;
}

.guide-lightbox-close:hover {
  transform: scale(1.1);
  background: #334155;
}

/* =========================================================


/* =========================================================
   STANDALONE GUIDES LAYOUT & HERO
   ========================================================= */
.guides-hero {
  padding: 2.5rem 0 1.5rem 0;
  text-align: center;
}

.guides-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle, rgba(168, 85, 247, 0.14));
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.guides-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  margin: 0 0 0.6rem 0;
}

.guides-hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--accent-light);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

