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

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

:root {
  --rojo: #ef233c;
  --verde: #06d6a0;
  --azul: #4cc9f0;
  --morado: #7b2cbf;
  --dorado: #ffd166;
  --dorado-claro: #ffe29a;
  --fondo: #0a0e1a;
  --panel-bg: rgba(27, 38, 59, 0.55);
  --panel-bg-solido: #1b263b;
  --borde: rgba(255, 255, 255, 0.08);
  --borde-fuerte: rgba(255, 255, 255, 0.16);
  --borde-dorado: rgba(255, 209, 102, 0.4);
  --texto: #f1faee;
  --texto-suave: #8b9bb4;
  --sombra-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --sombra-md: 0 12px 36px rgba(0, 0, 0, 0.4);
  --sombra-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --sombra-glow: 0 0 50px rgba(255, 209, 102, 0.18);
  --radio: 20px;
  --radio-sm: 12px;
  --transicion: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transicion-larga: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 209, 102, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(6, 214, 160, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(239, 35, 60, 0.08), transparent),
    linear-gradient(180deg, #0a0e1a 0%, #0d1b2a 50%, #1a1a2e 100%);
  background-attachment: fixed;
  color: var(--texto);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(239, 35, 60, 0.06), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(6, 214, 160, 0.06), transparent 35%),
    radial-gradient(circle at 60% 20%, rgba(76, 201, 240, 0.05), transparent 35%);
  pointer-events: none;
  z-index: -1;
  animation: nebulosa 28s ease-in-out infinite alternate;
}

@keyframes nebulosa {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-40px, 40px) rotate(8deg); }
}

::selection { background: rgba(255, 209, 102, 0.35); color: var(--texto); }

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0) 0%, rgba(13, 27, 42, 0.4) 100%),
    linear-gradient(90deg, rgba(239, 35, 60, 0.22), rgba(6, 214, 160, 0.18), rgba(76, 201, 240, 0.22)),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 209, 102, 0.3), transparent 60%);
  border-bottom: 1px solid var(--borde-dorado);
  box-shadow: inset 0 -1px 0 rgba(255, 209, 102, 0.15), 0 1px 30px rgba(0, 0, 0, 0.3);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 209, 102, 0.08) 0%, transparent 8%),
    radial-gradient(circle at 85% 30%, rgba(76, 201, 240, 0.08) 0%, transparent 6%),
    radial-gradient(circle at 50% 80%, rgba(6, 214, 160, 0.08) 0%, transparent 5%);
  pointer-events: none;
  animation: estrellas 18s linear infinite;
}

@keyframes estrellas {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

.hero-flags {
  font-size: 2.2rem;
  letter-spacing: 0.8rem;
  margin-bottom: 0.7rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  animation: ondear 6s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(90deg, #ef233c 0%, #ffd166 50%, #06d6a0 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 209, 102, 0.25));
  animation: brillo-texto 8s ease-in-out infinite;
}

@keyframes brillo-texto {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-titulo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 3vw, 1.8rem);
  flex-wrap: nowrap;
  max-width: 100%;
}

.hero-titulo h1 {
  margin: 0;
  min-width: 0;
}

.hero-logo {
  width: clamp(56px, 11vw, 110px);
  height: auto;
  flex-shrink: 0;
  filter:
    drop-shadow(0 6px 18px rgba(255, 209, 102, 0.45))
    drop-shadow(0 0 22px rgba(255, 209, 102, 0.25));
  animation: flotar-logo 6s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter var(--transicion);
}

.hero-titulo .hero-logo:last-child { animation-delay: -3s; }

.hero-logo:hover {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.08);
  filter:
    drop-shadow(0 8px 24px rgba(255, 209, 102, 0.6))
    drop-shadow(0 0 30px rgba(255, 209, 102, 0.4));
}

@keyframes flotar-logo {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@media (max-width: 480px) {
  .hero-logo { width: 48px; }
  .hero-titulo { gap: 0.5rem; }
}

.subtitle {
  margin-top: 1rem;
  color: var(--texto-suave);
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.bote {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #ffd166 0%, #f4a261 100%);
  color: #1a1a2e;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  border-radius: 999px;
  box-shadow:
    0 10px 30px rgba(255, 209, 102, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  cursor: default;
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.bote:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 14px 40px rgba(255, 209, 102, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* ===== LAYOUT ===== */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  position: relative;
  z-index: 1;
}

.panel {
  background: var(--panel-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: var(--radio);
  padding: 1.6rem 1.4rem;
  margin-top: 1.5rem;
  border: 1px solid var(--borde);
  box-shadow: var(--sombra-md);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transicion), box-shadow var(--transicion);
  animation: aparecer 0.5s ease-out backwards;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.4), transparent);
}

.panel:hover {
  border-color: var(--borde-fuerte);
}

main > .panel:nth-child(1) { animation-delay: 0.05s; }
main > .panel:nth-child(2) { animation-delay: 0.1s; }
main > .panel:nth-child(3) { animation-delay: 0.15s; }
main > .panel:nth-child(4) { animation-delay: 0.2s; }
main > div > .panel:nth-child(1) { animation-delay: 0.05s; }
main > div > .panel:nth-child(2) { animation-delay: 0.1s; }
main > div > .panel:nth-child(3) { animation-delay: 0.15s; }
main > div > .panel:nth-child(4) { animation-delay: 0.2s; }
main > div > .panel:nth-child(5) { animation-delay: 0.25s; }
main > div > .panel:nth-child(6) { animation-delay: 0.3s; }

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

.panel h2 {
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--borde-dorado);
  padding-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== ESTADO TORNEO ===== */
.estado-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.estado-bloque {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.estado-bloque .row {
  display: flex;
  gap: 0.8rem;
}

.estado-bloque .campo,
.estado-item {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radio-sm);
  padding: 0.9rem 1rem;
  border: 1px solid var(--borde);
  border-left: 3px solid var(--azul);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background var(--transicion), border-color var(--transicion), transform var(--transicion);
}

.estado-bloque .campo:hover,
.estado-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-left-color: var(--dorado);
  transform: translateY(-1px);
}

.estado-bloque .etiqueta,
.estado-item .etiqueta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--texto-suave);
  font-weight: 600;
}

.estado-bloque .valor,
.estado-item .valor {
  font-size: 1rem;
  font-weight: 700;
  word-wrap: break-word;
  letter-spacing: -0.01em;
}

.estado-bloque .pendiente,
.estado-item .pendiente {
  color: var(--texto-suave);
  font-style: italic;
  font-weight: 400;
}

@media (max-width: 600px) {
  .estado-bloque .row { flex-direction: column; }
}

.actualizado {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--texto-suave);
  text-align: right;
}

/* ===== RANKING ===== */
table.ranking {
  width: 100%;
  border-collapse: collapse;
}

table.ranking thead {
  position: sticky;
  top: 0;
}

table.ranking th,
table.ranking td {
  padding: 0.85rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--borde);
}

table.ranking th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--texto-suave);
  font-weight: 700;
}

table.ranking tbody tr {
  transition: background var(--transicion);
}

table.ranking tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

table.ranking td.puntos {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dorado);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

tr.lider {
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.14), rgba(255, 209, 102, 0.02) 60%, transparent);
  position: relative;
}

tr.lider td.puntos {
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.4);
}

.pos {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  width: 2.5rem;
}

tr.yo {
  background: rgba(76, 201, 240, 0.05);
}

tr.yo td { color: var(--dorado); }
tr.yo .tu { color: var(--azul); font-weight: 700; }

.tu {
  font-size: 0.78rem;
  color: var(--texto-suave);
  margin-left: 0.3rem;
}

/* ===== CARDS APUESTAS TORNEO (CARRUSEL) ===== */
.carrusel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.carrusel-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.25rem;
}

.cards::-webkit-scrollbar { display: none; }

.cards > .skeleton { flex: 0 0 100%; }
@media (min-width: 720px) {
  .cards > .skeleton { flex-basis: calc(50% - 0.5rem); }
}
@media (min-width: 1024px) {
  .cards > .skeleton { flex-basis: calc(33.333% - 0.667rem); }
}

.carrusel-btn {
  flex: 0 0 auto;
  align-self: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--borde);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--texto);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transicion), border-color var(--transicion), transform var(--transicion);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carrusel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--borde-fuerte);
  transform: scale(1.05);
}

.carrusel-btn[hidden] { display: none; }

.carrusel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.carrusel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--borde-fuerte);
  cursor: pointer;
  transition: background var(--transicion), transform var(--transicion), width var(--transicion);
}

.carrusel-dot.activo {
  background: var(--rojo);
  width: 1.5rem;
  border-radius: 999px;
}

.card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radio-sm);
  padding: 1.2rem;
  border: 1px solid var(--borde);
  border-top: 3px solid var(--rojo);
  position: relative;
  overflow: hidden;
  transition: transform var(--transicion), border-color var(--transicion), box-shadow var(--transicion);
  cursor: default;
}

@media (min-width: 720px) {
  .card { flex-basis: calc(50% - 0.5rem); }
}

@media (min-width: 1024px) {
  .card { flex-basis: calc(33.333% - 0.667rem); }
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transicion);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--borde-fuerte);
  box-shadow: var(--sombra-lg);
}

.card:hover::before { opacity: 1; }

.card:nth-child(3n + 2) { border-top-color: var(--verde); }
.card:nth-child(3n)     { border-top-color: var(--azul); }

.card h3 {
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.card h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--borde) 0%, transparent);
}

.card .campos {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.card .row { display: flex; gap: 0.6rem; }

.card .campo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--borde);
}

.card .row:last-child .campo { border-bottom: none; }

.card .cat {
  color: var(--texto-suave);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-weight: 600;
}

.card .pick {
  font-weight: 600;
  word-wrap: break-word;
  font-size: 0.95rem;
}

.card .pick-lista {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card .finalista {
  display: block;
  line-height: 1.3;
}

.acierto {
  color: #6ee77a;
  text-shadow: 0 0 12px rgba(110, 231, 122, 0.3);
}

.fallo {
  color: #ff7b7b;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 123, 123, 0.4);
  opacity: 0.85;
}

.aviso-provisional {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--dorado);
  padding: 0.7rem 1rem;
  background: rgba(255, 209, 102, 0.08);
  border-radius: var(--radio-sm);
  border-left: 3px solid var(--dorado);
}

/* ===== DESPLEGABLE ===== */
.desplegable > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--borde-dorado);
  padding-bottom: 0.7rem;
  margin-bottom: 1.2rem;
  transition: background var(--transicion);
  border-radius: 8px 8px 0 0;
  padding: 0.4rem 0.4rem 0.7rem;
  margin: -0.4rem -0.4rem 1.2rem;
}

.desplegable > summary:hover { background: rgba(255, 255, 255, 0.03); }
.desplegable > summary::-webkit-details-marker { display: none; }
.desplegable > summary h2 { margin: 0; border: none; padding: 0; }

.desplegable > summary .chevron {
  font-size: 1.4rem;
  color: var(--dorado);
  transition: transform var(--transicion-larga);
}

.desplegable[open] > summary .chevron { transform: rotate(180deg); }

/* ===== PARTIDO EN DIRECTO ===== */
.panel-directo {
  border: 1px solid rgba(255, 123, 123, 0.4);
  box-shadow: 0 8px 30px rgba(255, 60, 60, 0.18), inset 0 0 60px rgba(255, 60, 60, 0.04);
  animation: aparecer 0.5s ease-out backwards, pulso-panel 3s ease-in-out infinite;
}

.panel-directo::before {
  background: linear-gradient(90deg, transparent, rgba(255, 76, 76, 0.6), transparent);
}

@keyframes pulso-panel {
  0%, 100% { box-shadow: 0 8px 30px rgba(255, 60, 60, 0.15), inset 0 0 60px rgba(255, 60, 60, 0.04); }
  50%      { box-shadow: 0 8px 40px rgba(255, 60, 60, 0.3), inset 0 0 60px rgba(255, 60, 60, 0.08); }
}

.panel-directo h2 { border-bottom-color: rgba(255, 123, 123, 0.5); }

.punto-live {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #ff4c4c;
  margin-right: 0.4rem;
  box-shadow: 0 0 12px rgba(255, 76, 76, 0.8);
  animation: pulso-live 1.2s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes pulso-live {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 12px rgba(255, 76, 76, 0.8); }
  50%      { opacity: 0.4; transform: scale(0.7); box-shadow: 0 0 4px rgba(255, 76, 76, 0.4); }
}

.cerrado.en-directo {
  color: #ff7b7b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== FOOTER + NAV ===== */
footer {
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  color: var(--texto-suave);
  font-size: 0.88rem;
  border-top: 1px solid var(--borde);
  margin-top: 2rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.nav {
  margin-top: 1.4rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--dorado);
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.2);
  transition: all var(--transicion);
}

.nav a:hover {
  background: rgba(255, 209, 102, 0.18);
  border-color: rgba(255, 209, 102, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.2);
}

/* ===== BOTONES ===== */
.btn {
  background: linear-gradient(135deg, #ffd166 0%, #f4a261 100%);
  color: #1a1a2e;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  transition: transform var(--transicion), box-shadow var(--transicion), filter var(--transicion);
  box-shadow: 0 4px 14px rgba(255, 209, 102, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(255, 209, 102, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn:active { transform: translateY(0); }

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn:active::after { width: 240px; height: 240px; transition: 0s; }

.btn.secundaria {
  background: rgba(255, 255, 255, 0.08);
  color: var(--texto);
  box-shadow: inset 0 0 0 1px var(--borde-fuerte);
}

.btn.secundaria:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px var(--borde-dorado);
}

/* ===== LOGIN ===== */
.login-panel {
  max-width: 440px;
  margin: 3rem auto;
  text-align: center;
  border: 1px solid var(--borde-dorado);
  box-shadow: var(--sombra-lg), var(--sombra-glow);
}

.login-panel h2 {
  justify-content: center;
  border-bottom: none;
  padding-bottom: 0;
}

.login-panel form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
}

.login-panel input,
#form-destacado input,
#form-destacado textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--borde-fuerte);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--texto);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transicion), background var(--transicion), box-shadow var(--transicion);
}

.login-panel input:focus,
#form-destacado input:focus,
#form-destacado textarea:focus {
  outline: none;
  border-color: var(--dorado);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.12);
}

.login-panel input::placeholder { color: var(--texto-suave); }

.login-panel .botones {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.ayuda {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--texto-suave);
  line-height: 1.5;
}

/* ===== BARRA USUARIO ===== */
.barra-usuario {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1.3rem;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(255, 209, 102, 0.04));
  border: 1px solid rgba(255, 209, 102, 0.25);
  border-radius: var(--radio-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: aparecer 0.4s ease-out;
}

.barra-usuario strong {
  color: var(--dorado);
  font-weight: 700;
}

.error {
  color: #ff7b7b;
  width: 100%;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.pendiente-texto {
  color: var(--texto-suave);
  font-style: italic;
  padding: 1.5rem;
  text-align: center;
}

/* ===== PARTIDOS ===== */
.partido {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radio-sm);
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--borde);
  border-left: 3px solid var(--verde);
  transition: transform var(--transicion), background var(--transicion), border-color var(--transicion), box-shadow var(--transicion);
  animation: aparecer 0.4s ease-out backwards;
  position: relative;
  overflow: hidden;
}

.partido::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255, 209, 102, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity var(--transicion);
  pointer-events: none;
}

.partido:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--dorado);
  transform: translateX(2px);
  box-shadow: var(--sombra-sm);
}

.partido:hover::before { opacity: 1; }

#directo .partido {
  border-left-color: #ff4c4c;
  background: linear-gradient(135deg, rgba(255, 76, 76, 0.08), rgba(255, 76, 76, 0.02));
}

.partido:nth-child(1) { animation-delay: 0.02s; }
.partido:nth-child(2) { animation-delay: 0.06s; }
.partido:nth-child(3) { animation-delay: 0.1s; }
.partido:nth-child(4) { animation-delay: 0.14s; }
.partido:nth-child(5) { animation-delay: 0.18s; }
.partido:nth-child(6) { animation-delay: 0.22s; }
.partido:nth-child(7) { animation-delay: 0.26s; }
.partido:nth-child(8) { animation-delay: 0.3s; }
.partido:nth-child(n+9) { animation-delay: 0.34s; }

.partido-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.fase-chip {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.25), rgba(6, 214, 160, 0.1));
  border: 1px solid rgba(6, 214, 160, 0.4);
  color: #95f0d0;
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
}

.partido-fecha {
  font-size: 0.82rem;
  color: var(--texto-suave);
  text-transform: capitalize;
  font-weight: 500;
}

.partido-equipos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  flex-wrap: wrap;
  text-align: center;
  letter-spacing: -0.01em;
}

.partido-equipos .equipo {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  transition: background var(--transicion);
}

.partido-equipos .equipo:hover { background: rgba(255, 255, 255, 0.04); }

.vs {
  color: var(--dorado);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--borde-dorado);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.05);
  flex: 0 0 auto;
}

.partido-accion {
  display: flex;
  justify-content: center;
}

.form-apuesta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  border: 1px solid var(--borde-fuerte);
  flex-wrap: wrap;
  justify-content: center;
}

.form-apuesta .guion { color: var(--texto-suave); font-weight: 700; }
.form-apuesta .bandera-input { font-size: 1.4rem; }

.form-apuesta input {
  width: 3.2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--borde-fuerte);
  border-radius: 10px;
  padding: 0.45rem;
  color: var(--texto);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--transicion), background var(--transicion), box-shadow var(--transicion);
  -moz-appearance: textfield;
}

.form-apuesta input::-webkit-outer-spin-button,
.form-apuesta input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-apuesta input:focus {
  outline: none;
  border-color: var(--dorado);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.18);
}

.estado-apuesta { font-size: 1rem; }

.cerrado {
  color: var(--texto-suave);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  border: 1px dashed var(--borde-fuerte);
}

/* ===== APUESTAS AJENAS ===== */
.ajenas {
  width: 100%;
  font-size: 0.82rem;
  color: var(--texto-suave);
  border-top: 1px dashed var(--borde);
  padding-top: 0.8rem;
  margin-top: 0.9rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  justify-content: center;
}

.apuesta-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: rgba(255, 255, 255, 0.03);
  transition: transform var(--transicion);
  font-variant-numeric: tabular-nums;
}

.apuesta-mark:hover { transform: translateY(-1px); }

.apuesta-mark strong { margin: 0 0.2rem; font-weight: 700; }

.apuesta-mark.exacto {
  background: linear-gradient(135deg, rgba(110, 231, 122, 0.18), rgba(110, 231, 122, 0.06));
  border-color: rgba(110, 231, 122, 0.4);
  color: #b7f0bf;
}

.apuesta-mark.signo {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.15), rgba(255, 209, 102, 0.04));
  border-color: rgba(255, 209, 102, 0.4);
  color: #ffd166;
}

.apuesta-mark.falla {
  background: linear-gradient(135deg, rgba(255, 123, 123, 0.12), rgba(255, 123, 123, 0.03));
  border-color: rgba(255, 123, 123, 0.4);
  color: #ff9999;
}

/* ===== PANEL DESTACADO ===== */
.panel-destacado {
  border: 1px solid var(--borde-dorado);
  box-shadow: var(--sombra-md), 0 0 60px rgba(255, 209, 102, 0.12);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.06), rgba(27, 38, 59, 0.55));
}

.panel-destacado h2 { border-bottom-color: rgba(255, 209, 102, 0.5); }

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 1rem;
  border-radius: var(--radio-sm);
  overflow: hidden;
  background: #000;
  box-shadow: var(--sombra-md);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.destacado-imagen {
  display: block;
  max-width: 100%;
  max-height: 480px;
  margin: 0 auto 1rem;
  border-radius: var(--radio-sm);
  box-shadow: var(--sombra-md);
}

.destacado-texto {
  font-size: 1.05rem;
  line-height: 1.6;
  white-space: pre-wrap;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radio-sm);
  border-left: 3px solid var(--dorado);
}

.destacado-autor {
  margin-top: 0.7rem;
  color: var(--texto-suave);
  font-size: 0.85rem;
  text-align: right;
  font-style: italic;
}

.destacado-autor strong { color: var(--dorado); font-style: normal; }

#form-destacado textarea {
  width: 100%;
  min-height: 5rem;
  resize: vertical;
  margin-bottom: 0.7rem;
}

#form-destacado input { width: 100%; margin-bottom: 0.7rem; }

/* ===== TABS / CHIPS ===== */
.tabs-clasif {
  display: flex;
  gap: 0.3rem;
  border-bottom: 1px solid var(--borde);
  margin-bottom: 1rem;
  padding-bottom: 0;
}

.tab-clasif {
  background: transparent;
  border: none;
  color: var(--texto-suave);
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transicion);
  position: relative;
}

.tab-clasif:hover { color: var(--texto); }

.tab-clasif.activa {
  color: var(--dorado);
  border-bottom-color: var(--dorado);
  font-weight: 800;
}

.tab-clasif.activa::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--dorado);
  box-shadow: 0 0 10px var(--dorado);
}

.chips-fase {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.chip-fase {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--borde-fuerte);
  color: var(--texto-suave);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transicion);
}

.chip-fase:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--texto);
  transform: translateY(-1px);
}

.chip-fase.activa {
  background: linear-gradient(135deg, var(--dorado), #f4a261);
  border-color: var(--dorado);
  color: #1a1a2e;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 209, 102, 0.35);
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  color: var(--texto);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radio-sm);
  border: 1px solid var(--borde-fuerte);
  border-left: 4px solid var(--dorado);
  box-shadow: var(--sombra-lg);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 220px;
  max-width: 360px;
  pointer-events: auto;
  animation: toast-entrar 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: top right;
}

.toast.salir { animation: toast-salir 0.25s ease-in forwards; }

.toast.ok    { border-left-color: var(--verde); }
.toast.error { border-left-color: var(--rojo); }
.toast.info  { border-left-color: var(--azul); }

@keyframes toast-entrar {
  from { opacity: 0; transform: translateX(60px) scale(0.9); }
  to   { opacity: 1; transform: translateX(0)   scale(1); }
}

@keyframes toast-salir {
  to { opacity: 0; transform: translateX(80px) scale(0.85); }
}

@media (max-width: 600px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    top: 0.8rem;
  }
  .toast { max-width: none; min-width: 0; }
}

/* ===== SKELETON ===== */
.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 100%);
  background-size: 200% 100%;
  border-radius: var(--radio-sm);
  animation: shimmer 1.6s infinite;
  border: 1px solid var(--borde);
}

.skeleton-line {
  height: 1rem;
  margin: 0.4rem 0;
  border-radius: 6px;
}

.skeleton-partido {
  height: 130px;
  width: 100%;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== COUNTER ANIMADO ===== */
.counter { font-variant-numeric: tabular-nums; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.3), rgba(255, 209, 102, 0.15));
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.5), rgba(255, 209, 102, 0.3));
  background-clip: padding-box;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .panel { padding: 1.2rem 1rem; }
  .hero { padding: 2.2rem 1rem 2rem; }
  .hero h1 { letter-spacing: -0.03em; }
  .partido { padding: 1rem; }
  .partido-equipos { font-size: 1rem; gap: 0.5rem; }
  table.ranking th, table.ranking td { padding: 0.6rem 0.4rem; font-size: 0.88rem; }
  .pos { width: 1.8rem; }
  .form-apuesta { padding: 0.4rem 0.6rem; gap: 0.4rem; }
  .form-apuesta input { width: 2.8rem; }
}

/* ===== FANTASY ===== */
.fantasy-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.fantasy-tabs .tab {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--borde);
  color: var(--texto-suave);
  padding: 0.7rem 1rem;
  border-radius: var(--radio-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transicion), color var(--transicion), border-color var(--transicion);
}

.fantasy-tabs .tab:hover {
  color: var(--texto);
  background: rgba(255, 255, 255, 0.08);
}

.fantasy-tabs .tab.activo {
  background: linear-gradient(135deg, var(--rojo), var(--rojo-oscuro, var(--rojo)));
  color: white;
  border-color: var(--rojo);
}

/* Filtros de fase / posición */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
  align-items: flex-end;
}

.filtro-grupo {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 200px;
}

.filtro-grupo > span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--texto-suave);
  font-weight: 700;
}

.filtro-grupo select {
  padding: 0.55rem 0.9rem;
  border-radius: var(--radio-sm);
  border: 1px solid var(--borde);
  background: rgba(255,255,255,0.05);
  color: var(--texto);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='%23a0a0a8' d='M2 4l4 4 4-4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}

.filtro-posicion {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.filtro-posicion .pill {
  border: 1px solid var(--borde);
  background: rgba(255,255,255,0.04);
  color: var(--texto-suave);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transicion), color var(--transicion), border-color var(--transicion);
}

.filtro-posicion .pill:hover {
  color: var(--texto);
  background: rgba(255,255,255,0.08);
}

.filtro-posicion .pill.activo {
  background: var(--rojo);
  color: white;
  border-color: var(--rojo);
}

/* Tabla de ranking jugadores */
.ranking-jugadores th.col-pos,
.ranking-jugadores td.col-pos {
  width: 3.2rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--texto-suave);
}

.ranking-jugadores th.col-num,
.ranking-jugadores td.col-num {
  width: 3rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ranking-jugadores td strong { display: block; }

.jugador-equipo-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--texto-suave);
  font-weight: 500;
  margin-top: 0.1rem;
}

.resumen {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--texto-suave);
  margin-left: 0.5rem;
}

.subseccion {
  margin: 1.6rem 0 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--texto-suave);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.selector-dueno {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.5rem 0 1rem;
  flex-wrap: wrap;
}

.selector-dueno label {
  font-size: 0.85rem;
  color: var(--texto-suave);
  font-weight: 600;
}

.selector-dueno select {
  flex: 1;
  min-width: 200px;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radio-sm);
  border: 1px solid var(--borde);
  background: rgba(255, 255, 255, 0.05);
  color: var(--texto);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='%23a0a0a8' d='M2 4l4 4 4-4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}

.selector-dueno select:focus {
  outline: none;
  border-color: var(--rojo);
}

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

.jugador-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--borde);
  border-radius: var(--radio-sm);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform var(--transicion), border-color var(--transicion), box-shadow var(--transicion);
}

.jugador-card:hover {
  transform: translateY(-2px);
  border-color: var(--borde-fuerte);
  box-shadow: var(--sombra-lg);
}

.jugador-cab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jugador-pos {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--borde);
}

.jugador-equipo { letter-spacing: 0; text-transform: none; font-size: 0.78rem; }

.jugador-nombre {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transicion);
}

.jugador-nombre:hover { color: var(--rojo); }
.jugador-nombre:focus-visible {
  outline: 2px solid var(--rojo);
  outline-offset: 3px;
  border-radius: 3px;
}

.puntos-jugador {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(110, 231, 122, 0.14);
  color: #6ee77a;
  border: 1px solid rgba(110, 231, 122, 0.35);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.jugador-card.es-suplente .puntos-jugador {
  background: rgba(255, 255, 255, 0.04);
  color: var(--texto-suave);
  border-color: var(--borde);
}

.jugador-precios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.jugador-precios .etiqueta {
  display: block;
  font-size: 0.7rem;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.1rem;
}

.jugador-precios strong { font-weight: 700; }

.jugador-card.es-suplente {
  opacity: 0.68;
  border-style: dashed;
}

.jugador-card.es-suplente:hover { opacity: 1; }

.badge-titular,
.badge-suplente {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.badge-titular {
  background: rgba(110, 231, 122, 0.14);
  color: #6ee77a;
  border: 1px solid rgba(110, 231, 122, 0.4);
}

.badge-suplente {
  background: rgba(255, 255, 255, 0.05);
  color: var(--texto-suave);
  border: 1px solid var(--borde);
}

.btn-titular {
  background: linear-gradient(135deg, rgba(110, 231, 122, 0.18), rgba(110, 231, 122, 0.08));
  border: 1px solid rgba(110, 231, 122, 0.4);
  color: #b8f5c1;
}

.btn-titular:hover {
  background: linear-gradient(135deg, rgba(110, 231, 122, 0.3), rgba(110, 231, 122, 0.15));
}

.jugador-dueno {
  font-size: 0.82rem;
  color: var(--texto-suave);
  margin: 0;
}

.acciones-jugador {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.acciones-jugador .btn {
  flex: 1;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
}

.badge-puja {
  display: inline-block;
  background: rgba(255, 209, 102, 0.12);
  color: var(--dorado);
  border: 1px solid rgba(255, 209, 102, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.dialogo {
  border: 1px solid var(--borde-fuerte);
  border-radius: var(--radio);
  background: var(--fondo);
  color: var(--texto);
  padding: 1.5rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  box-shadow: var(--sombra-lg);
}

.dialogo::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.dialogo h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.dialogo-detalle {
  color: var(--texto-suave);
  font-size: 0.88rem;
  margin: 0 0 0.9rem;
  line-height: 1.4;
}

.dialogo label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.dialogo label > span { display: block; margin-bottom: 0.3rem; }

.dialogo input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radio-sm);
  border: 1px solid var(--borde);
  background: rgba(255, 255, 255, 0.04);
  color: var(--texto);
  font-size: 1rem;
  font-weight: 600;
}

.dialogo input:focus {
  outline: none;
  border-color: var(--rojo);
}

.dialogo .ayuda { margin: 0.5rem 0 0; font-size: 0.8rem; }
.dialogo .error { margin: 0.4rem 0 0; }
.dialogo .botones { margin-top: 1rem; justify-content: flex-end; }

.dialogo-ancho { max-width: 540px; }

.dialogo-cab {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dialogo-cab h3 { margin: 0; font-size: 1.25rem; }

.dialogo-x {
  background: transparent;
  border: none;
  color: var(--texto-suave);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.3rem;
  transition: color var(--transicion);
}

.dialogo-x:hover { color: var(--texto); }

.dj-estadisticas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.dj-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--borde);
  border-radius: var(--radio-sm);
  padding: 0.8rem 0.6rem;
  text-align: center;
}

.dj-stat .etiqueta {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--texto-suave);
  margin-bottom: 0.3rem;
}

.dj-stat strong {
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dj-subtitulo {
  margin: 1.2rem 0 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texto-suave);
  font-weight: 700;
}

.dj-partido {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--borde);
  font-size: 0.9rem;
}

.dj-partido:last-child { border-bottom: none; }

.dj-fecha { color: var(--texto-suave); font-size: 0.8rem; }
.dj-rival { font-weight: 600; }

.dj-marcador {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radio-sm);
  font-size: 0.85rem;
}

.resultado-v { background: rgba(110, 231, 122, 0.16); color: #6ee77a; }
.resultado-e { background: rgba(255, 209, 102, 0.16); color: var(--dorado); }
.resultado-d { background: rgba(255, 123, 123, 0.16); color: #ff7b7b; }

.dj-nota {
  margin-top: 0.8rem;
  font-style: italic;
  font-size: 0.75rem;
}

tr.yo td { background: rgba(83, 144, 255, 0.06); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
