/**
 * SPE Lleida Portada Moderna — Sistema de Diseño Ultra-Moderno
 * Societat de Pescadors Esportius de Lleida (Desde 1949 - 75º Aniversario)
 */

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

:root {
  --ll-bg-deep: #030a14;
  --ll-bg-card: rgba(10, 25, 47, 0.72);
  --ll-bg-card-hover: rgba(14, 38, 70, 0.85);
  --ll-glass-border: rgba(56, 189, 248, 0.18);
  --ll-glass-glow: rgba(14, 165, 233, 0.35);
  
  --ll-primary: #0ea5e9;
  --ll-primary-glow: #38bdf8;
  --ll-secondary: #06b6d4;
  --ll-accent-gold: #f59e0b;
  --ll-gold-glow: #fbbf24;
  --ll-paeria-red: #e11d48;
  
  --ll-text-light: #f8fafc;
  --ll-text-muted: #94a3b8;
  --ll-text-dim: #64748b;
  
  --ll-radius-sm: 8px;
  --ll-radius-md: 14px;
  --ll-radius-lg: 20px;
  --ll-radius-xl: 28px;
  --ll-radius-pill: 9999px;
  
  --ll-shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--ll-glass-border);
  --ll-shadow-glow: 0 0 25px rgba(14, 165, 233, 0.25);
  --ll-shadow-gold: 0 0 25px rgba(245, 158, 11, 0.25);
  
  --ll-font-title: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ll-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ll-transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET CRÍTICO (Seguro para la portada y la cabecera en toda la web) */
.spelleida-page *,
.spelleida-page *::before,
.spelleida-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.spelleida-header,
.spelleida-header *,
.spelleida-header *::before,
.spelleida-header *::after,
.spelleida-drawer,
.spelleida-drawer *,
.spelleida-drawer *::before,
.spelleida-drawer *::after {
  box-sizing: border-box;
}

html.spelleida-html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--ll-bg-deep);
}

body.spelleida-page {
  font-family: var(--ll-font-body);
  background-color: var(--ll-bg-deep);
  color: var(--ll-text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#spelleida-portal {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

/* GRADIENT TEXT & UTILITIES */
.spelleida-text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spelleida-text-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spelleida-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.spelleida-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px auto;
}

.spelleida-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--ll-radius-pill);
  color: var(--ll-primary-glow);
  font-family: var(--ll-font-title);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.spelleida-badge-gold {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--ll-gold-glow);
}

.spelleida-badge-paeria {
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

.spelleida-section-title {
  font-family: var(--ll-font-title);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #ffffff;
}

.spelleida-section-lead {
  font-size: 1.125rem;
  color: var(--ll-text-muted);
  line-height: 1.7;
}

/* ==========================================================
   1. NAVBAR & HEADER
   ========================================================== */
.spelleida-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--ll-transition);
  background: rgba(3, 10, 20, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spelleida-header.scrolled {
  height: 72px;
  background: rgba(3, 10, 20, 0.95);
  border-bottom-color: var(--ll-glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.spelleida-header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

.spelleida-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
  white-space: nowrap !important;
  margin-right: 8px !important;
}

.spelleida-logo-img {
  height: 46px !important;
  max-width: 180px !important;
  width: auto !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) !important;
  transition: transform 0.25s ease !important;
}

.spelleida-brand:hover .spelleida-logo-img {
  transform: scale(1.04) !important;
}

.spelleida-brand-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.spelleida-brand-title {
  font-family: var(--ll-font-title) !important;
  font-weight: 800 !important;
  font-size: 1.08rem !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.spelleida-brand-sub {
  font-size: 0.66rem !important;
  color: var(--ll-primary-glow) !important;
  letter-spacing: 0.04em !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.spelleida-nav {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

.spelleida-nav-link {
  color: var(--ll-text-muted) !important;
  text-decoration: none !important;
  font-family: var(--ll-font-title) !important;
  font-size: 0.83rem !important;
  font-weight: 600 !important;
  transition: color 0.2s ease, opacity 0.2s ease !important;
  position: relative !important;
  padding: 5px 4px !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
}

.spelleida-nav-link:hover,
.spelleida-nav-link.active {
  color: #ffffff !important;
}

.spelleida-nav-link.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 4px !important;
  right: 4px !important;
  height: 2px !important;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8) !important;
  border-radius: 2px !important;
}

.spelleida-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.spelleida-dropdown-btn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 5px 4px !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  color: var(--ll-text-muted) !important;
  font-family: var(--ll-font-title) !important;
  font-size: 0.83rem !important;
  font-weight: 600 !important;
}

.spelleida-dropdown-btn:hover,
.spelleida-dropdown-btn.spelleida-user-active {
  color: #ffffff !important;
}

.spelleida-dropdown-btn:focus,
.spelleida-dropdown-btn:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.spelleida-user-nav-text {
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
  display: inline-block;
  vertical-align: middle;
}

.spelleida-user-active {
  color: #ffffff;
}

.spelleida-nav-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.spelleida-chevron {
  font-size: 0.60rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
  opacity: 0.75;
  margin-left: 2px;
}

.spelleida-nav-dropdown:hover .spelleida-chevron,
.spelleida-nav-dropdown.open .spelleida-chevron {
  transform: rotate(180deg);
  color: var(--ll-accent-gold);
  opacity: 1;
}

.spelleida-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 290px;
  background: rgba(11, 20, 38, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.75), 0 0 20px rgba(30, 64, 175, 0.25);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 1000;
}

/* Puente invisible para mantener el hover */
.spelleida-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.spelleida-nav-dropdown:hover .spelleida-dropdown-panel,
.spelleida-nav-dropdown.open .spelleida-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.spelleida-dropdown-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.spelleida-badge-gold-sm {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ll-accent-gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}

.spelleida-user-role-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

.spelleida-dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.spelleida-user-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ll-primary), var(--ll-accent-gold));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4);
  flex-shrink: 0;
}

.spelleida-user-header-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.spelleida-user-display-name {
  font-family: var(--ll-font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spelleida-dropdown-guest-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
}

.spelleida-guest-avatar-icon {
  font-size: 1.6rem;
}

.spelleida-guest-title {
  font-family: var(--ll-font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.spelleida-guest-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.spelleida-dropdown-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}

.spelleida-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spelleida-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #cbd5e1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  cursor: pointer;
}

.spelleida-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(4px);
}

.spelleida-dropdown-item-primary {
  background: rgba(29, 78, 216, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.spelleida-dropdown-item-primary:hover {
  background: rgba(29, 78, 216, 0.3);
  color: #ffffff;
}

.spelleida-dropdown-item-special {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.spelleida-dropdown-item-special:hover {
  background: rgba(251, 191, 36, 0.18);
  color: #ffffff;
}

.spelleida-dropdown-item-danger {
  color: #f87171;
}

.spelleida-dropdown-item-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.spelleida-dropdown-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.spelleida-dropdown-bullet {
  font-size: 0.75rem;
  color: var(--ll-primary-glow);
}

.spelleida-dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.spelleida-dropdown-item-title {
  font-family: var(--ll-font-title);
  font-weight: 600;
  font-size: 0.88rem;
  color: inherit;
  line-height: 1.25;
}

.spelleida-dropdown-item-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.2;
}

.spelleida-dropdown-item:hover .spelleida-dropdown-item-desc {
  color: #cbd5e1;
}


/* RESET RIGUROSO CONTRA BORDES ROJOS/MAGENTA DE HELLO ELEMENTOR Y OTROS TEMAS */
.spelleida-header button,
.spelleida-header button:focus,
.spelleida-header button:active,
.spelleida-header a.spelleida-btn,
.spelleida-header a.spelleida-btn:focus,
.spelleida-drawer button,
.spelleida-drawer button:focus,
.spelleida-drawer a.spelleida-btn {
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  text-decoration: none !important;
}

.spelleida-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

/* LANGUAGE SELECTOR */
.spelleida-lang-selector {
  position: relative !important;
  flex-shrink: 0 !important;
}

.spelleida-lang-btn {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--ll-radius-pill) !important;
  color: #ffffff !important;
  font-family: var(--ll-font-title) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: var(--ll-transition) !important;
  white-space: nowrap !important;
  outline: none !important;
  box-shadow: none !important;
}

.spelleida-lang-btn:hover {
  background: rgba(14, 165, 233, 0.15) !important;
  border-color: var(--ll-primary-glow) !important;
  color: #ffffff !important;
}

.spelleida-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #091729;
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-md);
  padding: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 155px;
  z-index: 1100;
}

.spelleida-lang-menu.open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 999999 !important;
  animation: spelleidaFadeSlide 0.2s ease forwards;
}

.spelleida-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--ll-radius-sm);
  background: transparent;
  border: none;
  color: var(--ll-text-muted);
  font-family: var(--ll-font-title);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--ll-transition);
}

.spelleida-lang-item:hover,
.spelleida-lang-item.active {
  background: rgba(14, 165, 233, 0.15);
  color: #ffffff;
}

.spelleida-lang-item.active {
  font-weight: 800;
  color: var(--ll-primary-glow);
}

/* BUTTONS */
.spelleida-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--ll-font-title);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--ll-radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: var(--ll-transition);
  border: none;
  white-space: nowrap;
}

.spelleida-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #06b6d4 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35) !important;
}

.spelleida-btn-primary span {
  color: #ffffff !important;
}

.spelleida-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5) !important;
  color: #ffffff !important;
}

.spelleida-btn-gold {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  color: #030a14;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.spelleida-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
  color: #000000;
}

.spelleida-btn-outline {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.spelleida-btn-outline:hover {
  background: rgba(14, 165, 233, 0.15) !important;
  border-color: var(--ll-primary-glow) !important;
  transform: translateY(-2px);
  color: #ffffff !important;
}

.spelleida-btn-danger {
  background: rgba(220, 38, 38, 0.2) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(220, 38, 38, 0.5) !important;
  border-radius: var(--ll-radius-pill) !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spelleida-btn-danger:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.45) !important;
  transform: translateY(-2px);
}

.spelleida-admin-concursos-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(135deg, rgba(14, 30, 54, 0.95), rgba(8, 18, 36, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: var(--ll-radius-lg);
  padding: 14px 20px;
  margin-bottom: 24px;
}

.spelleida-admin-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ll-accent-gold);
  font-family: var(--ll-font-title);
  font-weight: 700;
  font-size: 0.92rem;
}

.spelleida-admin-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: spelleidaAdminPulse 2s infinite;
}

@keyframes spelleidaAdminPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.spelleida-btn-header {
  padding: 8px 16px !important;
  font-size: 0.84rem !important;
}

.spelleida-header .spelleida-cta-text-short {
  display: none;
}

.spelleida-burger {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--ll-radius-sm) !important;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: var(--ll-transition);
  flex-shrink: 0 !important;
}

.spelleida-burger:hover {
  background: rgba(14, 165, 233, 0.18) !important;
  border-color: var(--ll-primary-glow) !important;
}

.spelleida-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff !important;
  border-radius: 2px;
  transition: var(--ll-transition);
}

/* ==========================================================
   ADAPTABILIDAD RESPONSIVA DE LA CABECERA GLOBAL
   ========================================================== */
/* En ordenadores y pantallas de escritorio (>= 992px): NUNCA mostrar menú hamburguesa */
@media (min-width: 992px) {
  .spelleida-burger {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 1360px) {
  .spelleida-nav-item-secondary {
    display: none !important;
  }
  .spelleida-header-wa {
    display: none !important;
  }
  .spelleida-nav {
    gap: 5px !important;
  }
  .spelleida-nav-link {
    font-size: 0.80rem !important;
    padding: 5px 3px !important;
  }
}

/* En ordenadores con resolución compacta (1000px - 1180px), optimizar espaciado del menú */
@media (max-width: 1180px) and (min-width: 992px) {
  .spelleida-nav {
    gap: 4px !important;
  }
  .spelleida-nav-link {
    font-size: 0.77rem !important;
    padding: 4px 2px !important;
  }
  .spelleida-brand-sub {
    display: none !important;
  }
}

/* Solo en dispositivos MÓVILES y tablets compactas (<= 991px): Ocultar menú de escritorio y mostrar menú hamburguesa */
@media (max-width: 991px) {
  .spelleida-nav {
    display: none !important;
  }
  .spelleida-burger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .spelleida-header-actions {
    gap: 8px !important;
  }
}

@media (max-width: 900px) {
  .spelleida-header .spelleida-cta-text-full {
    display: none !important;
  }
  .spelleida-header .spelleida-cta-text-short {
    display: inline !important;
  }
  .spelleida-header .spelleida-header-cta {
    padding: 7px 12px !important;
    font-size: 0.80rem !important;
  }
}

@media (max-width: 580px) {
  .spelleida-header .spelleida-header-cta {
    display: none !important;
  }
  .spelleida-brand-sub {
    display: none !important;
  }
  .spelleida-brand-title {
    font-size: 0.96rem !important;
  }
  .spelleida-logo-img {
    height: 38px !important;
    max-width: 140px !important;
    width: auto !important;
    object-fit: contain !important;
  }
}

/* ==========================================================
   2. HERO SECTION WITH ORIGINAL VIDEO BACKGROUND
   ========================================================== */
.spelleida-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px 0;
  overflow: hidden;
}

.spelleida-hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.spelleida-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.52;
}

.spelleida-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(3, 10, 20, 0.75) 0%,
    rgba(3, 10, 20, 0.5) 40%,
    rgba(3, 10, 20, 0.85) 85%,
    var(--ll-bg-deep) 100%
  );
  z-index: 2;
}

.spelleida-hero-content {
  position: relative;
  z-index: 3;
  max-width: 980px;
}

.spelleida-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.spelleida-hero-title {
  font-family: var(--ll-font-title);
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.spelleida-hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #cbd5e1;
  line-height: 1.68;
  max-width: 820px;
  margin-bottom: 36px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.spelleida-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.spelleida-hero-video-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(3, 10, 20, 0.65);
  border: 1px solid var(--ll-glass-border);
  backdrop-filter: blur(12px);
  padding: 8px 18px;
  border-radius: var(--ll-radius-pill);
  margin-bottom: 45px;
}

.spelleida-hero-ctrl-btn {
  background: none;
  border: none;
  color: var(--ll-text-light);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--ll-font-title);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--ll-transition);
}

.spelleida-hero-ctrl-btn:hover {
  color: var(--ll-primary-glow);
}

/* HERO STATS BAR */
.spelleida-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 3;
  margin-top: 20px;
}

.spelleida-stat-card {
  background: var(--ll-bg-card);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-lg);
  padding: 24px 20px;
  backdrop-filter: blur(16px);
  transition: var(--ll-transition);
  position: relative;
  overflow: hidden;
}

.spelleida-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--ll-primary), var(--ll-accent-gold));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spelleida-stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--ll-primary-glow);
  box-shadow: var(--ll-shadow-glow);
}

.spelleida-stat-card:hover::before {
  opacity: 1;
}

.spelleida-stat-num {
  font-family: var(--ll-font-title);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  color: #ffffff;
}

.spelleida-stat-label {
  font-size: 0.88rem;
  color: var(--ll-text-muted);
  font-weight: 500;
  line-height: 1.35;
}

/* ==========================================================
   3. PILLAR 1: ESCUELAS DE PESCA (MUNICIPAL & SOCIEDAD)
   ========================================================== */
.spelleida-schools-section {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(180deg, var(--ll-bg-deep) 0%, #071526 50%, var(--ll-bg-deep) 100%);
}

.spelleida-schools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 50px;
}

.spelleida-school-card {
  background: var(--ll-bg-card);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-xl);
  padding: 40px 36px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--ll-transition);
}

.spelleida-school-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), var(--ll-shadow-glow);
  border-color: rgba(56, 189, 248, 0.45);
}

.spelleida-school-card.municipal {
  border-top: 4px solid var(--ll-paeria-red);
}

.spelleida-school-card.sociedad {
  border-top: 4px solid var(--ll-accent-gold);
}

.spelleida-school-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.spelleida-school-icon {
  font-size: 2.2rem;
}

.spelleida-school-partner-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 10px;
  border-radius: var(--ll-radius-sm);
}

.spelleida-school-title {
  font-family: var(--ll-font-title);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #ffffff;
  line-height: 1.2;
}

.spelleida-school-desc {
  font-size: 1rem;
  color: var(--ll-text-muted);
  line-height: 1.68;
  margin-bottom: 26px;
}

.spelleida-school-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.spelleida-school-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: #e2e8f0;
}

.spelleida-feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(14, 165, 233, 0.2);
  color: var(--ll-primary-glow);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.spelleida-school-card.sociedad .spelleida-feature-check {
  background: rgba(245, 158, 11, 0.2);
  color: var(--ll-gold-glow);
}

/* VIDEO EMBED SHOWCASE OF THE SCHOOL */
.spelleida-school-video-box {
  background: var(--ll-bg-card);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-xl);
  padding: 30px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 30px;
  backdrop-filter: blur(18px);
}

.spelleida-video-player-container {
  position: relative;
  border-radius: var(--ll-radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--ll-glass-border);
  aspect-ratio: 16 / 9;
  background: #000;
}

.spelleida-video-player-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spelleida-video-box-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spelleida-video-box-title {
  font-family: var(--ll-font-title);
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
}

.spelleida-video-box-desc {
  font-size: 0.98rem;
  color: var(--ll-text-muted);
  line-height: 1.65;
}

/* ==========================================================
   4. PILLAR 2: CALENDARIO DE CONCURSOS (PREFERENTIAL SPOT)
   ========================================================== */
.spelleida-calendar-section {
  padding: 100px 0;
  position: relative;
  background: #040e1c;
}

.spelleida-cal-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.spelleida-cal-filter-btn {
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-pill);
  color: var(--ll-text-muted);
  font-family: var(--ll-font-title);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ll-transition);
}

.spelleida-cal-filter-btn:hover,
.spelleida-cal-filter-btn.active {
  background: var(--ll-primary);
  border-color: var(--ll-primary-glow);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.spelleida-calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 40px;
}

.spelleida-event-card {
  background: var(--ll-bg-card);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-lg);
  overflow: hidden;
  transition: var(--ll-transition);
  display: flex;
  flex-direction: column;
}

.spelleida-event-card:hover {
  transform: translateY(-6px);
  border-color: var(--ll-primary-glow);
  box-shadow: var(--ll-shadow-card);
}

.spelleida-event-poster-wrap {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
  background: radial-gradient(circle at center, #0f2b4c 0%, #030a14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.spelleida-event-poster {
  width: 100%;
  height: 100%;
  max-height: 274px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease;
}

.spelleida-event-card:hover .spelleida-event-poster {
  transform: scale(1.02);
}

.spelleida-event-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  background: rgba(3, 10, 20, 0.85);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ll-primary-glow);
  backdrop-filter: blur(8px);
}

.spelleida-event-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.spelleida-event-date-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ll-accent-gold);
  font-family: var(--ll-font-title);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.spelleida-event-title {
  font-family: var(--ll-font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.spelleida-event-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ll-text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.spelleida-event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spelleida-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

/* GESPESCAT SYNC BANNER */
.spelleida-gespescat-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-xl);
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(14px);
}

.spelleida-gespescat-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.spelleida-gespescat-icon {
  font-size: 2.6rem;
}

.spelleida-gespescat-text h4 {
  font-family: var(--ll-font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.spelleida-gespescat-text p {
  color: var(--ll-text-muted);
  font-size: 0.94rem;
}

.spelleida-gespescat-embed-wrap {
  margin-top: 36px;
  background: rgba(9, 23, 41, 0.95);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-xl);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.spelleida-gespescat-frame-box {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.spelleida-gespescat-frame-box iframe {
  width: 100%;
  height: 800px;
  min-height: 800px;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .spelleida-gespescat-embed-wrap {
    padding: 16px;
  }
  .spelleida-gespescat-frame-box iframe {
    height: 600px;
    min-height: 600px;
  }
}

/* ==========================================================
   5. 75º ANIVERSARIO & HISTORIA (ARRELS ESPORTIVES - TV3)
   ========================================================== */
.spelleida-history-section {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(180deg, var(--ll-bg-deep) 0%, #0a1b32 50%, var(--ll-bg-deep) 100%);
}

.spelleida-history-card {
  background: var(--ll-bg-card);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--ll-radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--ll-shadow-gold);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.spelleida-history-card::after {
  content: '75';
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-family: var(--ll-font-title);
  font-size: 16rem;
  font-weight: 900;
  color: rgba(245, 158, 11, 0.04);
  pointer-events: none;
  line-height: 1;
}

.spelleida-history-content h3 {
  font-family: var(--ll-font-title);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 18px;
}

.spelleida-history-content p {
  font-size: 1.05rem;
  color: var(--ll-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.spelleida-history-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.spelleida-trophy-badge {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.05) 70%);
  border: 2px dashed rgba(251, 191, 36, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  animation: spelleidaFloat 4s ease-in-out infinite;
}

/* ==========================================================
   6. CUOTAS & HAZTE SOCIO
   ========================================================== */
.spelleida-cuotas-section {
  padding: 100px 0;
  position: relative;
  background: #040e1c;
}

.spelleida-cuotas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 45px;
}

.spelleida-cuota-card {
  background: var(--ll-bg-card);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-lg);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: var(--ll-transition);
  position: relative;
  backdrop-filter: blur(16px);
}

.spelleida-cuota-card:hover {
  transform: translateY(-8px);
  border-color: var(--ll-primary-glow);
  box-shadow: var(--ll-shadow-glow);
}

.spelleida-cuota-card.popular {
  border-color: var(--ll-accent-gold);
  background: rgba(15, 38, 70, 0.85);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

.spelleida-cuota-pop-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #030a14;
  font-family: var(--ll-font-title);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--ll-radius-pill);
}

.spelleida-cuota-name {
  font-family: var(--ll-font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.spelleida-cuota-age {
  font-size: 0.85rem;
  color: var(--ll-text-muted);
  margin-bottom: 20px;
}

.spelleida-cuota-price {
  font-family: var(--ll-font-title);
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
}

.spelleida-cuota-period {
  font-size: 0.85rem;
  color: var(--ll-text-dim);
  margin-bottom: 22px;
}

.spelleida-cuota-note {
  font-size: 0.88rem;
  color: var(--ll-text-muted);
  line-height: 1.5;
  margin-bottom: 26px;
  flex: 1;
}

/* ==========================================================
   7. PATROCINADORES & COLABORADORES
   ========================================================== */
.spelleida-sponsors-section {
  padding: 70px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #030811;
}

.spelleida-sponsors-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.spelleida-sponsor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  opacity: 0.85;
  transition: var(--ll-transition);
}

.spelleida-sponsor-item:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.spelleida-sponsor-img {
  height: 60px;
  max-width: 180px;
  object-fit: contain;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: var(--ll-radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.spelleida-sponsor-caption {
  font-size: 0.78rem;
  color: var(--ll-text-dim);
  font-weight: 500;
}

/* ==========================================================
   8. FOOTER INSTITUCIONAL
   ========================================================== */
.spelleida-footer {
  padding: 80px 0 30px 0;
  background: #02060c;
  color: var(--ll-text-muted);
  font-size: 0.94rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.spelleida-footer-brand p {
  margin-top: 14px;
  color: var(--ll-text-dim);
  line-height: 1.65;
  max-width: 320px;
}

.spelleida-footer-col h4 {
  font-family: var(--ll-font-title);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

.spelleida-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spelleida-footer-links a {
  color: var(--ll-text-muted);
  text-decoration: none;
  transition: var(--ll-transition);
}

.spelleida-footer-links a:hover {
  color: var(--ll-primary-glow);
  padding-left: 4px;
}

.spelleida-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--ll-text-dim);
}

/* ==========================================================
   9. CHATBOT INTERACTIVO (LLEIDABOT)
   ========================================================== */
.spelleida-chatbot-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  z-index: 99998 !important;
}

.spelleida-chatbot-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  transition: var(--ll-transition);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto !important;
}

.spelleida-chatbot-trigger * {
  pointer-events: none !important;
}

.spelleida-chatbot-trigger:hover {
  transform: scale(1.08);
}

.spelleida-chatbot-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--ll-primary-glow, #38bdf8);
  animation: spelleidaPulse 2.2s infinite;
  pointer-events: none !important;
}

.spelleida-chat-window {
  position: absolute;
  bottom: 75px;
  left: 0;
  right: auto;
  width: 380px;
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #091729;
  border: 1px solid var(--ll-glass-border, rgba(255, 255, 255, 0.1));
  border-radius: var(--ll-radius-xl, 16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(24px);
  z-index: 99999 !important;
}

.spelleida-chat-window.open,
.spelleida-chat-window.active,
.spelleida-chat-window.is-open {
  display: flex !important;
  animation: spelleidaFadeSlide 0.25s ease forwards;
}

.spelleida-chat-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #07192f 0%, #0d2847 100%);
  border-bottom: 1px solid var(--ll-glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spelleida-chat-bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spelleida-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 4px;
}

.spelleida-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spelleida-chat-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #091729;
  border-radius: 50%;
}

.spelleida-chat-bot-name {
  font-family: var(--ll-font-title);
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.2;
}

.spelleida-chat-bot-status {
  font-size: 0.75rem;
  color: var(--ll-primary-glow);
}

.spelleida-chat-close-btn {
  background: none;
  border: none;
  color: var(--ll-text-muted);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px;
  transition: var(--ll-transition);
}

.spelleida-chat-close-btn:hover {
  color: #ffffff;
}

.spelleida-chat-body {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spelleida-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.spelleida-chat-msg.bot {
  align-self: flex-start;
}

.spelleida-chat-msg.user {
  align-self: flex-end;
}

.spelleida-chat-bubble {
  padding: 12px 16px;
  border-radius: var(--ll-radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
}

.spelleida-chat-msg.bot .spelleida-chat-bubble {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.spelleida-chat-msg.user .spelleida-chat-bubble {
  background: var(--ll-primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.spelleida-chat-chips {
  padding: 8px 14px 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.spelleida-chip {
  padding: 6px 12px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-pill);
  color: var(--ll-text-light);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ll-transition);
}

.spelleida-chip:hover {
  background: var(--ll-primary);
  color: #ffffff;
  border-color: var(--ll-primary-glow);
}

.spelleida-chat-form {
  padding: 12px 16px;
  background: #061120;
  border-top: 1px solid var(--ll-glass-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.spelleida-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-pill);
  padding: 10px 16px;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
}

.spelleida-chat-input:focus {
  border-color: var(--ll-primary-glow);
}

.spelleida-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ll-primary);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ll-transition);
}

.spelleida-chat-send:hover {
  background: var(--ll-primary-glow);
}

/* ==========================================================
   10. MODAL DE ALTA DE SOCIO & SEPA ONLINE
   ========================================================== */
.spelleida-modal-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.spelleida-modal-wrap.active {
  display: flex;
  animation: spelleidaFade 0.25s ease forwards;
}

.spelleida-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 12, 0.85);
  backdrop-filter: blur(14px);
}

.spelleida-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  background: #091729;
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2010;
}

.spelleida-modal-header {
  padding: 22px 28px;
  background: linear-gradient(135deg, #07192f 0%, #0d2847 100%);
  border-bottom: 1px solid var(--ll-glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spelleida-modal-title {
  font-family: var(--ll-font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.spelleida-modal-close {
  background: none;
  border: none;
  color: var(--ll-text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--ll-transition);
}

.spelleida-modal-close:hover {
  color: #ffffff;
}

.spelleida-modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.spelleida-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.spelleida-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spelleida-form-group.full {
  grid-column: span 2;
}

.spelleida-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ll-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spelleida-input,
.spelleida-select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-sm);
  color: #ffffff;
  font-family: var(--ll-font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--ll-transition);
}

.spelleida-input:focus,
.spelleida-select:focus {
  border-color: var(--ll-primary-glow);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.25);
}

.spelleida-input[readonly] {
  background: rgba(255, 255, 255, 0.02);
  color: var(--ll-accent-gold);
  font-weight: 800;
  cursor: not-allowed;
  border-color: rgba(245, 158, 11, 0.3);
}

/* MENOR & AUTORIZACION PATERNA */
.spelleida-minor-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--ll-radius-md);
  padding: 20px;
  margin-bottom: 24px;
  display: none;
}

.spelleida-minor-box.visible {
  display: block;
}

.spelleida-minor-title {
  font-family: var(--ll-font-title);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ll-gold-glow);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CANVAS SIGNATURE */
.spelleida-signature-box {
  margin-bottom: 24px;
}

.spelleida-canvas-wrap {
  border: 1px dashed var(--ll-glass-border);
  border-radius: var(--ll-radius-sm);
  background: #040c17;
  position: relative;
  height: 140px;
  margin-top: 8px;
}

.spelleida-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.spelleida-clear-sig {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--ll-text-muted);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

/* ==========================================================
   11. MOBILE DRAWER & RESPONSIVE
   ========================================================== */
.spelleida-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: #061222;
  border-left: 1px solid var(--ll-glass-border);
  z-index: 1500;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.spelleida-drawer.open {
  right: 0;
}

.spelleida-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1490;
  display: none;
}

.spelleida-drawer.open + .spelleida-drawer-backdrop {
  display: block;
}

.spelleida-drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 20px;
}

.spelleida-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.spelleida-drawer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-family: var(--ll-font-title);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Accordions dentro del Drawer Móvil */
.spelleida-drawer-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spelleida-drawer-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 10px 0;
  color: #cbd5e1;
  font-family: var(--ll-font-title);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.spelleida-drawer-accordion.open .spelleida-drawer-accordion-toggle,
.spelleida-drawer-accordion-toggle:hover {
  color: #ffffff;
}

.spelleida-drawer-acc-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spelleida-drawer-acc-icon {
  font-size: 1.15rem;
}

.spelleida-drawer-role-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.spelleida-drawer-acc-chevron {
  font-size: 0.70rem;
  transition: transform 0.25s ease;
  opacity: 0.75;
}

.spelleida-drawer-accordion.open .spelleida-drawer-acc-chevron {
  transform: rotate(180deg);
  color: var(--ll-accent-gold);
}

.spelleida-drawer-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 4px;
}

.spelleida-drawer-accordion.open .spelleida-drawer-accordion-body {
  max-height: 500px;
  padding-top: 6px;
  padding-bottom: 12px;
}

.spelleida-drawer-sublink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1 !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  text-decoration: none;
  border-bottom: none !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.spelleida-drawer-sublink:hover,
.spelleida-drawer-sublink:active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  transform: translateX(4px);
}

.spelleida-drawer-sublink-highlight {
  background: rgba(29, 78, 216, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #ffffff !important;
}

.spelleida-drawer-sublink-special {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.spelleida-drawer-sublink-danger {
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.08);
}


.spelleida-drawer-lang {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.spelleida-drawer-lang-btns {
  display: flex;
  gap: 8px;
}

.spelleida-drawer-lang-btn {
  flex: 1;
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-sm);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.spelleida-drawer-lang-btn.active {
  background: var(--ll-primary);
  border-color: var(--ll-primary-glow);
}

/* ANIMATIONS */
@keyframes spelleidaPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes spelleidaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

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

/* ==========================================================================
   SECCIÓN DE ÚLTIMAS NOTICIAS (ENTRADAS WORDPRESS)
   ========================================================================== */
.spelleida-news-section {
  padding: 90px 0;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 60%);
}

.spelleida-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.spelleida-news-card {
  background: var(--ll-bg-card);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
  position: relative;
}

.spelleida-news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 20px 35px -10px rgba(14, 165, 233, 0.22);
}

.spelleida-news-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #020b14;
}

.spelleida-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.spelleida-news-card:hover .spelleida-news-thumb {
  transform: scale(1.06);
}

.spelleida-news-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 25, 47, 0.88);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.spelleida-news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.spelleida-news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ll-text-muted);
  margin-bottom: 12px;
}

.spelleida-news-title {
  font-family: var(--ll-font-title);
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.spelleida-news-card:hover .spelleida-news-title {
  color: var(--ll-primary);
}

.spelleida-news-title a {
  color: inherit;
  text-decoration: none;
}

.spelleida-news-excerpt {
  color: var(--ll-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spelleida-news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ll-primary);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.spelleida-news-link:hover {
  gap: 10px;
  color: #ffffff;
}

.spelleida-news-footer-cta {
  text-align: center;
  margin-top: 44px;
}

/* ==========================================================
   EVENTOS: FICHAS, CARTELES, MODAL E INSCRIPCIÓN CON STRIPE
   ========================================================== */
.spelleida-event-price-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(9, 23, 41, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--ll-glass-border);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.spelleida-event-price-pill.free {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  border-color: #10b981;
}

/* Modal de Evento e Inscripción */
.spelleida-evento-dialog {
  max-width: 940px !important;
  width: 95vw !important;
}

.spelleida-evento-modal-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

/* Columna Izquierda: Cartel y Ficha Técnica */
.spelleida-evento-modal-col-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spelleida-evento-poster-container {
  position: relative;
  border-radius: var(--ll-radius-md);
  overflow: hidden;
  border: 1px solid var(--ll-glass-border);
  background: #020710;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.spelleida-evento-poster-badge {
  align-self: flex-start;
  margin-bottom: 8px;
  background: rgba(3, 10, 20, 0.85);
  border: 1px solid var(--ll-glass-border);
  color: var(--ll-accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--ll-radius-pill);
  backdrop-filter: blur(8px);
}

.spelleida-evento-detail-poster {
  width: 100%;
  max-height: 480px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.spelleida-evento-poster-container:hover .spelleida-evento-detail-poster {
  transform: scale(1.02);
}

.spelleida-poster-zoom-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: rgba(9, 23, 41, 0.85);
  backdrop-filter: blur(6px);
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
  border-top: 1px solid var(--ll-glass-border);
  margin-top: 8px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.spelleida-poster-zoom-btn:hover {
  background: var(--ll-primary);
  color: #ffffff;
}

.spelleida-evento-tech-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spelleida-tech-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.84rem;
  line-height: 1.4;
  gap: 8px;
}

.spelleida-tech-item.full {
  flex-direction: column;
  gap: 4px;
}

.spelleida-tech-label {
  color: #94a3b8;
  font-weight: 600;
  flex-shrink: 0;
}

.spelleida-tech-value {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
}

.spelleida-tech-normativa {
  font-size: 0.8rem;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 2px 0 0 0;
  line-height: 1.4;
}

/* Columna Derecha: Formulario y Pasarela Stripe */
.spelleida-evento-modal-col-right {
  display: flex;
  flex-direction: column;
}

.spelleida-form-section-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

/* Tarjetas selectoras de cuota socio / no socio */
.spelleida-socio-pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spelleida-price-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--ll-radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.spelleida-price-card input[type="radio"] {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  accent-color: var(--ll-primary);
  margin: 0;
  cursor: pointer;
}

.spelleida-price-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.05);
}

.spelleida-price-card.active,
.spelleida-price-card:has(input[type="radio"]:checked) {
  border-color: var(--ll-primary);
  background: rgba(2, 132, 199, 0.12);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.spelleida-price-card-content {
  padding-right: 24px;
}

.spelleida-price-card-title {
  font-family: var(--ll-font-title);
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.spelleida-price-card-sub {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.3;
}

.spelleida-price-card-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #38bdf8;
}

/* Tabs selectoras de método de pago */
.spelleida-payment-methods-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: var(--ll-radius-sm);
  margin-bottom: 14px;
}

.spelleida-pay-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-align: center;
}

.spelleida-pay-tab input[type="radio"] {
  display: none;
}

.spelleida-pay-tab:hover {
  color: #ffffff;
}

.spelleida-pay-tab.active,
.spelleida-pay-tab:has(input[type="radio"]:checked) {
  background: var(--ll-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Stripe Container y Card Element */
.spelleida-stripe-box {
  background: rgba(9, 23, 41, 0.7);
  border: 1px solid var(--ll-glass-border);
  border-radius: var(--ll-radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}

.spelleida-card-element-container {
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.spelleida-card-errors {
  color: #f87171;
  font-size: 0.82rem;
  margin-top: 8px;
  line-height: 1.4;
  min-height: 18px;
}

.spelleida-sede-info-box {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--ll-radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}

/* MEDIA QUERIES */
@media (max-width: 1100px) {
  .spelleida-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spelleida-calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spelleida-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spelleida-cuotas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spelleida-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .spelleida-schools-grid {
    grid-template-columns: 1fr;
  }
  .spelleida-school-video-box {
    grid-template-columns: 1fr;
  }
  .spelleida-history-card {
    grid-template-columns: 1fr;
  }
  .spelleida-evento-modal-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .spelleida-stats-grid {
    grid-template-columns: 1fr;
  }
  .spelleida-calendar-grid {
    grid-template-columns: 1fr;
  }
  .spelleida-news-grid {
    grid-template-columns: 1fr;
  }
  .spelleida-cuotas-grid {
    grid-template-columns: 1fr;
  }
  .spelleida-footer-grid {
    grid-template-columns: 1fr;
  }
  .spelleida-form-grid {
    grid-template-columns: 1fr;
  }
  .spelleida-form-group.full {
    grid-column: span 1;
  }
  .spelleida-socio-pricing-cards {
    grid-template-columns: 1fr;
  }
  .spelleida-payment-methods-tabs {
    grid-template-columns: 1fr;
  }
  .spelleida-gespescat-banner {
    flex-direction: column;
    text-align: center;
  }
  .spelleida-gespescat-info {
    flex-direction: column;
  }
  .spelleida-chatbot-widget {
    bottom: 16px;
    left: 16px;
    right: auto;
  }
  .spelleida-chat-window {
    width: calc(100vw - 32px);
    max-width: 380px;
    left: 0;
    right: auto;
    bottom: 70px;
  }
}

/* ==========================================================
   MARCA DE AGUA EN ROJO DE CONCURSO ANULADO
   ========================================================== */
.spelleida-watermark-anulado {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 26, 0.55);
  backdrop-filter: blur(2px);
  z-index: 6;
  pointer-events: none;
}

.spelleida-watermark-stamp {
  display: inline-block;
  padding: 8px 24px;
  border: 4px solid #ef4444;
  border-radius: 10px;
  color: #ef4444;
  font-family: var(--ll-font-title, 'Outfit', sans-serif);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
  transform: rotate(-22deg);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.65), inset 0 0 15px rgba(239, 68, 68, 0.25);
  background: rgba(220, 38, 38, 0.25);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
  line-height: 1;
}

.spelleida-event-card.is-anulado {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15) !important;
}

.spelleida-event-card.is-anulado .spelleida-event-body {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, rgba(9, 23, 41, 0.95) 100%);
}

/* ==========================================================
   PESTAÑAS DE LA FICHA DE CONCURSO (MODAL)
   ========================================================== */
.spelleida-modal-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--ll-glass-border);
  padding: 0 24px;
  background: rgba(3, 10, 20, 0.5);
}

.spelleida-modal-tab-btn {
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-family: var(--ll-font-title, sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.spelleida-modal-tab-btn:hover {
  color: #ffffff;
}

.spelleida-modal-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

.spelleida-tab-badge {
  background: rgba(2, 132, 199, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.45);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--ll-radius-pill);
  font-weight: 800;
}

.spelleida-modal-tab-pane {
  display: none;
}

.spelleida-modal-tab-pane.active {
  display: block;
}

/* ==========================================================
   LISTADO OFICIAL DE INSCRITOS CONFIRMADOS (PAGO EXITOSO)
   ========================================================== */
.spelleida-inscritos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ll-glass-border);
}

.spelleida-inscritos-counter-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spelleida-inscritos-counter-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: var(--ll-radius-pill);
}

.spelleida-inscritos-actions {
  display: flex;
  gap: 10px;
}

.spelleida-btn-excel {
  background: linear-gradient(135deg, #107c41 0%, #185a37 100%);
  color: #ffffff;
  border: 1px solid #22c55e;
  padding: 8px 16px;
  border-radius: var(--ll-radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.spelleida-btn-excel:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.spelleida-btn-pdf {
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  color: #ffffff;
  border: 1px solid #ef4444;
  padding: 8px 16px;
  border-radius: var(--ll-radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.spelleida-btn-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.spelleida-table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--ll-radius-md);
  border: 1px solid var(--ll-glass-border);
  background: rgba(3, 10, 20, 0.6);
}

.spelleida-inscritos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.spelleida-inscritos-table th {
  background: #061120;
  color: #94a3b8;
  font-family: var(--ll-font-title, sans-serif);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ll-glass-border);
  white-space: nowrap;
}

.spelleida-inscritos-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  white-space: nowrap;
}

.spelleida-inscritos-table tr:hover td {
  background: rgba(2, 132, 199, 0.06);
}

.spelleida-pill-status-ok {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 8px;
  border-radius: var(--ll-radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spelleida-btn-del-inscrito {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.spelleida-btn-del-inscrito:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}
