/* ========== styles.css ========== */

/* ========== FUENTE ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ========== ANIMACIONES ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp { animation: fadeInUp 0.3s ease-out; }
.animate-fadeInDown { animation: fadeInDown 0.3s ease-out; }

/* ========== RESET Y BASE ========== */
* { 
  -webkit-tap-highlight-color: transparent; 
  box-sizing: border-box;
}

body {
  background: #f0f2f5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
}

/* ========== MODO OSCURO - VARIABLES ========== */
:root {
  --bg-body: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --shadow-color: rgba(0,0,0,0.06);
  --shadow-hover: rgba(0,0,0,0.12);
  --bg-input: #ffffff;
  --bg-gray-50: #f9fafb;
}

.dark {
  --bg-body: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #24243a;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-color: #374151;
  --shadow-color: rgba(0,0,0,0.3);
  --shadow-hover: rgba(0,0,0,0.5);
  --bg-input: #1a1a2e;
  --bg-gray-50: #1a1a2e;
}

body {
  background: var(--bg-body);
  color: var(--text-primary);
}

/* ========== TABLA - Estilo original ========== */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
}

td, th {
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  padding: 8px;
  height: 50px;
}

/* ========== TARJETAS DE PARTIDOS ========== */
.partido-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: all 0.2s ease, background 0.3s ease;
}
.partido-card:hover {
  box-shadow: 0 4px 16px var(--shadow-hover);
}
.partido-card:active {
  transform: scale(0.99);
}

/* ========== BOTONES L/E/V ========== */
.btn-resultado {
  cursor: pointer;
  display: block;
  padding: 8px 14px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #f3f4f6;
  color: #4b5563;
  border: 2px solid transparent;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  min-width: 44px;
  text-align: center;
  user-select: none;
}
.dark .btn-resultado {
  background: #2d2d44;
  color: #9ca3af;
}
.btn-resultado:active {
  transform: scale(0.92);
}
input[type="radio"]:checked + .btn-resultado {
  background: #22c55e;
  color: white;
  border-color: #16a34a;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}
.dark input[type="radio"]:checked + .btn-resultado {
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}
.btn-resultado:hover {
  background: #e5e7eb;
}
.dark .btn-resultado:hover {
  background: #3d3d5c;
}
input[type="radio"]:checked + .btn-resultado:hover {
  background: #16a34a;
}

/* ========== NOMBRES DE EQUIPOS ========== */
.equipo-nombre {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
  padding: 0 4px;
}
@media (min-width: 640px) {
  .equipo-nombre { 
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  .equipo-nombre {
    font-size: 12px;
  }
  .btn-resultado {
    padding: 5px 10px;
    font-size: 13px;
    min-width: 36px;
  }
  .imagenEquipo {
    width: 22px !important;
  }
}

/* ========== LOGOS DE EQUIPOS ========== */
.imagenEquipo {
  width: 28px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .imagenEquipo { width: 32px; }
}

/* ========== INDICADORES DE PASO ========== */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-family: 'Inter', sans-serif;
}
.step-badge.paso-1 { background: #dbeafe; color: #1e40af; }
.step-badge.paso-2 { background: #d1fae5; color: #065f46; }
.step-badge.paso-3 { background: #fef3c7; color: #92400e; }
.dark .step-badge.paso-1 { background: #1e3a5f; color: #93bbfc; }
.dark .step-badge.paso-2 { background: #1a3a2a; color: #6ee7b7; }
.dark .step-badge.paso-3 { background: #3d2e0a; color: #fcd34d; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.dark ::-webkit-scrollbar-thumb { background: #374151; }

/* ========== FOOTER ========== */
.footer-logo {
  width: 40px;
  height: auto;
  margin-bottom: 6px;
}

/* ========== INPUT NOMBRE ========== */
#nombreCliente {
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  transition: all 0.2s ease;
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  width: 100%;
}
#nombreCliente::placeholder {
  color: var(--text-muted);
}
#nombreCliente:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
  outline: none;
}

/* ========== CONTENEDOR DE REGISTROS ========== */
#resultados-container {
  min-height: 80px;
  transition: all 0.3s ease;
}

/* ========== BOTÓN ENVIAR (deshabilitado) ========== */
#btn-enviar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ========== HEADER ========== */
.header-gradient {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  transition: background 0.3s ease;
}
.dark .header-gradient {
  background: linear-gradient(135deg, #0a0a14 0%, #0f0f1a 100%);
}

/* ========== BADGE DE JORNADA ========== */
.jornada-badge {
  background: linear-gradient(135deg, #e94560, #c62840);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  font-family: 'Inter', sans-serif;
}

/* ========== BOTÓN ALEATORIO ========== */
.btn-aleatorio {
  font-size: 16px !important;
  padding: 8px 16px !important;
  font-family: 'Inter', sans-serif;
}
.btn-aleatorio i {
  font-size: 18px !important;
}

/* ========== ESTILOS ADICIONALES MODO OSCURO ========== */
.dark .bg-white { background: var(--bg-card); }
.dark .bg-gray-50 { background: var(--bg-gray-50); }
.dark .text-gray-600 { color: var(--text-secondary); }
.dark .text-gray-700 { color: var(--text-primary); }
.dark .text-gray-800 { color: #e5e7eb; }
.dark .text-gray-400 { color: var(--text-muted); }
.dark .border-gray-200 { border-color: var(--border-color); }
.dark .shadow-sm { box-shadow: 0 1px 2px var(--shadow-color); }
.dark .shadow-inner { box-shadow: inset 0 2px 4px var(--shadow-color); }
.dark .bg-gray-900 { background: #0a0a14; }
.dark .border-white\/10 { border-color: rgba(255,255,255,0.05); }

/* ========== TÍTULOS CON INTER ========== */
h1, h2, .font-bold, .step-badge, .jornada-badge, .btn-resultado, .equipo-nombre {
  font-family: 'Inter', sans-serif;
}

/* ========== MAINTENANCE - ESTILOS ========== */

/* Contenedor principal */
.maintenance-container {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px var(--shadow-color);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  margin: 20px auto;
}

/* Decoración de fondo */
.maintenance-container::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.maintenance-container::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Logo */
.maintenance-logo {
  width: 80px;
  height: auto;
  /* border-radius: 50%; */
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}

.maintenance-logo:hover {
  transform: scale(1.05) rotate(-5deg);
}

/* Icono de estado */
.status-icon {
  font-size: 56px;
  color: #e94560;
  margin-bottom: 12px;
  display: block;
  animation: pulse-icon 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Título */
.maintenance-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.maintenance-title span {
  color: #e94560;
}

/* Subtítulo */
.maintenance-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

/* Mensaje */
.maintenance-message {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.maintenance-message strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Tréboles */
.maintenance-treboles {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.maintenance-treboles img {
  width: 32px;
  height: 32px;
  animation: float 3s ease-in-out infinite;
}

.maintenance-treboles img:nth-child(1) { animation-delay: 0s; }
.maintenance-treboles img:nth-child(2) { animation-delay: 0.3s; }
.maintenance-treboles img:nth-child(3) { animation-delay: 0.6s; }
.maintenance-treboles img:nth-child(4) { animation-delay: 0.9s; }
.maintenance-treboles img:nth-child(5) { animation-delay: 1.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(5deg); }
}

/* Badge de jornada (maintenance) */
.jornada-badge-maintenance {
  display: inline-block;
  background: linear-gradient(135deg, #e94560, #c62840);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 1;
}

/* Redes sociales (maintenance) */
.social-links-maintenance {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.social-links-maintenance a {
  color: #e94560;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(233, 69, 96, 0.06);
}

.dark .social-links-maintenance a {
  background: rgba(233, 69, 96, 0.1);
}

.social-links-maintenance a:hover {
  background: rgba(233, 69, 96, 0.15);
  transform: translateY(-2px);
}

.social-links-maintenance a i {
  font-size: 20px;
}

.social-links-maintenance .btn-reglamento {
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.04);
}

.dark .social-links-maintenance .btn-reglamento {
  background: rgba(255, 255, 255, 0.05);
}

.social-links-maintenance .btn-reglamento:hover {
  background: rgba(0, 0, 0, 0.08);
}

.dark .social-links-maintenance .btn-reglamento:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer maintenance */
.maintenance-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.dark .maintenance-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.maintenance-footer a {
  color: #e94560;
  text-decoration: none;
  font-weight: 500;
}

.maintenance-footer a:hover {
  text-decoration: underline;
}

/* Botón volver */
.btn-volver {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  background: linear-gradient(135deg, #e94560, #c62840);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 1;
}

.btn-volver:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.35);
}

.btn-volver:active {
  transform: scale(0.96);
}

.dark .btn-volver {
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.2);
}

.dark .btn-volver:hover {
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.35);
}

/* ========== RESPONSIVE MAINTENANCE ========== */
@media (max-width: 480px) {
  .maintenance-container {
    padding: 28px 20px;
  }

  .maintenance-title {
    font-size: 22px;
  }

  .status-icon {
    font-size: 44px;
  }

  .maintenance-treboles img {
    width: 26px;
    height: 26px;
  }

  .social-links-maintenance {
    gap: 10px;
  }

  .social-links-maintenance a {
    padding: 6px 12px;
    font-size: 13px;
  }

  .social-links-maintenance a i {
    font-size: 17px;
  }

  .maintenance-logo {
    width: 60px;
  }
}

@media (max-width: 380px) {
  .maintenance-container {
    padding: 20px 14px;
  }

  .maintenance-title {
    font-size: 18px;
  }

  .status-icon {
    font-size: 36px;
  }

  .maintenance-treboles img {
    width: 22px;
    height: 22px;
  }

  .social-links-maintenance a {
    padding: 4px 10px;
    font-size: 12px;
  }

  .social-links-maintenance a i {
    font-size: 15px;
  }
}

/* ========== ESTILOS PARA BIZA ========== */
.biza-section {
    margin-top: 20px;
    padding: 18px 20px;
    background: rgba(91, 10, 138, 0.08);
    border-radius: 14px;
    border: 1px solid rgba(91, 10, 138, 0.20);
    text-align: center;
    transition: all 0.3s ease;
}

.dark .biza-section {
    background: rgba(91, 10, 138, 0.15);
    border-color: rgba(91, 10, 138, 0.30);
}

.biza-section:hover {
    border-color: rgba(91, 10, 138, 0.50);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(91, 10, 138, 0.15);
}

.biza-section .biza-icono {
    font-size: 28px;
    color: #7B2FBE;
    display: block;
    margin-bottom: 6px;
}

.dark .biza-section .biza-icono {
    color: #9B59B6;
}

.biza-section .biza-texto {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
}

.biza-section .biza-texto strong {
    color: var(--text-primary);
    font-weight: 700;
}

.biza-section .biza-texto .biza-destacar {
    color: #7B2FBE;
    font-weight: 700;
}

.dark .biza-section .biza-texto .biza-destacar {
    color: #9B59B6;
}

.biza-section .biza-enlace {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 24px;
    background: linear-gradient(135deg, #6A0DAD, #4B0082);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 16px rgba(91, 10, 138, 0.25);
}

.biza-section .biza-enlace:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(91, 10, 138, 0.40);
}

.biza-section .biza-enlace:active {
    transform: scale(0.96);
}

.biza-section .biza-enlace i {
    margin-right: 8px;
}

.biza-section .biza-nota {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

.biza-section .biza-nota i {
    color: #7B2FBE;
    margin-right: 4px;
}

.dark .biza-section .biza-nota i {
    color: #9B59B6;
}

/* ========== BADGE VIOLETA PARA JORNADA (opcional) ========== */
.jornada-badge-maintenance.biza-violet {
    background: linear-gradient(135deg, #6A0DAD, #4B0082);
}

@media (max-width: 480px) {
    .biza-section {
        padding: 14px 14px;
    }

    .biza-section .biza-texto {
        font-size: 12px;
    }

    .biza-section .biza-enlace {
        font-size: 12px;
        padding: 7px 18px;
    }

    .biza-section .biza-icono {
        font-size: 22px;
    }
}
/* ========== MODAL DE VIDEO ========== */
#modalVideo {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#modalVideo:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

#modalVideo.hidden {
  opacity: 0;
  visibility: hidden;
}

#modalVideo video {
  max-height: 70vh;
  background: #000;
  border-radius: 12px;
}