/* Estilos de Cristal Deportivo Oscuro */
.glass-box {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  contain: layout style;
}
.glass-card {
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.95) 0%, rgba(5, 5, 5, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  contain: layout style;
}

/* Brillos con Paleta Oficial */
.glow-orange { box-shadow: 0 0 30px rgba(255, 85, 0, 0.35); }
.glow-red { box-shadow: 0 0 30px rgba(220, 38, 38, 0.35); }
.glow-green { box-shadow: 0 0 30px rgba(16, 185, 129, 0.25); }
.glow-gold { box-shadow: 0 0 30px rgba(245, 158, 11, 0.35); }
.glow-blue { box-shadow: 0 0 30px rgba(11, 79, 156, 0.35); }

/* Borde Animado Interactivo */
@keyframes borderGlowColors {
  0% { border-color: #FF5500; box-shadow: 0 2px 20px rgba(255, 85, 0, 0.5); }
  25% { border-color: #DC2626; box-shadow: 0 2px 20px rgba(220, 38, 38, 0.5); }
  50% { border-color: #0B4F9C; box-shadow: 0 2px 20px rgba(11, 79, 156, 0.5); }
  75% { border-color: #10B981; box-shadow: 0 2px 20px rgba(16, 185, 129, 0.5); }
  100% { border-color: #FFFFFF; box-shadow: 0 2px 20px rgba(255, 255, 255, 0.4); }
}
.animated-border {
  animation: borderGlowColors 7s infinite alternate;
  will-change: border-color, box-shadow;
}

/* FONDO NEGRO ABSOLUTO CON LUCES DEGRADADAS AMBIENTALES */
.cinematic-pattern {
  background-color: #000000;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(255, 85, 0, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(220, 38, 38, 0.13) 0%, transparent 45%),
    radial-gradient(circle at 50% 55%, rgba(11, 79, 156, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 20% 85%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(255, 85, 0, 0.12) 0%, transparent 45%);
  background-attachment: fixed;
}

/* ANIMACIÓN INTRO */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}
.intro-aura {
  animation: pulseGlow 3s infinite ease-in-out;
  will-change: opacity, transform;
}
@keyframes logoEntry {
  0% { transform: translateY(-120px) scale(0.4); opacity: 0; filter: blur(15px); }
  60% { transform: translateY(15px) scale(1.1); opacity: 1; filter: blur(0); }
  100% { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}
.anim-logo-entry {
  animation: logoEntry 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity, filter;
}
@keyframes disneyDrop {
  0% { transform: translateY(-80px) scale(1.1); opacity: 0; filter: blur(10px); }
  100% { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); text-shadow: 0 0 35px rgba(255,85,0,0.8); }
}
@keyframes ballBounce {
  0% { transform: translateY(-400px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  30% { transform: translateY(0) rotate(180deg) scaleY(0.75); }
  55% { transform: translateY(-120px) rotate(270deg) scaleY(1.05); }
  75% { transform: translateY(0) rotate(360deg) scaleY(0.85); }
  88% { transform: translateY(-40px) rotate(410deg) scaleY(1.02); }
  100% { transform: translateY(0) rotate(450deg) scaleY(1); opacity: 1; }
}
.anim-disney {
  animation: disneyDrop 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  will-change: transform, opacity, filter;
}
.anim-bounce {
  opacity: 0;
  animation: ballBounce 1.8s cubic-bezier(0.28, 0.84, 0.42, 1) 1s forwards;
  will-change: transform, opacity;
}
.intro-disintegrate {
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s ease-out, filter 1.2s ease-out;
  will-change: transform, opacity, filter;
}
@keyframes fadeInUpBlur {
  0% { opacity: 0; transform: translateY(35px) scale(0.97); filter: blur(12px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.anim-entry {
  animation: fadeInUpBlur 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform, filter;
}

/* EFECTO BRILLO DE VITRINA */
@keyframes trophyShine {
  0% { transform: translateX(-150%) skewX(-25deg); }
  30%, 100% { transform: translateX(200%) skewX(-25deg); }
}
.vitrina-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(5, 5, 5, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: inset 0 0 15px rgba(245, 158, 11, 0.05), 0 10px 30px rgba(0,0,0,0.9);
}
.vitrina-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: trophyShine 4s infinite;
  will-change: transform;
}
.shine-sweep {
  position: relative;
  overflow: hidden;
}
.shine-sweep::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: trophyShine 5s infinite;
  pointer-events: none;
  will-change: transform;
}

.right-col-tight { align-self: start; }
.uniform-banner-container { height: 150px; }

*, *::before, *::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { image-rendering: -webkit-optimize-contrast; }

/* ============================================================
SISTEMA SS (SKILL SCORE) - Brillo dinámico según evaluación
============================================================ */
.ss-glow-5 { box-shadow: 0 0 18px rgba(250, 204, 21, 0.7), 0 0 30px rgba(250, 204, 21, 0.4) !important; border-color: #facc15 !important; }
.ss-glow-4 { box-shadow: 0 0 15px rgba(16, 185, 129, 0.6), 0 0 25px rgba(16, 185, 129, 0.3) !important; border-color: #10b981 !important; }
.ss-glow-3 { box-shadow: 0 0 12px rgba(59, 130, 246, 0.6), 0 0 20px rgba(59, 130, 246, 0.3) !important; border-color: #3b82f6 !important; }
.ss-glow-2 { box-shadow: 0 0 12px rgba(249, 115, 22, 0.6), 0 0 20px rgba(249, 115, 22, 0.3) !important; border-color: #f97316 !important; }
.ss-glow-1 { box-shadow: 0 0 12px rgba(239, 68, 68, 0.6), 0 0 20px rgba(239, 68, 68, 0.3) !important; border-color: #ef4444 !important; }

.ss-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.ss-badge-5 { background: linear-gradient(135deg, #facc15, #f59e0b); color: #000; }
.ss-badge-4 { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.ss-badge-3 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.ss-badge-2 { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.ss-badge-1 { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }

/* STATS COMPACTAS DE JUGADORES */
.player-stat-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.stat-gol { color: #facc15; border-color: rgba(250, 204, 21, 0.3); }
.stat-asis { color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.stat-mvp { color: #e879f9; border-color: rgba(232, 121, 249, 0.3); }

.mvp-mini-badge {
  background: linear-gradient(135deg, #e879f9, #a855f7);
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: mvpPulse 2s infinite;
}
@keyframes mvpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.05); }
}

/* CARRUSEL DE PATROCINADORES INFINITO */
.sponsors-marquee {
  overflow: hidden;
  position: relative;
  padding: 0.75rem 0;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  border: 1px solid rgba(255, 85, 0, 0.25);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sponsors-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}
.sponsors-marquee:hover .sponsors-track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.sponsor-chip {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
  color: #1a1a1a;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}
.sponsor-chip:hover { transform: translateY(-2px) scale(1.03); }

/* PANEL ADMIN */
.admin-section {
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.95) 0%, rgba(5, 5, 5, 0.98) 100%);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.admin-section h3 {
  color: #ff5500;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 85, 0, 0.3);
}
.admin-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  margin-bottom: 0.5rem;
}
.admin-input:focus {
  outline: none;
  border-color: #ff5500;
  box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.2);
}
.admin-btn {
  background: linear-gradient(135deg, #ff5500, #dc2626);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}
.admin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.4);
}
.padre-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  margin-bottom: 0.35rem;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Editor inline de goles/MVP */
.stat-editor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 2px;
}
.stat-editor button {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s;
}
.stat-editor button:hover { background: #ff5500; }
.stat-editor span {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
}

/* ============================================================
BOTONES MINI, AVISO EDICIÓN Y RESALTADO
============================================================ */
.edit-hint {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 9999px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
  white-space: nowrap;
  max-width: 95vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-edit-mini, .btn-del-mini {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.6);
  font-size: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-edit-mini { color: #FF5500; }
.btn-edit-mini:hover { background: #FF5500; color: #fff; transform: scale(1.1); }
.btn-del-mini { color: #ef4444; }
.btn-del-mini:hover { background: #ef4444; color: #fff; transform: scale(1.1); }
.admin-btn-secondary { background: linear-gradient(135deg, #374151, #111827); }
.admin-btn-secondary:hover { box-shadow: 0 4px 12px rgba(255,255,255,0.15); }

[contenteditable="true"] {
  outline: 1px dashed rgba(255, 85, 0, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
  cursor: text;
}
[contenteditable="true"]:focus {
  outline: 2px solid #FF5500;
  background: rgba(255, 85, 0, 0.08);
}

/* ============================================================
🆕 ESTILOS PARA PAGOS Y ROLES (ENTRENADOR/PADRES)
============================================================ */
.role-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.role-admin { background: rgba(255, 85, 0, 0.15); color: #FF5500; border: 1px solid rgba(255, 85, 0, 0.3); }
.role-dt { background: rgba(16, 185, 129, 0.15); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.3); }
.role-padre { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }

.pago-card {
  background: rgba(0, 0, 0, 0.4);
  border-left: 3px solid #10B981;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s;
}
.pago-card:hover {
  transform: translateX(4px);
  background: rgba(16, 185, 129, 0.05);
}

/* ============================================================
🆕 NAV MÓVIL ESTILO TIKTOK (SCROLL HORIZONTAL)
============================================================ */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.nav-scroll { scroll-snap-type: x mandatory; }
.nav-scroll button:active { transform: scale(0.95); }

/* RESPONSIVE MEJORADO */
@media (max-width: 640px) {
  .player-stat-mini { font-size: 9px; padding: 1px 4px; }
  .mvp-mini-badge { font-size: 8px; padding: 1px 5px; }
  .sponsor-chip { font-size: 11px; padding: 0.4rem 0.9rem; min-width: 110px; }
  .admin-section { padding: 0.75rem; }
  .glass-box { padding: 1rem; }
  .glass-card { padding: 0.75rem; }
}