/* Variables del Sistema de Diseño */
:root {
  --bg-dark: #0d0d0e;
  --bg-card: #18181b;
  --bg-card-hover: #222226;
  --primary: #e2001a;
  --primary-hover: #c40015;
  --primary-glow: rgba(226, 0, 26, 0.2);
  --text-white: #ffffff;
  --text-gray: #a1a1aa;
  --border-color: #27272a;
  --font-inter: 'Inter', sans-serif;
  --font-outfit: 'Outfit', sans-serif;
}

/* Estilos Generales */
body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-inter);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .font-outfit {
  font-family: var(--font-outfit);
  letter-spacing: -0.02em;
}

.max-width-600 {
  max-width: 600px;
}

.max-width-500 {
  max-width: 500px;
}

.max-height-300 {
  max-height: 300px;
}

/* Barra de Navegación */
.navbar {
  background-color: rgba(13, 13, 14, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-outfit);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.navbar-brand span {
  font-weight: 800;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-gray);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--text-white);
}

.navbar-dark .navbar-nav .nav-link.active::after {
  content: '';
  display: block;
  width: 15px;
  height: 2px;
  background-color: var(--primary);
  margin: 2px auto 0 auto;
  border-radius: 2px;
}

/* Hero Banner */
.hero-card {
  background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
  border: 1px solid var(--border-color);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Componentes de Tarjeta */
.search-card,
.dashboard-card,
.auth-card,
.comp-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.comp-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 10px rgba(226, 0, 26, 0.1);
}

/* Botones Premium */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  box-shadow: 0 0 15px var(--primary-glow) !important;
}

.btn-outline-secondary {
  color: var(--text-gray);
  border-color: var(--border-color);
}

.btn-outline-secondary:hover {
  background-color: var(--border-color);
  color: var(--text-white);
  border-color: var(--text-gray);
}

/* Pestañas Personalizadas */
.custom-tabs {
  border-bottom: 2px solid var(--border-color);
}

.custom-tabs .nav-link {
  color: var(--text-gray);
  font-family: var(--font-outfit);
  font-weight: 600;
  border: none;
  background: none;
  padding: 0.75rem 1.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.custom-tabs .nav-link:hover {
  color: var(--text-white);
  border: none;
}

.custom-tabs .nav-link.active {
  color: var(--primary);
  background: none;
  border: none;
}

.custom-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px 3px 0 0;
}

/* Tarjetas de Partido (Estilo MARCA) */
.partido-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.partido-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.partido-card:hover {
  border-color: #3f3f46;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.partido-card.admin-editable:hover::before {
  background-color: var(--primary);
}

.partido-team {
  display: flex;
  align-items: center;
  width: 40%;
}

.partido-team.local {
  justify-content: flex-end;
  text-align: right;
}

.partido-team.visitante {
  justify-content: flex-start;
  text-align: left;
}

.escudo-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  background-color: #27272a;
  border: 1px solid #3f3f46;
  padding: 2px;
}

.partido-team-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partido-score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 20%;
}

.partido-score {
  background-color: #09090b;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-outfit);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
}

.partido-score.pendiente {
  color: var(--text-gray);
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
}

.partido-info-footer {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-top: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 6px;
}

.badge-estado {
  padding: 0.25em 0.6em;
  font-size: 0.7rem;
  border-radius: 4px;
}

.badge-finalizado {
  background-color: #27272a;
  color: var(--text-gray);
}

.badge-pendiente {
  background-color: rgba(226, 0, 26, 0.1);
  color: var(--primary);
  border: 1px solid rgba(226, 0, 26, 0.2);
}

/* Tabla de Posiciones */
.table-dark {
  --bs-table-bg: var(--bg-card);
  --bs-table-border-color: var(--border-color);
}

.table-hover tbody tr:hover {
  background-color: var(--bg-card-hover);
  border-left: 2px solid var(--primary);
}

.table th {
  font-family: var(--font-outfit);
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* Formularios */
.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.25rem var(--primary-glow) !important;
  background-color: #09090b !important;
  color: white !important;
}

/* Elementos de Favorito */
.btn-fav {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-fav:hover {
  transform: scale(1.2);
}

/* Step Indicator */
.step-indicator {
  position: relative;
}

.step-num {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-outfit);
  color: var(--text-gray);
  border: 2px solid var(--border-color);
}

.step-indicator.active .step-num {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.step-indicator.active {
  color: var(--text-white) !important;
  font-weight: 600;
}

/* Grupo Badges */
.badge-grupo {
  background-color: #27272a;
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25em 0.5em;
  border-radius: 4px;
}

/* Footer style */
.footer {
  border-top: 1px solid var(--border-color);
}
