/* =============================================
   VARIABLES & RESET
   ============================================= */
:root {
  --bg-deep:     #020617;
  --bg-card:     #0f172a;
  --bg-card-2:   #1e293b;
  --accent:      #ef4444;
  --accent-dark: #dc2626;
  --text:        #f1f5f9;
  --text-muted:  rgba(255,255,255,0.6);
  --border:      rgba(255,255,255,0.07);
  --shadow:      rgba(0,0,0,0.5);
  --radius:      14px;
  --radius-sm:   8px;
  --transition:  0.25s ease;
}

body.tema-claro {
  --bg-deep:    #e8edf5;
  --bg-card:    #ffffff;
  --bg-card-2:  #dde3ee;
  --text:       #0f172a;
  --text-muted: rgba(15,23,42,0.5);
  --border:     rgba(15,23,42,0.1);
  --shadow:     rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-deep), #0f172a);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.3s ease;
}

body.tema-claro {
  background: linear-gradient(135deg, #dde3ee, #e8edf5);
}

/* =============================================
   LAYOUT
   ============================================= */
main, .topbar, .header {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* =============================================
   VIDEO BANNER
   ============================================= */
.video-banner {
  position: relative; width: 100%; height: 460px;
  overflow: hidden; pointer-events: none;
}
.video-banner video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.45) contrast(1.1); transform: scale(1.05);
}
.video-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(2,6,23,0.2), rgba(2,6,23,0.92));
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: relative; margin-top: -300px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  min-height: 140px; backdrop-filter: blur(6px);
  background: rgba(2,6,23,0.4); border-radius: var(--radius);
  padding-block: 12px; pointer-events: none;
}
.header * { pointer-events: auto; }
.header-left { position: absolute; left: 60px; top: 10px; transform: scale(1.2); }

.logo-principal {
  height: 140px;
  filter: drop-shadow(0 0 20px rgba(239,68,68,0.5));
  mix-blend-mode: lighten;
  transition: transform var(--transition);
  cursor: pointer;
}
.logo-principal:hover { transform: scale(1.15) rotate(-2deg); }

.header-center { text-align: center; animation: fadeIn 0.8s ease; }
.header-right { position: absolute; right: 20px; }

.logo-secundario {
  height: 60px;
  opacity: 0;
  transform: translateX(20px);
  /* Sin CSS animation — la entrada la hace JS para no bloquear el hover */
  transition: opacity 0.5s ease, transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}
.logo-secundario:hover {
  transform: scale(1.15) rotate(2deg) !important;
  filter: drop-shadow(0 0 14px rgba(239,68,68,0.4));
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1 { color: var(--accent); text-align: center; font-size: clamp(1.2rem,3vw,1.8rem); letter-spacing: 0.5px; }
h2 { text-align: center; color: var(--text); font-size: clamp(1rem,2.5vw,1.4rem); margin-bottom: 12px; }
h3 { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; flex-wrap: wrap; width: fit-content;
  margin-inline: auto; margin-block: 16px 4px;
  padding: 10px 16px; backdrop-filter: blur(6px);
  background: rgba(2,6,23,0.4); border-radius: var(--radius);
  border: 1px solid var(--border); position: relative; z-index: 10;
}

/* =============================================
   BUTTONS
   ============================================= */
button {
  background: var(--accent); border: none; padding: 9px 14px;
  color: white; border-radius: var(--radius-sm); font-weight: 700;
  font-size: 0.85rem; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(239,68,68,0.35); }
button:active { transform: scale(0.96); }

.btn-secondary { background: var(--bg-card-2); border: 1px solid var(--border); }
.btn-secondary:hover { background: #2d3f55; box-shadow: none; }

/* Admin y logout: candados discretos */
.btn-admin, .btn-logout {
  background: #334155;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.1rem;
  padding: 7px 11px;
  line-height: 1;
}
.btn-admin:hover  { background: #3f5068; box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.btn-logout:hover { background: #3f5068; box-shadow: 0 8px 20px rgba(0,0,0,0.35); }

/* Botón tema: sol/luna */
.btn-tema {
  background: transparent;
  border: 1px solid var(--border);
  font-size: 1.05rem;
  padding: 7px 10px;
  line-height: 1;
}
.btn-tema:hover {
  background: rgba(239,68,68,0.12);
  box-shadow: none;
  transform: rotate(18deg) scale(1.12);
}

.nav-btn.active-nav { background: var(--accent-dark); box-shadow: 0 0 0 2px rgba(239,68,68,0.4); }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-2));
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 20px;
}
.cards-top { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.highlight { flex: 1; min-width: 220px; border-left: 4px solid var(--accent); }
.stat-value { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-top: 4px; }

/* =============================================
   TABLE
   ============================================= */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--accent); padding: 10px 12px; text-align: center; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.03); }

input[type="number"] { width: 48px; text-align: center; background: rgba(255,255,255,0.08); border: 1px solid var(--border); border-radius: 6px; color: white; padding: 4px; font-size: 0.9rem; }
input[type="text"], input[type="password"] { background: rgba(255,255,255,0.08); border: 1px solid var(--border); border-radius: 6px; color: white; padding: 8px 10px; font-size: 0.9rem; outline: none; transition: border-color var(--transition); }
input:focus { border-color: var(--accent); }

/* =============================================
   FILA
   ============================================= */
.fila { padding: 12px 16px; margin: 6px 0; background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); border: 1px solid var(--border); transition: background var(--transition); }
.fila:hover { background: rgba(255,255,255,0.07); }
.fila strong { color: var(--accent); display: block; margin-bottom: 4px; font-size: 0.9rem; }
.fila input { margin-top: 5px; width: 140px; }
.lider { background: linear-gradient(90deg,rgba(255,215,0,0.15),rgba(255,140,0,0.15)); border-left: 3px solid gold; color: var(--text); }
.lider:hover { background: linear-gradient(90deg,rgba(255,215,0,0.22),rgba(255,140,0,0.22)); }
.fila-tabla { display: flex; align-items: center; gap: 10px; }
.fila-pos { width: 24px; font-weight: 700; color: var(--text-muted); }
.fila-nombre { flex: 1; font-weight: 600; }
.fila-pts { font-weight: 700; color: var(--accent); font-size: 1rem; }
.fila-gd { font-size: 0.8rem; color: var(--text-muted); }

/* =============================================
   EQUIPO / PLANTEL
   ============================================= */
.equipo { margin-bottom: 24px; }
.equipo-titulo { padding: 12px 16px; border-radius: var(--radius-sm); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1rem; letter-spacing: 0.5px; user-select: none; transition: filter var(--transition); }
.equipo-titulo:hover { filter: brightness(1.1); }
.equipo-titulo-a { background: linear-gradient(90deg,#374151,#1f2937); color: #f1f5f9; border: 1px solid rgba(255,255,255,0.1); }
.equipo-titulo-b { background: linear-gradient(90deg,#cbd5e1,#94a3b8); color: #0f172a; }
.chevron { transition: transform 0.35s ease; font-size: 1.1rem; }
.equipo-titulo.abierto .chevron { transform: rotate(180deg); }
.equipo-admin { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.equipo-lista { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.4s ease, opacity 0.35s ease, margin-top 0.4s ease; margin-top: 0; }
.equipo-lista > .equipo-lista-inner { overflow: hidden; }
.equipo-lista.abierto { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
.foto-equipo { width: 100%; border-radius: var(--radius); margin: 12px 0; border: 1px solid var(--border); transition: transform 0.4s ease; }
.foto-equipo:hover { transform: scale(1.02); }

/* =============================================
   JUGADOR CARD
   ============================================= */
.jugador-card { display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 8px; border-radius: var(--radius-sm); background: linear-gradient(145deg,var(--bg-card),var(--bg-card-2)); border: 1px solid var(--border); cursor: pointer; position: relative; z-index: 30; transition: transform var(--transition), box-shadow var(--transition); }
.jugador-card:hover { transform: scale(1.03); box-shadow: 0 10px 30px rgba(239,68,68,0.2); }
.jugador-card img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 2px solid rgba(239,68,68,0.35); flex-shrink: 0; }
.jugador-card strong { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.jugador-card.capitan { border-left: 4px solid #f59e0b; background: linear-gradient(145deg,#0f172a,#1c2340); }
.jugador-card.capitan:hover { box-shadow: 0 10px 30px rgba(245,158,11,0.25); }
.capitan-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 0.65rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #f59e0b; margin-top: 4px; }
.reorder-btns { display: flex; flex-direction: column; gap: 3px; margin-left: 4px; }
.reorder-btns button { padding: 2px 7px; font-size: 0.75rem; line-height: 1; background: rgba(255,255,255,0.08); border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted); transition: background var(--transition), color var(--transition); }
.reorder-btns button:hover { background: var(--accent); color: white; transform: none; box-shadow: none; }
.jugador-club-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-left: auto; }
.dot-river { background: linear-gradient(135deg,#ffffff 50%,#CC0000 50%); border: 1px solid rgba(255,255,255,0.25); }
.dot-boca  { background: linear-gradient(135deg,#003087 50%,#f5d000 50%); border: 1px solid rgba(255,255,255,0.15); }

/* =============================================
   VIDEO EMBED
   ============================================= */
.video-link { display: inline-block; padding: 4px 10px; background: #ef4444; border-radius: 6px; color: white; font-size: 0.75rem; font-weight: 700; text-decoration: none; letter-spacing: 0.5px; transition: background var(--transition), transform var(--transition); }
.video-link:hover { background: #dc2626; transform: translateY(-1px); }
.video-input-wrap { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.video-input-wrap input[type="text"] { width: 160px; font-size: 0.78rem; padding: 4px 8px; }

/* =============================================
   CUMPLEAÑOS
   ============================================= */
.cumple-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; }
.cumple-nav button { padding: 6px 14px; font-size: 0.85rem; }
.cumple-mes-label { font-size: 1.1rem; font-weight: 700; color: var(--text); min-width: 140px; text-align: center; text-transform: capitalize; }
.cumple-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 20px; }
.cumple-dia-header { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; padding: 4px 0; letter-spacing: 0.5px; }
.cumple-dia { aspect-ratio: 1; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); background: rgba(255,255,255,0.03); border: 1px solid transparent; cursor: default; transition: background var(--transition), border-color var(--transition); position: relative; }
.cumple-dia.vacio { background: transparent; border-color: transparent; }
.cumple-dia.hoy { border-color: var(--accent); color: var(--text); font-weight: 700; }
.cumple-dia.tiene-cumple { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.4); color: var(--text); cursor: pointer; }
.cumple-dia.tiene-cumple:hover { background: rgba(239,68,68,0.22); transform: scale(1.08); }
.cumple-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 3px; }
.cumple-tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--bg-card-2); border: 1px solid rgba(239,68,68,0.4); border-radius: 8px; padding: 6px 10px; font-size: 0.75rem; font-weight: 600; color: var(--text); white-space: nowrap; z-index: 100; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.cumple-dia.tiene-cumple:hover .cumple-tooltip { opacity: 1; }

.cumple-lista { display: flex; flex-direction: column; gap: 8px; }
.cumple-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.cumple-item:hover { background: rgba(255,255,255,0.08); transform: scale(1.02); box-shadow: 0 6px 20px rgba(239,68,68,0.15); }
.cumple-item-dia { font-size: 1.3rem; font-weight: 900; color: var(--accent); min-width: 32px; text-align: center; }
.cumple-item-nombre { flex: 1; }
.cumple-item-nombre strong { display: block; font-size: 0.95rem; }
.cumple-item-nombre span { font-size: 0.78rem; color: var(--text-muted); }
.cumple-empty { text-align: center; color: var(--text-muted); padding: 20px 0; font-size: 0.9rem; }

/* =============================================
   PALMARÉS
   ============================================= */
.palmares-anio { margin-bottom: 36px; }
.palmares-anio-titulo { text-align: center; font-size: 0.75rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; position: relative; }
.palmares-anio-titulo::before, .palmares-anio-titulo::after { content: ""; position: absolute; top: 50%; width: 28%; height: 1px; background: var(--border); }
.palmares-anio-titulo::before { left: 0; }
.palmares-anio-titulo::after  { right: 0; }
.palmares-trofeos { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.trofeo-card { background: linear-gradient(145deg,var(--bg-card),var(--bg-card-2)); border: 1px solid var(--border); border-radius: 18px; padding: 24px 20px 20px; width: 220px; text-align: center; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.trofeo-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.trofeo-card.supercopa { border-color: rgba(250,204,21,0.35); background: linear-gradient(145deg,#0f172a,#1a1f0e); }
.trofeo-card.supercopa:hover { box-shadow: 0 20px 50px rgba(250,204,21,0.15); }
.trofeo-card.apertura { border-color: rgba(99,102,241,0.3); }
.trofeo-card.apertura:hover { box-shadow: 0 20px 50px rgba(99,102,241,0.18); }
.trofeo-card.clausura { border-color: rgba(239,68,68,0.3); }
.trofeo-card.clausura:hover { box-shadow: 0 20px 50px rgba(239,68,68,0.18); }
.trofeo-svg-wrap { display: flex; justify-content: center; margin-bottom: 14px; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5)); }
.trofeo-tipo { font-size: 0.65rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.trofeo-card.apertura  .trofeo-tipo { color: rgba(99,102,241,0.8); }
.trofeo-card.clausura  .trofeo-tipo { color: rgba(239,68,68,0.8); }
.trofeo-card.supercopa .trofeo-tipo { color: rgba(250,204,21,0.85); }
.trofeo-ganador { font-size: 1rem; font-weight: 900; color: var(--text); margin-bottom: 4px; min-height: 24px; }
.trofeo-vacio { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }
.trofeo-admin { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; display: none; }
.trofeo-admin.visible { display: block; }
.trofeo-admin select { width: 100%; background: rgba(255,255,255,0.08); border: 1px solid var(--border); border-radius: 6px; color: white; padding: 7px 10px; font-size: 0.85rem; outline: none; margin-bottom: 8px; cursor: pointer; transition: border-color var(--transition); }
.trofeo-admin select:focus { border-color: var(--accent); }
.trofeo-admin select option { background: #1e293b; color: white; }
.palmares-nuevo-anio { display: none; justify-content: center; margin-top: 8px; margin-bottom: 24px; }
.palmares-nuevo-anio.visible { display: flex; }

/* =============================================
   MODAL LOGIN
   ============================================= */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); justify-content: center; align-items: center; z-index: 9999; }
.modal-content { background: linear-gradient(145deg,var(--bg-card),var(--bg-card-2)); padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--border); width: min(360px,90vw); display: flex; flex-direction: column; gap: 14px; }
.modal-content h3 { font-size: 1.1rem; color: var(--text); text-transform: none; letter-spacing: 0; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions button { flex: 1; }

/* =============================================
   ADMIN INLINE
   ============================================= */
.admin-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.admin-inline input { flex: 1; min-width: 120px; }

/* =============================================
   LOADER
   ============================================= */
.loader { position: fixed; inset: 0; background: var(--bg-deep); display: flex; flex-direction: column; gap: 16px; justify-content: center; align-items: center; z-index: 99999; transition: opacity 0.4s ease; }
.loader.hidden { opacity: 0; pointer-events: none; }
.spinner { width: 48px; height: 48px; border: 4px solid rgba(255,255,255,0.08); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }

/* =============================================
   SECCIONES
   ============================================= */
.seccion { opacity: 0; transform: translateY(24px) scale(0.97); pointer-events: none; position: absolute; width: 100%; transition: opacity 0.5s ease, transform 0.5s ease; }
.seccion.activa { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; position: relative; }
.seccion.saliendo { opacity: 0; transform: translateY(-24px) scale(0.97); }
main { position: relative; padding-top: 10px; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn       { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { to { opacity: 1; transform: translateX(0); } }
@keyframes spin         { to { transform: rotate(360deg); } }

@keyframes trofeoGlow {
  0%, 100% { filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5)); }
  50%       { filter: drop-shadow(0 8px 28px rgba(250,204,21,0.45)); }
}
.trofeo-card.supercopa .trofeo-svg-wrap { animation: trofeoGlow 3s ease-in-out infinite; }

/* =============================================
   HEADER — siempre oscuro en ambos temas
   ============================================= */
.header {
  position: relative; margin-top: -300px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  min-height: 140px; backdrop-filter: blur(6px);
  background: rgba(2,6,23,0.55) !important;
  border-radius: var(--radius);
  padding-block: 12px; pointer-events: none;
  /* Sin transición de color para que no cambie con el tema */
}

/* =============================================
   TEMA CLARO — overrides puntuales
   ============================================= */
body.tema-claro .topbar {
  background: rgba(220,227,238,0.85);
  border-color: rgba(15,23,42,0.12);
}

body.tema-claro .card {
  box-shadow: 0 2px 14px rgba(15,23,42,0.09);
}

body.tema-claro .fila {
  background: rgba(15,23,42,0.04);
}
body.tema-claro .fila:hover {
  background: rgba(15,23,42,0.08);
}
body.tema-claro .lider {
  background: linear-gradient(90deg,rgba(180,120,0,0.12),rgba(180,100,0,0.12));
}

body.tema-claro .jugador-card {
  background: linear-gradient(145deg, #ffffff, #f0f4fb);
  border-color: rgba(15,23,42,0.09);
}
body.tema-claro .jugador-card:hover {
  box-shadow: 0 10px 30px rgba(239,68,68,0.13);
}
body.tema-claro .jugador-card.capitan {
  background: linear-gradient(145deg, #fff8ed, #fef3c7);
  border-left-color: #f59e0b;
}

body.tema-claro input[type="text"],
body.tema-claro input[type="password"],
body.tema-claro input[type="number"] {
  background: rgba(15,23,42,0.05);
  border-color: rgba(15,23,42,0.15);
  color: #0f172a;
}

body.tema-claro .modal-content {
  background: linear-gradient(145deg, #ffffff, #edf1f8);
}

body.tema-claro .cumple-dia {
  background: rgba(15,23,42,0.04);
  color: rgba(15,23,42,0.7);
}
body.tema-claro .cumple-dia.vacio { background: transparent; }
body.tema-claro .cumple-dia.tiene-cumple {
  background: rgba(239,68,68,0.09);
  color: #0f172a;
}
body.tema-claro .cumple-item {
  background: rgba(15,23,42,0.04);
}
body.tema-claro .cumple-item:hover {
  background: rgba(15,23,42,0.08);
}
body.tema-claro .cumple-tooltip {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(239,68,68,0.3);
}

body.tema-claro .trofeo-card {
  background: linear-gradient(145deg, #ffffff, #edf1f8);
  box-shadow: 0 4px 18px rgba(15,23,42,0.09);
}
body.tema-claro .trofeo-card.supercopa {
  background: linear-gradient(145deg, #fffdf0, #fef9c3);
}

body.tema-claro .btn-admin,
body.tema-claro .btn-logout {
  background: #94a3b8;
  border-color: rgba(15,23,42,0.12);
  color: #0f172a;
}
body.tema-claro .btn-admin:hover,
body.tema-claro .btn-logout:hover {
  background: #7c8fa3;
}

body.tema-claro .btn-tema {
  border-color: rgba(15,23,42,0.15);
  color: #0f172a;
}

body.tema-claro .trofeo-admin select {
  background: rgba(15,23,42,0.06);
  color: #0f172a;
  border-color: rgba(15,23,42,0.15);
}

body.tema-claro table th { background: var(--accent); color: white; }
body.tema-claro table td { color: var(--text); }
body.tema-claro tr:hover td { background: rgba(15,23,42,0.04); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .video-banner { height: 260px; }
  .header { flex-direction: column; margin-top: -150px; gap: 6px; text-align: center; padding: 12px; }
  .header-left { position: static; transform: none; }
  .header-right { position: static; }
  .logo-principal  { height: 70px; }
  .logo-secundario { height: 42px; }
  h1 { font-size: 1.1rem; }
  h2 { font-size: 1rem; }
  main, .topbar { padding-inline: 12px; }
  .topbar { width: 100%; overflow-x: auto; justify-content: flex-start; gap: 6px; padding: 8px 12px; }
  .topbar button { font-size: 0.75rem; padding: 8px 10px; }
  .cards-top { flex-direction: column; }
  table { font-size: 0.8rem; }
  td, th { padding: 8px 6px; }
  .card { padding: 14px; }
  .cumple-grid { gap: 2px; }
  .cumple-dia  { font-size: 0.75rem; border-radius: 6px; }
  .palmares-trofeos { gap: 12px; }
  .trofeo-card { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .fifa-card-wrap { max-height: 90vh; overflow-y: auto; border-radius: 20px; }
}

