/* ============================================= */
/* --- VARIABLES Y ESTILOS GLOBALES --- */
/* ============================================= */
:root {
  --bg-dark: #121212; /* Fondo principal oscuro */
  --bg-light: #1e1e1e; /* Fondo ligeramente más claro para elementos */
  --primary-red: #e62e2d; /* Rojo principal para títulos y encabezados */
  --accent-gold: #ffd700; /* Dorado/Amarillo para acentos y puntos */
  --text-light: #f5f5f5; /* Color de texto claro */
  --text-muted: #aaaaaa; /* Color de texto atenuado */
  --border-color: #333333; /* Color de bordes y líneas divisorias */
  /* Nuevas variables para la tabla y otros elementos */
  --card-bg-color: var(--bg-light); /* Fondo de tarjetas de grupo */
  --background-color-dark: #2a2a2a; /* Fondo para filas impares de tabla */
  --background-color-darker: #242424; /* Fondo para filas pares de tabla */
  --hover-bg-color: #3a3a3a; /* Fondo al pasar el ratón en filas */
  --primary-green: #28a745; /* Verde para clasificados */
  --primary-orange: #fd7e14; /* Naranja para repechaje */
  --primary-red-dark: #dc3545; /* Rojo más oscuro para eliminados (usado en filas) */
  --primary-blue: #007bff; /* Azul para botones de stream (si se usan) */
  --primary-dark-blue: #0056b3; /* Azul oscuro para hover de botones */
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  padding-top: 65px;
}

body.home {
  padding-top: 0;
}

main {
  background-image: linear-gradient(
      135deg,
      rgba(15, 5, 30, 0.75),
      rgba(5, 5, 15, 0.85)
    ),
    url("../Image/fondo.png");
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section {
  background-color: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(5px);
  padding: 3rem;
  border-radius: 16px;
  border-top: 3px solid var(--primary-red);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 5rem;
  text-align: center;
}

.section:not(:first-child) {
  margin-top: 5rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  display: inline-block;
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  color: #00f1ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}

.no-teams-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background-color: rgba(30, 30, 30, 0.5);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  color: var(--text-muted);
}

.no-teams-message h3 {
  font-size: 1.8rem;
  color: #bd09f4;
  margin-bottom: 0.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 2px;
}

h2 i {
  margin-right: 10px;
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: -1.5rem auto 3rem auto;
}

.cta-button {
  background-color: var(--primary-red);
  color: var(--text-light);
  padding: 15px 30px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
}

.cta-button:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.cta-button.secondary {
  background-color: transparent;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.cta-button.secondary:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* ============================================= */
/* --- BARRA DE NAVEGACIÓN --- */
/* ============================================= */
.navbar {
  background-color: rgba(18, 18, 18, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================= */
/* --- BARRA DE NAVEGACIÓN --- */
/* ============================================= */
.navbar {
  /* Fondo oscuro con un 75% de opacidad */
  background-color: rgba(18, 18, 18, 0.75);
  /* Filtro de desenfoque (el "efecto espejo" o vidrio) */
  -webkit-backdrop-filter: blur(10px); /* Para Safari */
  backdrop-filter: blur(10px);
  /* Estilos de layout y borde */
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Asegura que la barra de navegación siempre esté visible por encima del menú desplegable */
  position: relative;
  z-index: 1001;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Contenedor principal del menú de navegación */
.nav-menu {
  display: flex; /* Utiliza flexbox para alinear los enlaces en una fila */
  align-items: center; /* Centra los elementos verticalmente */
  gap: 30px; /* Espacio entre cada enlace de navegación */
  /* Puedes ajustar el 'gap' si los enlaces están muy juntos o separados */
}

/* ============================================= */
/* --- MEDIAS QUERIES PARA ADAPTAR A DISPOSITIVOS MÓVILES --- */
/* ============================================= */

/* Breakpoint para pantallas medianas (tablets en vertical, laptops pequeñas) */
/* El menú hamburguesa aparecerá de 992px para abajo */
@media (max-width: 992px) {
  .nav-link {
    font-size: 1.4rem; /* Tamaño de fuente más grande para la legibilidad en móvil */
    padding: 18px 0; /* Más espacio entre los enlaces */
    width: 90%; /* Ocupa más ancho */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separador sutil entre enlaces */
  }

  .nav-link:last-child {
    border-bottom: none; /* Elimina el borde del último enlace */
  }

  /* Oculta los botones de acción en el menú de escritorio cuando el menú hamburguesa está activo */
  .nav-actions {
    display: none;
  }
}

/* Opcional: Ajustes para pantallas muy pequeñas (móviles muy pequeños) */
@media (max-width: 480px) {
  .navbar {
    padding: 0.8rem 1rem; /* Reduce el padding de la navbar en pantallas muy pequeñas */
  }

  .nav-logo {
    font-size: 1rem; /* Reduce el tamaño del texto del logo si es necesario */
  }

  .nav-logo img {
    height: 35px; /* Ajusta el tamaño del logo */
    width: 35px;
  }

  .nav-menu {
    top: 55px; /* Ajusta si el navbar es más pequeño */
    height: calc(100vh - 55px);
  }

  .nav-link {
    font-size: 1.2rem; /* Ajusta el tamaño de los enlaces si se ven muy grandes */
    padding: 15px 0;
  }
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-red);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

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

.nav-link.active {
  font-weight: 600;
}

.nav-link.live-link {
  color: var(--primary-red);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(230, 46, 45, 0.7);
}

.nav-link.live-link:hover::after {
  background-color: var(--accent-gold);
}

/* ============================================= */
/* --- BOTONES DE ACCIÓN DE LA BARRA DE NAVEGACIÓN --- */
/* ============================================= */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-action-btn i {
  margin-right: 8px;
  font-size: 1.1em;
}

.nav-action-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
}

.btn-login {
  background-color: #27ae60;
  color: #fff;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
  border: none;
}

.btn-login:hover {
  background-color: #2ecc71;
  color: #fff;
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

.btn-panel {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-panel:hover {
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.btn-logout {
  background-color: var(--primary-red-dark);
  color: #fff;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.admin-button {
  background-color: var(--primary-blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.admin-button:hover {
  background-color: var(--primary-dark-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.admin-button i {
  margin-right: 8px;
}

.hidden {
  display: none !important;
}

/* ============================================= */
/* --- PÁGINA DE LOGIN (login.html) --- */
/* ============================================= */
.login-page-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg-dark) url("../Image/fondo.png") no-repeat center
    center/cover;
  padding-top: 0;
}

.login-container {
  width: 100%;
  padding: 2rem;
}

.login-card {
  max-width: 450px;
  margin: 0 auto;
  background-color: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.login-logo {
  display: block;
  margin: 0 auto 1rem auto;
  width: 80px;
}

.login-logo img {
  width: 100%;
  border-radius: 50%;
}

.login-title {
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.login-card .form-group input {
  padding: 15px;
  font-size: 1.1rem;
}

.login-message-box {
  margin-top: 1.5rem;
  padding: 12px;
  border-radius: 6px;
  font-weight: 500;
  display: none;
}

.login-message-box.show {
  display: block;
}

.login-message-box.success {
  background-color: rgba(40, 167, 69, 0.2);
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
}

.login-message-box.error {
  background-color: rgba(220, 53, 69, 0.2);
  border: 1px solid var(--primary-red-dark);
  color: var(--primary-red-dark);
}

/* ============================================= */
/* --- ESTILOS ADICIONALES PARA BOTONES --- */
/* ============================================= */
.cta-button.submit-button,
.cta-button.delete-button {
  color: var(--text-light);
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.cta-button.submit-button {
  background-color: var(--primary-red);
}

.cta-button.delete-button {
  background-color: var(--primary-red-dark);
}

.cta-button.offline-button {
  background-color: var(--text-muted);
  cursor: pointer;
}

.news-item-actions button,
.member-item .delete-member-btn {
  cursor: pointer;
}

/* ======================================================= */
/* --- PÁGINA DE ANUNCIOS (Diseño Timeline por Fecha) --- */
/* ======================================================= */
#announcements-timeline-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.loader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  color: var(--text-muted);
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-left-color: var(--accent-gold);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.no-announcements {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--bg-light);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  color: var(--text-muted);
}

.no-announcements h2 {
  font-size: 2.5rem;
  color: var(--accent-gold);
}

.timeline-date-header {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-align: center;
  margin: 3rem 0 1rem 0;
  letter-spacing: 1px;
}

.timeline-date-separator {
  border: none;
  border-top: 2px solid var(--accent-gold);
  opacity: 0.5;
  margin-bottom: 2rem;
}

.announcement-card-timeline {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.announcement-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  display: block;
}

.announcement-content {
  padding: 2rem;
}

.announcement-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

.announcement-title {
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin: 0;
}

.announcement-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.time-ago {
  font-style: italic;
  color: var(--text-muted);
}

.announcement-text {
  line-height: 1.8;
  color: var(--text-light);
  white-space: pre-line;
  font-size: 1.1rem;
}

.announcement-author {
  font-size: 0.9rem;
  font-weight: 600;
  font-style: italic;
  text-align: right;
  color: var(--accent-gold);
  text-transform: capitalize;
}

/* ============================================= */
/* --- HERO SECTION (Diseño Mejorado) --- */
/* ============================================= */
.hero {
  background-image: linear-gradient(
      135deg,
      rgba(15, 5, 30, 0.75),
      rgba(5, 5, 15, 0.85)
    ),
    url("../Image/fondo.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero:not(.small-hero) {
  height: 100vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tournament-logo {
  width: 160px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  }
  50% {
    transform: translateY(-10px);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.5);
  }
  100% {
    transform: translateY(0px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  }
}

.hero h1 {
  font-size: 5.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--primary-red),
    0 0 30px var(--primary-red), 0 0 40px var(--primary-red),
    0 0 55px var(--primary-red), 0 0 75px var(--primary-red);
}

.hero .subtitle {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  font-weight: 400;
}

.tournament-info {
  display: flex;
  gap: 2.5rem;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  background-color: rgba(18, 18, 18, 0.8);
  padding: 12px 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tournament-info span i {
  margin-right: 10px;
  color: var(--primary-red);
}

/* ============================================= */
/* --- CONTADOR REGRESIVO --- */
/* ============================================= */
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  color: var(--text-light);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.time-block {
  background-color: var(--bg-light);
  border: 2px solid var(--primary-red);
  border-radius: 12px;
  padding: 15px 25px;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(230, 46, 45, 0.4);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.time-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-gold);
}

.time-block span {
  font-size: 3.5rem;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 5px;
}

.time-block small {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

.cta-button.disabled-link {
  background-color: #555;
  cursor: not-allowed;
}

/* ============================================= */
/* --- TABLA DE PUNTUACIÓN (table.html) --- */
/* ============================================= */
.scoreboard-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.group {
  flex: 1;
  min-width: 320px;
  max-width: 500px;
  background-color: var(--card-bg-color);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 20px;
  text-align: center;
}

.group h3 {
  color: var(--primary-red);
  margin-bottom: 20px;
  font-size: 1.8em;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.scoreboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.scoreboard-table thead th {
  background-color: var(--primary-red);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9em;
  padding: 12px 15px;
  text-align: center;
}

.scoreboard-table th:nth-child(2) {
  text-align: left;
}

.scoreboard-table tbody td {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
  text-align: center;
  vertical-align: middle;
}

.scoreboard-table tbody tr:last-child td {
  border-bottom: none;
}

.scoreboard-table tbody tr:nth-child(odd) {
  background-color: var(--background-color-dark);
}

.scoreboard-table tbody tr:nth-child(even) {
  background-color: var(--background-color-darker);
}

.scoreboard-table tbody tr:hover {
  background-color: var(--hover-bg-color);
  cursor: default;
}

.scoreboard-table td:nth-child(1) {
  text-align: center;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--accent-gold);
}

.scoreboard-table td:nth-child(2) {
  text-align: left;
  font-weight: 500;
}

.scoreboard-table td:nth-child(3),
.scoreboard-table td:nth-child(4) {
  text-align: center;
}

.scoreboard-table td:nth-child(5) {
  text-align: center;
  font-size: 1.3em;
  font-weight: 900;
  color: var(--accent-gold);
}

.scoreboard-table tbody tr:nth-child(1),
.scoreboard-table tbody tr:nth-child(2) {
  background-color: rgba(40, 167, 69, 0.15);
  border-left: 5px solid var(--primary-green);
}

.scoreboard-table tbody tr:nth-child(3),
.scoreboard-table tbody tr:nth-child(4) {
  background-color: rgba(253, 126, 20, 0.15);
  border-left: 5px solid var(--primary-orange);
}

.scoreboard-table tbody tr:nth-child(5),
.scoreboard-table tbody tr:nth-child(6) {
  background-color: rgba(220, 53, 69, 0.15);
  border-left: 5px solid var(--primary-red-dark);
}

@media (max-width: 768px) {
  .scoreboard-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .scoreboard-table thead,
  .scoreboard-table tbody,
  .scoreboard-table th,
  .scoreboard-table td,
  .scoreboard-table tr {
    display: block;
  }
  .scoreboard-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  .scoreboard-table tr {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 10px;
  }
  .scoreboard-table td {
    border: none;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 50%;
    text-align: right;
  }
  .scoreboard-table td:before {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    content: attr(data-label);
    font-weight: bold;
    text-align: left;
    color: var(--text-muted);
  }
  .scoreboard-table td:nth-child(1),
  .scoreboard-table td:nth-child(3),
  .scoreboard-table td:nth-child(4),
  .scoreboard-table td:nth-child(5) {
    text-align: right;
  }
}

/* =================================================================== */
/* --- ESTILOS DEFINITIVOS PARA TARJETAS (Equipos y Casters) --- */
/* =================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.team-card-index,
.caster-card {
  background-color: var(--bg-light);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.team-card-index:hover,
.caster-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.team-card-index > *,
.caster-card > * {
  position: relative;
  z-index: 1;
}

.team-card-index::before,
.caster-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: -2px;
  border-radius: inherit;
  z-index: 0;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.team-card-index:hover::before,
.caster-card:hover::before {
  opacity: 1;
}

.team-card-index::before {
  background: conic-gradient(
    from 180deg at 50% 50%,
    var(--primary-red) 0%,
    var(--accent-gold) 50%,
    var(--primary-red) 100%
  );
}

.team-logo-card {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 1.5rem;
  padding: 5px;
  background-color: var(--bg-dark);
  border: 2px solid var(--border-color);
}

.team-card-index h3 {
  font-size: 1.8rem;
  color: var(--text-light);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.team-card-index p {
  color: var(--text-muted);
  flex-grow: 1;
}

.caster-card::before {
  background: conic-gradient(
    from 180deg at 50% 50%,
    var(--primary-red) 0%,
    var(--accent-gold) 50%,
    var(--primary-red) 100%
  );
}

.caster-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  padding: 5px;
  background-color: var(--bg-dark);
  border: 2px solid var(--accent-gold);
}

.caster-card h4 {
  font-size: 1.8rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.caster-card p {
  color: lab(98.27% 0.01 -0.01);
  flex-grow: 1;
}

.card-link {
  background: var(--primary-red);
  color: var(--text-light);
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 1.5rem;
  border: none;
  box-shadow: 0 4px 15px rgba(230, 45, 45, 0.3);
}

.card-link:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(52, 99, 255, 0.5);
}

/* ============================================= */
/* --- SECCIÓN DE PLAYOFFS CORREGIDA --- */
/* ============================================= */

/* 1. Contenedor de toda la sección de playoffs */
#playoffs-section {
  padding: 3rem;
  text-align: center; /* ¡CLAVE! Centra todo el texto (título y subtítulo) */

  /* Le devolvemos el estilo de "caja" */
  background-color: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  border-top: 3px solid var(--primary-red);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* 2. Ajustamos el título y subtítulo para que no necesiten trucos de margen */
#playoffs-section .section-title,
#playoffs-section .section-subtitle {
  /* Ya no necesitan auto-márgenes porque el contenedor los centra */
  margin-left: 0;
  margin-right: 0;
}

/* 3. Contenedor del bracket (le quitamos el fondo que ahora tiene la sección) */
#bracket-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 1rem; /* Reducimos un poco el padding ya que la sección tiene el suyo */

  /* Le quitamos los estilos de caja que ahora están en #playoffs-section */
  background-color: transparent;
  border: none;
  border-radius: 0;
}

/* ============================================= */
/* --- BRACKET DEFINITIVO (PARA PLAYOFFS.JS) --- */
/* ============================================= */

/* Contenedor de toda la sección de playoffs */
#playoffs-section {
  padding: 4rem 2rem; /* Espaciado interno */
  /* Removemos el max-width que daba problemas */
}

/* Estilos para el título y subtítulo de la sección */
#playoffs-section .section-title,
#playoffs-section .section-subtitle {
  max-width: 1200px; /* Limitamos el ancho del texto */
  margin-left: auto; /* Centramos el texto */
  margin-right: auto;
  text-align: center; /* Aseguramos la alineación del texto */
}

#playoffs-section .section-title {
  margin-bottom: 1.5rem;
}

#playoffs-section .section-subtitle {
  margin-bottom: 3rem;
}

/* Contenedor principal del bracket */
#bracket-container {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1400px; /* Ancho máximo para el bracket en pantallas grandes */
  margin: 0 auto; /* Centra el bracket en la página */
  overflow-x: auto; /* Permite scroll horizontal si no cabe */
  padding: 2rem;
  background-color: rgba(18, 18, 18, 0.4); /* Fondo semitransparente */
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

/* Contenedor de las dos ramas (Upper y Lower) */
.main-bracket {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Cada rama (Upper o Lower) */
.bracket-branch {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

/* Columna de cada ronda */
.bracket-round {
  flex: 1;
  min-width: 220px; /* Ancho mínimo para cada ronda */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Título de la ronda (Ej: "Upper Bracket - Cuartos") */
.round-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.round-title.lower-title {
  color: var(--primary-orange);
}

.round-title.grand-final-title {
  color: var(--accent-gold);
  font-size: 1.5rem;
}

/* Lista de partidas dentro de una ronda */
.match-list {
  display: flex;
  flex-direction: column;
  justify-content: space-around; /* Distribuye el espacio entre partidas */
  gap: 3.5rem;
  height: 100%;
}

/* Caja de una partida individual */
.match-item {
  background-color: var(--bg-dark);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative; /* Para las líneas conectoras */
}

/* Cada equipo dentro de la partida */
.team-entry {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  transition: background-color 0.2s ease;
}

/* Logo del equipo */
.bracket-team-logo {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  object-fit: contain;
}

.team-name {
  flex-grow: 1; /* El nombre del equipo ocupa el espacio sobrante */
  font-weight: 600;
  color: var(--text-light);
}

.score {
  font-weight: 700;
  color: var(--text-light);
}

/* Estilo para el perdedor */
.team-entry.loser {
  opacity: 0.5;
}

/* Línea divisoria entre equipos */
.team-entry:first-of-type {
  border-bottom: 1px solid var(--border-color);
}

/* Columna de la Gran Final */
.grand-final-col {
  align-self: center; /* Se centra verticalmente respecto a las dos ramas */
}

.match-item.final {
  border-color: var(--accent-gold);
}

/* --- LÍNEAS CONECTORAS (Simplificado) --- */
/* Nota: Las líneas exactas de la imagen son muy complejas de lograr solo con CSS */

.match-item {
  position: relative;
}

/* Línea que sale hacia la derecha de cada partida */
.match-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px; /* La mitad del 'gap' entre rondas */
  width: 20px;
  height: 1px;
  background-color: var(--border-color);
}

/* No mostrar la línea en la última columna de cada rama y en la gran final */
.bracket-round:last-child .match-item::after,
.grand-final-col .match-item::after {
  display: none;
}

/* ============================================= */
/* --- RESPONSIVIDAD DEL BRACKET --- */
/* ============================================= */
@media (max-width: 1200px) {
  .double-elimination-bracket {
    gap: 1rem;
    padding: 2rem;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
  }
  .bracket-round {
    min-width: 250px;
  }
  .bracket-round > .match-container::before {
    right: -0.5rem;
    width: 0.5rem;
  }
}

@media (max-width: 992px) {
  .double-elimination-bracket {
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    gap: 4rem;
  }
  .bracket-round {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
    height: auto;
  }
  .match-container {
    margin-bottom: 2rem;
  }
  .match-container::before,
  .match-container .match:not(:last-child)::after {
    display: none;
  }
  .round-title.lower-title,
  .round-title.grand-final-title {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .round-title {
    font-size: 1.4rem;
  }
  .round-title.grand-final-title {
    font-size: 1.7rem;
  }
  .match {
    padding: 1rem;
  }
  .team-entry {
    font-size: 1rem;
  }
  .champion-display {
    font-size: 1.5rem;
  }
  .section-cta .cta-button {
    display: block;
    margin: 10px auto;
  }
}

@media (max-width: 480px) {
  .match {
    padding: 0.8rem;
  }
  .team-entry {
    font-size: 0.9rem;
  }
  .champion-display {
    font-size: 1.2rem;
  }
}

/* ============================================= */
/* --- CONTENEDORES DE VIDEO Y CHAT --- */
/* ============================================= */
.video-embed-full,
.chat-embed-full {
  width: 100%;
  height: 75vh;
  background-color: #000;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.video-embed-full iframe,
.chat-embed-full iframe {
  width: 100%;
  height: 100%;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.blinking-icon {
  animation: blink 1s infinite;
}

.stream-status {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-color-light);
}

.stream-status .online {
  color: #28a745;
}

.stream-status .offline {
  color: #dc3545;
}

.caster-name {
  font-size: 2rem;
  color: var(--accent-gold);
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  text-transform: none;
  letter-spacing: 1px;
}

.caster-name i {
  margin-right: 10px;
  color: var(--primary-red);
}

.streams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.stream-card {
  display: flex;
  flex-direction: column;
}

.caster-name {
  font-size: 2rem;
  color: var(--accent-gold);
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  text-transform: none;
  letter-spacing: 1px;
}

.caster-name i {
  margin-right: 10px;
  color: var(--primary-red);
}

.video-embed-full {
  width: 100%;
  height: 60vh;
  background-color: #000;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.video-embed-full iframe {
  width: 100%;
  height: 100%;
}

@media (min-width: 992px) {
  .streams-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================= */
/* --- ESTILOS PARA PORTAL DE PAGO --- */
/* ============================================= */
.payment-header {
  text-align: center;
  margin-bottom: 3rem;
}

.payment-logo {
  height: 80px;
  margin-bottom: 1rem;
  border-radius: 50%;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 1rem 0;
}

.price .currency {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-left: 10px;
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.payment-card {
  background-color: var(--bg-light);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.payment-icon {
  height: 50px;
  margin-bottom: 0.5rem;
}

.payment-card h3 {
  color: var(--accent-gold);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.qr-code-container {
  border: 5px solid rgb(255, 0, 208);
  padding: 10px;
  background-color: rgb(255, 0, 153);
  border-radius: 8px;
  margin: 0.5rem 0;
}

.qr-code-container img {
  width: 200px;
  height: 200px;
  display: block;
}

.copyable-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-dark);
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  width: 100%;
  justify-content: space-between;
}

.copyable-field span {
  color: var(--text-muted);
}

.copyable-field strong {
  color: var(--text-light);
  font-size: 1.1rem;
}

.copy-button {
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 5px;
  width: 35px;
  height: 35px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
}

.copy-button:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.copy-button.copied {
  background-color: var(--primary-green);
}

.confirmation-section {
  margin-top: 4rem;
  padding: 2.5rem;
  text-align: center;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.confirmation-section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.confirmation-section p {
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ============================================= */
/* --- ESTILOS MEJORADOS PARA EL FOOTER PROFESIONAL --- */
/* ============================================= */

/* Estilos base del footer (si no los tienes ya, cópialos) */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  background-color: var(--bg-dark); /* Color de fondo oscuro de tus variables */
  margin-top: 0;
  border-top: 1px solid var(--border-color); /* Borde superior sutil */
  color: var(--text-muted); /* Color de texto atenuado */
}

/* Contenedor principal del footer para organizar las secciones */
.footer-container {
  display: flex; /* Habilita Flexbox para disposición en columnas */
  flex-wrap: wrap; /* Permite que las columnas se envuelvan en pantallas pequeñas */
  justify-content: space-around; /* Distribuye las secciones uniformemente */
  align-items: flex-start; /* Alinea los elementos al inicio de cada fila */
  max-width: 1200px; /* Ancho máximo para el contenido del footer */
  margin: 0 auto 40px auto; /* Centra el contenedor y añade margen inferior */
  gap: 30px; /* Espacio entre las columnas del footer */
  padding: 0 20px; /* Padding horizontal para evitar que el contenido toque los bordes en móviles */
  text-align: left; /* Alinea el texto a la izquierda dentro de cada sección */
}

/* Estilos para cada sección individual del footer */
.footer-section {
  flex: 1; /* Permite que las secciones crezcan y se encojan */
  min-width: 220px; /* Ancho mínimo para cada columna antes de envolver */
  padding: 0 10px; /* Pequeño padding interno */
}

/* Estilos específicos para la sección "Acerca de" */
.footer-about {
  flex: 1.5; /* Hace que esta columna sea un poco más ancha */
  min-width: 280px; /* Ancho mínimo ajustado para la sección de descripción */
}

/* Títulos de las secciones del footer */
.footer-section h3 {
  color: var(
    --accent-gold
  ); /* Títulos de sección con tu color de acento (Dorado/Amarillo) */
  margin-bottom: 20px;
  font-size: 1.15em;
  text-transform: uppercase; /* Mayúsculas para los títulos */
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-color); /* Línea debajo de los títulos */
  padding-bottom: 8px; /* Espacio entre el título y la línea */
}

/* Párrafos dentro de las secciones del footer */
.footer-section p {
  color: var(--text-muted); /* Color para el texto del párrafo */
  line-height: 1.6;
  font-size: 0.95em;
  margin-bottom: 0; /* Elimina margen inferior extra */
}

/* Listas (ul) dentro de las secciones del footer */
.footer-section ul {
  list-style: none; /* Elimina los puntos de la lista */
  padding: 0;
  margin: 0;
}

/* Elementos de lista (li) dentro de las secciones */
.footer-section ul li {
  margin-bottom: 12px; /* Espacio entre los elementos de la lista */
}

/* Enlaces (a) dentro de las listas del footer */
.footer-section ul li a {
  color: var(--text-muted); /* Color para los enlaces */
  text-decoration: none; /* Sin subrayado por defecto */
  transition: color 0.3s ease; /* Transición suave para el cambio de color */
  font-size: 0.95em;
}

/* Efecto hover para los enlaces del footer */
.footer-section ul li a:hover {
  color: var(--accent-gold); /* Cambio de color al pasar el ratón */
  text-decoration: underline; /* Subrayado al pasar el ratón */
}

/* Estilos para el logo del torneo en el footer */
.footer-logo {
  max-width: 100px; /* Aquí ajustas el tamaño del diámetro del círculo. Prueba con otros valores si 100px no te gusta. */
  height: 100px; /* Es crucial que la altura sea IGUAL que el ancho para que sea un círculo perfecto. */
  border-radius: 50%; /* ¡Esta es la magia! Redondea la imagen al 50% de su tamaño, haciéndola circular. */
  object-fit: cover; /* Si tu imagen original no es cuadrada, esto la recorta para que se ajuste al círculo sin deformarse. */
  margin-bottom: 20px; /* Mantiene el espacio debajo del logo. */
  display: block; /* Asegura que el logo ocupe su propia línea. */
  margin-left: auto; /* Centra el logo horizontalmente dentro de su contenedor. */
  margin-right: auto; /* Centra el logo horizontalmente dentro de su contenedor. */
}

/* Contenedor de iconos de redes sociales */
.social-icons {
  display: flex;
  gap: 15px; /* Espacio entre los iconos */
  margin-top: 15px;
  margin-bottom: 20px; /* Espacio antes del correo electrónico */
  flex-wrap: wrap; /* Asegura que los iconos se envuelvan si hay muchos */
}

/* Estilos para los enlaces de los iconos sociales */
.social-icons a {
  display: flex; /* Esto hará que el icono y el texto se alineen en una fila */
  align-items: center; /* Centra verticalmente el icono y el texto */
  gap: 8px; /* Espacio entre el icono y el texto */
  text-decoration: none; /* Quita el subrayado de los enlaces */
  color: var(
    --text-muted
  ); /* Color del texto del enlace (puedes usar --text-light si quieres que sea más brillante) */
  font-size: 0.95em; /* Tamaño de la fuente para el texto del enlace */
  margin-bottom: 12px; /* Espacio entre cada elemento de red social */
  transition: color 0.3s ease, transform 0.2s ease-in-out; /* Transiciones suaves */
}

/* Estilos para los iconos de Font Awesome dentro de los enlaces sociales */
.social-icons a .fab {
  font-size: 24px; /* Tamaño del icono (ajusta si lo quieres más grande o más pequeño) */
  color: var(
    --text-light
  ); /* Color del icono, usa tu variable de texto claro */
  transition: color 0.3s ease; /* Transición para el color del icono */
}

/* Efecto hover para el enlace completo (icono + texto) */
.social-icons a:hover {
  color: var(
    --accent-gold
  ); /* El texto del enlace se vuelve dorado al pasar el ratón */
  transform: translateX(
    5px
  ); /* Pequeño desplazamiento hacia la derecha al pasar el ratón */
}

/* Efecto hover específico para el icono (para asegurar que también cambie de color) */
.social-icons a:hover .fab {
  color: var(
    --accent-gold
  ); /* El icono también se vuelve dorado al pasar el ratón */
}

/* Estilos para las imágenes de los iconos de redes sociales */
.social-icons a img {
  width: 35px; /* Tamaño de los iconos */
  height: 35px;
  border-radius: 50%; /* Si quieres que los iconos sean redondos */
  transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
  /* Si tus iconos son oscuros y el fondo es oscuro, esta línea los hará blancos */
  /* REMUEVE ESTA LÍNEA si tus iconos ya son blancos o del color deseado */
  filter: invert(100%);
}

/* Efecto hover para los iconos de redes sociales */
.social-icons a img:hover {
  transform: scale(1.1); /* Efecto de escala al pasar el ratón */
  filter: brightness(1.2) invert(100%); /* Ligero brillo y mantiene el color invertido si lo tienes */
}

/* Estilo para el enlace de correo electrónico */
.contact-email {
  margin-top: 15px; /* Espacio sobre el correo */
}

.contact-email a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95em;
}

.contact-email a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* Estilos para la sección inferior del footer (copyright) */
.footer-bottom {
  border-top: 1px solid var(--border-color); /* Línea divisoria con el copyright */
  padding-top: 20px;
  margin-top: 40px; /* Espacio superior para separar del contenido de arriba */
  color: var(--text-muted);
  font-size: 0.85em;
  text-align: center;
}

/* ============================================= */
/* --- MEDIA QUERIES PARA RESPONSIVIDAD --- */
/* ============================================= */

/* Para pantallas medianas (tabletas) y más pequeñas */
@media (max-width: 992px) {
  .footer-container {
    justify-content: space-between; /* Distribución más ajustada */
    gap: 20px; /* Reduce un poco el espacio entre columnas */
  }

  .footer-section {
    min-width: 180px; /* Permite columnas un poco más estrechas */
  }

  .footer-about {
    flex: 1 1 100%; /* Hace que la sección "Acerca de" ocupe todo el ancho */
    text-align: center; /* Centra el contenido en esta sección */
    min-width: unset;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto; /* Centra el logo */
  }
}

/* Para pantallas muy pequeñas (móviles) */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column; /* Apila las secciones verticalmente */
    align-items: center; /* Centra los elementos apilados */
    text-align: center; /* Centra el texto en móviles */
    padding: 0 15px; /* Ajusta el padding para pantallas muy pequeñas */
  }

  .footer-section {
    width: 100%; /* Ocupa todo el ancho disponible */
    margin-bottom: 30px; /* Espacio entre secciones apiladas */
    padding: 0;
    text-align: center; /* Asegura el centrado de texto */
  }

  .footer-section:last-child {
    margin-bottom: 0; /* Elimina margen inferior de la última sección */
  }

  .footer-section h3 {
    text-align: center; /* Centra los títulos */
  }

  .social-icons {
    justify-content: center; /* Centra los iconos en móviles */
  }
}

/* ============================================= */
/* --- ESTILOS ESPECÍFICOS PARA FAQ.HTML --- */
/* ============================================= */
.hero.small-hero {
  height: 40vh;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero.small-hero .hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.hero.small-hero .hero-content .subtitle {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.hero.small-hero .tournament-logo,
.hero.small-hero .countdown-timer,
.hero.small-hero .tournament-info,
.hero.small-hero .cta-button {
  display: none;
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: -1.5rem auto 3rem auto;
}

.section-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.section-cta .cta-button {
  margin: 0 1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.faq-category {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.faq-category h3 {
  font-size: 2rem;
  color: var(--primary-red);
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
  position: relative;
}

.faq-category h3 i {
  margin-right: 15px;
  font-size: 1.8rem;
  vertical-align: middle;
  color: var(--accent-gold);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.25rem;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  padding-right: 15px;
}

.faq-question:hover {
  color: var(--primary-red);
}

.faq-question::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8em;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 15px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1rem 15px 0 15px;
}

.faq-answer p {
  margin-bottom: 0.5rem;
}

.faq-answer a {
  color: var(--primary-red);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.faq-answer a:hover {
  color: var(--accent-gold);
}

.faq-contact-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 2.5rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.faq-contact-cta p {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.faq-contact-cta .cta-button {
  margin: 0 10px 15px;
}

.download-cta {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.cta-button.small-button {
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 5px;
  color: var(--text-light);
}

.cta-button.small-button i {
  margin-right: 8px;
  color: var(--text-light);
}

/* ============================================= */
/* --- ESTILOS ESPECÍFICOS PARA SCHEDULE.HTML --- */
/* ============================================= */
.schedule-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 3rem;
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.schedule-filter label {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-right: 10px;
  align-self: center;
}

.schedule-filter select {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23cccccc%22%20d%3D%22M287%2C197.3L159.9%2C69.8c-3.9-3.9-10.1-3.9-14%2C0L5.4%2C197.3c-3.9%2C3.9-3.9%2C10.1%2C0%2C14l14%2C14c3.9%2C3.9%2C10.1%2C3.9%2C14%2C0l114.6-114.4l114.6%2C114.4c3.9%2C3.9%2C10.1%2C3.9%2C14%2C0l14-14C290.9%2C207.4%2C290.9%2C201.2%2C287%2C197.3z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 12px auto;
  transition: border-color 0.3s ease;
}

.schedule-filter select:hover {
  border-color: var(--primary-red);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.schedule-day {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.schedule-day h3 {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

.match-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-card:last-of-type {
  margin-bottom: 0;
}

.match-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.match-time {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-red);
  min-width: 120px;
  text-align: left;
}

.match-teams {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
  gap: 15px;
  margin: 0 1rem;
}

.team-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
}

.match-teams .vs {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.match-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 180px;
  text-align: right;
}

.match-stage {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.match-stream-link {
  font-size: 1rem;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.match-stream-link:hover {
  color: var(--primary-red);
}

.match-stream-link i {
  margin-right: 8px;
}

.no-matches-message {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

/* ============================================= */
/* --- ANIMACIONES Y RESPONSIVIDAD --- */
/* ============================================= */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 992px) {
  body {
    padding-top: 60px;
  }
  .navbar {
    padding: 0.6rem 1rem;
  }
  .nav-logo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
  }
  .nav-logo span {
    font-size: 1rem;
  }
  .scoreboard-container {
    grid-template-columns: 1fr;
  }
  .countdown-timer {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .time-block {
    min-width: 80px;
    padding: 10px 15px;
  }
  .time-block span {
    font-size: 2.5rem;
  }
  .time-block small {
    font-size: 0.8rem;
  }
  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
  }
  .footer-about,
  .footer-links,
  .footer-contact,
  .footer-social {
    text-align: center;
  }
  .footer-social .social-icons {
    justify-content: center;
  }
  .footer-contact ul,
  .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .footer-contact ul li,
  .footer-links ul li {
    padding: 0 5px;
  }
  .footer-links ul li a,
  .footer-contact ul li a {
    display: inline-block;
    padding: 0.2rem 0.5rem;
  }
  .match-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }
  .match-time {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  .match-teams {
    width: 100%;
    margin: 10px 0;
  }
  .match-info {
    width: 100%;
    align-items: center;
    margin-top: 10px;
  }
  .hero.small-hero .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero.small-hero .hero-content .subtitle {
    font-size: 1.1rem;
  }
  .faq-category {
    padding: 1.5rem;
  }
  .faq-category h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
  }
  .faq-category h3 i {
    font-size: 1.6rem;
    margin-right: 10px;
  }
  .faq-item {
    padding: 1rem 0;
  }
  .faq-question {
    font-size: 1.15rem;
  }
  .faq-answer {
    font-size: 0.98rem;
  }
  .faq-contact-cta {
    padding: 1.8rem;
  }
  .faq-contact-cta p {
    font-size: 1.2rem;
  }
  .faq-contact-cta .cta-button {
    margin: 0 8px 12px;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }
  .tournament-info {
    flex-direction: column;
    gap: 1rem;
    font-size: 1rem;
  }
  .nav-menu {
    display: none;
  }
  .container {
    padding: 2rem 1rem;
  }
  .team-card,
  .organizer-card,
  .caster-card {
    padding: 1rem;
  }
  .team-card h3,
  .organizer-card h3,
  .caster-card h4 {
    font-size: 1.3rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1rem;
  }
  .footer-about,
  .footer-links,
  .footer-contact,
  .footer-social {
    text-align: center;
  }
  .footer-social .social-icons {
    justify-content: center;
  }
  .footer-contact ul,
  .footer-links ul {
    flex-direction: column;
    gap: 5px;
  }
  .footer-contact ul li a,
  .footer-links ul li a {
    text-align: center;
  }
  .schedule-filter {
    flex-direction: column;
    align-items: center;
  }
  .schedule-filter label,
  .schedule-filter select {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
  }
  .schedule-filter label {
    text-align: center;
    margin-right: 0;
  }
  .schedule-filter select {
    background-position: right 10px center;
  }
  .schedule-day h3 {
    font-size: 1.6rem;
  }
  .team-name {
    font-size: 1.1rem;
  }
  .match-time {
    font-size: 1rem;
  }
  .match-stage {
    font-size: 0.85rem;
  }
  .match-stream-link {
    font-size: 0.9rem;
  }
  .hero.small-hero .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero.small-hero .hero-content .subtitle {
    font-size: 0.95rem;
  }
  .faq-category h3 {
    font-size: 1.5rem;
    text-align: center;
  }
  .faq-question {
    font-size: 1.05rem;
  }
  .faq-answer {
    font-size: 0.9rem;
  }
  .faq-contact-cta {
    padding: 1.2rem;
  }
  .faq-contact-cta p {
    font-size: 1rem;
  }
  .faq-contact-cta .cta-button {
    display: block;
    margin: 8px auto;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero .subtitle {
    font-size: 0.9rem;
  }
  .cta-button {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .countdown-timer {
    gap: 0.8rem;
  }
  .time-block {
    min-width: 70px;
    padding: 8px 12px;
  }
  .time-block span {
    font-size: 2rem;
  }
  .time-block small {
    font-size: 0.7rem;
  }
  .nav-logo {
    font-size: 1rem;
  }
  .nav-logo img {
    height: 35px;
  }
  .schedule-day {
    padding: 1.5rem;
  }
  .schedule-day h3 {
    font-size: 1.4rem;
  }
  .match-card {
    padding: 1rem;
  }
  .team-name {
    font-size: 1rem;
  }
  .match-teams .vs {
    font-size: 0.9rem;
  }
  .faq-category h3 {
    font-size: 1.3rem;
  }
  .faq-question {
    font-size: 1rem;
  }
}

/* ============================================= */
/* --- HORARIOS DE PARTIDAS (schedule.html) --- */
/* ============================================= */
.schedule-filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.schedule-filter-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.schedule-filter-group label {
  color: var(--text-muted);
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 5px;
}

.schedule-filter-group select {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 1em;
  min-width: 180px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23f5f5f5%22%20d%3D%22M287%2C197.3L159.2%2C69.5c-3.1-3.1-8.2-3.1-11.3%2C0L5.4%2C197.3c-3.1%2C3.1-3.1%2C8.2%2C0%2C11.3l11.3%2C11.3c3.1%2C3.1%2C8.2%2C3.1%2C11.3%2C0l114.5-114.5l114.5%2C114.5c3.1%2C3.1%2C8.2%2C3.1%2C11.3%2C0l11.3-11.3C290.1%2C205.5%2C290.1%2C200.4%2C287%2C197.3z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.schedule-filter-group select:focus {
  border-color: var(--accent-gold);
  outline: none;
}

.schedule-list {
  margin-top: 30px;
}

.schedule-day {
  background-color: var(--bg-light);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.schedule-day h3 {
  color: var(--accent-gold);
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.match-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-dark);
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid var(--border-color);
}

.match-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.match-details-left,
.match-details-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  width: 100%;
}

.match-time {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-time i {
  color: var(--text-muted);
}

.match-stage {
  font-size: 0.9em;
  color: var(--text-muted);
  font-weight: 500;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.3em;
  font-weight: 700;
  color: var(--text-light);
  margin: 10px 0;
  text-align: center;
  flex-wrap: wrap;
}

.match-teams .vs {
  color: var(--primary-red);
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
}

.match-stream-link {
  background-color: var(--primary-red);
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.match-stream-link:hover {
  background-color: #c82333;
}

.no-matches-message {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2em;
  padding: 50px 0;
  background-color: var(--bg-light);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .schedule-filter-container {
    flex-direction: row;
    justify-content: space-around;
    padding: 25px 30px;
  }
  .schedule-filter-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .match-card {
    display: grid;
    grid-template-columns: 0.8fr 2fr 0.8fr;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
  }
  .match-details-left,
  .match-details-right {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
    gap: 15px;
    width: auto;
  }
  .match-details-left {
    justify-content: flex-start;
  }
  .match-teams {
    flex: 1;
    margin: 0 20px;
    font-size: 1.5em;
  }
  .match-details-right {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .match-teams {
    font-size: 1.6em;
  }
}

/* ============================================= */
/* --- RESPONSIVIDAD PARA SCHEDULE --- */
/* ============================================= */
@media (max-width: 992px) {
  .match-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
    gap: 0.5rem;
  }
  .match-card::before {
    display: none;
  }
  .match-time {
    text-align: center;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 1.2rem;
  }
  .match-teams {
    margin: 10px 0;
    gap: 0;
  }
  .match-teams .vs {
    margin: 0;
  }
  .team-name {
    font-size: 1.3rem;
  }
  .match-info {
    align-items: center;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 10px;
    margin-top: 10px;
  }
  .match-stage {
    font-size: 0.95rem;
  }
  .match-stream-link {
    font-size: 0.95rem;
  }
  .schedule-filter {
    flex-direction: column;
    align-items: center;
  }
  .schedule-filter label,
  .schedule-filter select {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
  }
  .schedule-filter label {
    text-align: center;
    margin-right: 0;
  }
  .schedule-filter select {
    background-position: right 10px center;
  }
  .schedule-day h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .match-card {
    padding: 1rem;
  }
  .team-name {
    font-size: 1.2rem;
  }
  .match-time {
    font-size: 1.1rem;
  }
  .match-stage {
    font-size: 0.85rem;
  }
  .match-stream-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .match-card {
    padding: 0.8rem;
  }
  .team-name {
    font-size: 1.1rem;
  }
  .match-time {
    font-size: 1rem;
  }
}

/* =================================================================== */
/* --- ESTILOS PARA EL MODAL (Versión Profesional) --- */
/* =================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro semi-transparente */
  display: flex; /* Usamos flexbox para centrar el contenido */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Asegura que esté por encima de todo */

  /* Controlamos la visibilidad con opacity y visibility para las transiciones */
  visibility: hidden; /* Oculto por defecto */
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  /* IMPORTANTE: NO PONGAS 'display: none;' aquí si quieres transiciones */
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background-color: #1a1a1a;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 0
  );
  background-size: 20px 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transform: translateY(30px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.close-modal-button {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  font-size: 1.2rem;
  color: var(--text-muted);
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal-button:hover {
  color: #fff;
  background-color: var(--primary-red);
  transform: rotate(180deg) scale(1.1);
}

#modal-team-details {
  padding: 2.5rem;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

.modal-team-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: -80px;
  margin-bottom: 1rem;
  border: 6px solid #1a1a1a;
  box-shadow: 0 0 25px var(--accent-gold);
}

#modal-team-details h3 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  background: linear-gradient(45deg, var(--accent-gold), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#modal-team-details .team-group {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.team-motto {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2.5rem;
  max-width: 80%;
  text-align: center;
}

#modal-team-details h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

#modal-team-details h4::before,
#modal-team-details h4::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: var(--border-color);
}

#modal-team-details h4::before {
  margin-right: 1em;
}

#modal-team-details h4::after {
  margin-left: 1em;
}

#modal-team-details ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

#modal-team-details li {
  background-color: transparent;
  padding: 12px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

#modal-team-details li:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

#modal-team-details li:last-child {
  border-bottom: none;
}

#modal-team-details li i {
  margin-right: 15px;
  color: var(--accent-gold);
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

#modal-team-details li .role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 8px;
}

/* ============================================= */
/* --- PÁGINA DE ADMINISTRACIÓN (admin.html) --- */
/* ============================================= */
.admin-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.admin-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.admin-card-title {
  font-size: 1.8rem;
  color: var(--accent-gold);
  text-align: center;
  margin: 0 0 2rem 0;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-card-title i {
  margin-right: 15px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea,
.form-group input[type="datetime-local"] {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-group input[type="datetime-local"]:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 10px rgba(230, 46, 45, 0.3);
}

.form-group input[type="datetime-local"] {
  color-scheme: dark;
}

.form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.form-group
  input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.form-group input[type="file"] {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  padding: 8px;
}

.form-group input[type="file"]::file-selector-button {
  background-color: var(--primary-red);
  color: var(--text-light);
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-group input[type="file"]::file-selector-button:hover {
  background-color: #c82333;
}

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.form-actions .cta-button {
  margin-top: 0;
}

.cta-button.submit-button,
.cta-button.delete-button {
  color: var(--text-light);
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.cta-button.submit-button {
  background-color: var(--primary-red);
}

.cta-button.submit-button:hover {
  background-color: #c82333;
  transform: translateY(-2px);
}

.cta-button.delete-button {
  background-color: var(--primary-red-dark);
}

.cta-button.delete-button:hover {
  background-color: #a71d2a;
  transform: translateY(-2px);
}

.cta-button.submit-button.small-button {
  padding: 8px 18px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.cta-button.offline-button {
  background-color: var(--text-muted);
}

.cta-button.offline-button:hover {
  background-color: var(--text-light);
  color: var(--bg-dark);
}

.admin-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2.5rem 0;
}

.hidden {
  display: none !important;
}

#news-list-container,
.admin-list-container {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item,
.admin-list-item {
  background-color: var(--bg-dark);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-red);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.news-item-content h5,
.admin-list-item-content h5 {
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.news-item-content p,
.admin-list-item-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.news-item-actions,
.admin-list-item-actions {
  display: flex;
  gap: 0.5rem;
}

.news-item-actions button,
.admin-list-item-actions button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s;
}

.news-item-actions button.edit-btn:hover,
.admin-list-item-actions button.edit-btn:hover {
  color: var(--primary-blue);
}

.news-item-actions button.delete-btn:hover,
.admin-list-item-actions button.delete-btn:hover {
  color: var(--primary-red-dark);
}

#members-list-container {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-dark);
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.member-item-info .role {
  font-size: 0.8rem;
  color: var(--text-muted);
  background-color: var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

.member-item .delete-member-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.member-item .delete-member-btn:hover {
  color: var(--primary-red-dark);
}

.sub-form {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-top: 1.5rem;
  background-color: rgba(0, 0, 0, 0.1);
}

.sub-form h5 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  display: flex; /* ¡¡¡AÑADE ESTA LÍNEA!!! */
  transition: opacity 0.3s ease;
}

.modal-content {
  background-color: var(--bg-light);
  padding: 2.5rem;
  border-radius: 12px;
  border-top: 5px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  width: 90%;
  max-width: 400px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-content .modal-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.modal-content .modal-message {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-light);
}

.modal-content.success {
  border-top-color: var(--primary-green);
}

.modal-content.success .modal-icon {
  color: var(--primary-green);
}

.modal-content.error {
  border-top-color: var(--primary-red-dark);
}

.modal-content.error .modal-icon {
  color: var(--primary-red-dark);
}

.modal-content.confirmation .modal-icon {
  color: var(--accent-gold);
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.modal-actions .cta-button {
  margin-top: 0;
  transform: none;
}

.modal-actions .cta-button:hover {
  transform: none;
  filter: brightness(1.1);
}

.log-item {
  padding: 0;
  flex-direction: column;
  align-items: stretch;
}

.log-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.log-action {
  font-weight: 700;
  color: var(--accent-gold);
}

.log-action i {
  margin-right: 8px;
}

.log-timestamp {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.log-item-body {
  padding: 1rem;
  font-size: 0.95rem;
}

.log-details {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.log-responsible {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.log-responsible i {
  margin-right: 8px;
}

.social-links-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-link-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link-item select {
  flex-basis: 150px;
}

.social-link-item input {
  flex-grow: 1;
}

.remove-social-link-btn {
  background-color: var(--primary-red-dark);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.social-link-item select,
.social-link-item input[type="url"] {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 15px;
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease-in-out;
}

.social-link-item select:focus,
.social-link-item input[type="url"]:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 10px 2px rgba(230, 45, 45, 0.4);
}

.social-link-item select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23999%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

/* =================================================================== */
/* --- ESTILOS PARA LISTAS CON IMAGEN (Casters, etc.) --- */
/* =================================================================== */
.admin-list-item-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-grow: 1;
}

.admin-list-item-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.admin-list-item-actions button {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.admin-list-item-actions button:hover {
  background-color: var(--border-color);
  color: #fff;
}

.admin-list-item-actions .edit-caster-btn:hover {
  color: var(--primary-blue);
}

.admin-list-item-actions .delete-caster-btn:hover {
  color: var(--primary-red);
}

/* =================================================================== */
/* --- ESTILOS PARA FILA DE REDES SOCIALES (Admin Panel) --- */
/* =================================================================== */
.admin-form-row.social-link-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link-row .social-network-select,
.social-link-row .social-url-input {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.social-link-row .social-network-select:focus,
.social-link-row .social-url-input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 10px rgba(230, 46, 45, 0.3);
}

.social-link-row .social-network-select {
  flex: 0 1 180px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23999%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.social-link-row .social-url-input {
  flex-grow: 1;
}

.social-link-row .remove-social-btn {
  background-color: var(--primary-red-dark);
  color: white;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  flex-shrink: 0;
}

.social-link-row .remove-social-btn:hover {
  background-color: #a71d2a;
  transform: scale(1.1);
}

/* ============================================= */
/* --- ESTILO PARA FORMULARIO DE GESTIÓN DE USUARIOS --- */
/* ============================================= */
#card-usuarios .sub-form {
  padding: 2rem;
  background-color: #111;
  border-color: #444;
}

#card-usuarios .sub-form h3 {
  text-align: left;
  font-size: 1.3rem;
  color: var(--text-light);
}

#create-user-form .form-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

#create-user-form .form-group:nth-child(1) {
  grid-column: span 2;
}

#create-user-form .form-group:nth-child(2) {
  grid-column: span 2;
}

#create-user-form .form-group:nth-child(3) {
  grid-column: span 1;
}

#create-user-form label {
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-muted);
}

#create-user-form input,
#create-user-form select {
  background-color: var(--bg-dark);
  border: 1px solid #555;
  border-radius: 6px;
  padding: 12px 15px;
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

#create-user-form input:focus,
#create-user-form select:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 10px 2px rgba(230, 45, 45, 0.4);
}

#create-user-form .submit-button {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}

/* ============================================= */
/* --- MENSAJE PARA CUANDO NO HAY CONTENIDO --- */
/* ============================================= */
.info-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px dashed #444;
  border-radius: 8px;
  color: #ccc;
}

.info-message i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #e84118;
}

.info-message p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 10px auto;
}

/* =================================================================== */
/* --- ESTILOS PARA EL MODAL DE CASTER (VERSIÓN PROFESIONAL) --- */
/* =================================================================== */
#caster-modal .modal-content {
  background-color: var(--card-bg); /* Fondo oscuro de tarjeta */
  border-radius: 12px; /* Bordes redondeados */
  padding: 40px 30px; /* Padding generoso */
  width: 90%; /* Ancho responsivo */
  max-width: 650px; /* Ancho máximo para pantallas grandes */
  position: relative; /* Para posicionar el botón de cierre */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Sombra prominente */
  color: var(--text-color); /* Color de texto claro */
  text-align: center; /* Centra el contenido por defecto */
  max-height: 90vh; /* Altura máxima para evitar desbordamiento en pantallas pequeñas */
  overflow-y: auto; /* Permite desplazamiento vertical si el contenido es muy largo */
  transform: translateY(
    20px
  ); /* Pequeño desplazamiento inicial para efecto de entrada */
  opacity: 0; /* Inicia invisible para la animación */
  transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* Animación de entrada */
}

/* Animación cuando el modal se hace visible */
.modal-overlay.active #caster-modal .modal-content {
  transform: translateY(0); /* Se desliza a su posición final */
  opacity: 1; /* Se vuelve completamente visible */
}

#modal-caster-details {
  padding: 2rem 2.5rem 2.5rem;
  text-align: center;
}

.modal-caster-photo {
  width: 120px; /* Tamaño de la foto */
  height: 120px;
  border-radius: 50%; /* Circular */
  object-fit: cover; /* Asegura que la imagen cubra el área */
  border: 4px solid var(--accent-gold); /* Borde dorado para destacar */
  margin-bottom: 20px;
  display: block; /* Para centrar con 'margin-left/right: auto' */
  margin-left: auto;
  margin-right: auto;
}

/* Nombre del Caster */
.modal-caster-name {
  font-size: 2.2rem; /* Grande y prominente */
  font-weight: 700; /* Negrita */
  color: var(--primary-blue); /* Color distintivo para el nombre */
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); /* Pequeña sombra de texto */
}

/* Descripción del Caster */
.modal-caster-description {
  font-size: 1rem;
  line-height: 1.6; /* Espaciado entre líneas para mejor lectura */
  margin-bottom: 30px;
  color: var(--text-muted); /* Texto ligeramente atenuado para el cuerpo */
  text-align: left; /* Alinea el texto de la descripción a la izquierda */
}

#modal-caster-details h3 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

#modal-caster-details p.caster-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  text-align: left;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--accent-gold);
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.modal-social-section {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.modal-social-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.modal-social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.modal-social-links a {
  color: var(--text-muted);
  font-size: 2.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.modal-social-links a:hover {
  color: var(--accent-gold);
  transform: translateY(-5px) scale(1.1);
}

/* ============================================= */
/* --- MENSAJE DE CONTENIDO PENDIENTE --- */
/* ============================================= */

.no-teams-message {
  /* Si está dentro de un grid, ocupa todo el ancho */
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background-color: rgba(18, 18, 18, 0.3); /* Fondo muy sutil */
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  min-height: 300px; /* Altura mínima para que tenga buena presencia */

  /* Usamos Flexbox para centrar perfectamente el contenido */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* Transición suave por si aparece/desaparece */
  transition: all 0.3s ease;
}

/* Estilo para el ícono */
.no-teams-message i {
  font-size: 3.5rem; /* Tamaño grande para el ícono */
  color: var(--accent-gold); /* Usamos el color dorado de acento */
  margin-bottom: 1.5rem; /* Espacio entre el ícono y el texto */
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.4); /* Efecto de brillo sutil */
}

/* Estilo para el párrafo de texto */
.no-teams-message p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-light); /* Un texto claro para que sea legible */
  max-width: 450px; /* Evita que el texto sea demasiado ancho */
  line-height: 1.6;
}

/* No olvides la clase .hidden que ya tienes para mostrar/ocultar el div */
.hidden {
  display: none !important;
}

/* ================================================== */
/* --- ESTILO DE BOTÓN VERDE Y CENTRADO --- */
/* ================================================== */

/* 1. Contenedor del botón: Usa Flexbox para centrarlo. */
.stream-card-footer {
  display: flex;
  justify-content: center; /* Centra el botón horizontalmente */
  padding: 1.25rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
}

/* 2. Estilo completo del botón "Ver Canal". */
.stream-channel-link {
  /* --- Color y Apariencia --- */
  background-image: linear-gradient(
    45deg,
    #1d976c 0%,
    var(--primary-green) 50%,
    #2ecc71 100%
  );
  background-size: 200% auto;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 25px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  transition: all 0.4s ease-in-out;

  /* --- Centrado y Dimensiones --- */
  width: auto; /* Permite que el botón se ajuste a su contenido */
  display: inline-flex; /* Necesario para el centrado y el gap */
  align-items: center;
  gap: 10px;
}

/* 3. Efecto al pasar el ratón. */
.stream-channel-link:hover {
  background-position: right center; /* Anima el gradiente */
  box-shadow: 0 7px 25px rgba(40, 167, 69, 0.5);
  transform: translateY(-3px);
}

/* =================================================== */
/* --- MENSAJE PARA "NO HAY HORARIOS" (CON ESTILO) --- */
/* =================================================== */

.no-matches-message {
  /* Estilo de la "caja" */
  background-color: var(--bg-light);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 4rem 2rem;
  margin-top: 2rem;

  /* --- CAMBIOS PRINCIPALES AQUÍ --- */
  border-top: 4px solid var(--accent-gold); /* Borde superior de acento dorado */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Sombra para darle profundidad */

  /* Estilos para centrar el contenido */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Icono con color de acento */
.no-matches-message i {
  font-size: 2.5rem;
  color: var(--accent-gold); /* Ícono en color dorado */
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); /* Ligero brillo */
}

/* Título principal del mensaje */
.no-matches-message h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* Párrafo o texto secundario */
.no-matches-message p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 450px;
}

/* =================================================== */
/* --- CSS RECONSTRUIDO Y PROFESIONAL PARA STAFF --- */
/* =================================================== */

/* --- 1. Estructura General y Título de Neón --- */
#staff-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

#staff-section .section-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--primary-red),
    0 0 35px var(--primary-red);
}
#staff-section .section-title i {
  color: var(--primary-red);
  text-shadow: 0 0 15px var(--primary-red);
}

#staff-section .section-subtitle {
  margin-bottom: 4rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* --- 2. Contenedor de Categoría --- */
.staff-category {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  text-align: center; /* <<< AÑADIDO: Centra el título */
}

/* Título de Categoría con línea auto-ajustable */
.category-title {
  display: inline-block; /* <<< CAMBIO: Se ajusta al ancho del texto */
  position: relative;
  font-size: 1.6rem;
  font-weight: 600;
  color: #ff7300;
  padding-bottom: 1rem; /* Espacio para la línea */
  margin-bottom: 2.5rem;
  border-bottom: none;
  text-transform: uppercase;
}

.category-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0; /* <<< CAMBIO: Se alinea con el inicio del texto */
  width: 100%; /* <<< CAMBIO: Ocupa el 100% del ancho del texto */
  height: 3px;
  background-color: var(--accent-gold);
  border-radius: 2px;
  transform: none; /* Ya no se necesita el transform */
}

.category-title i {
  margin-right: 12px;
  color: var(--accent-gold);
}

/* --- 3. Rejilla y Tarjetas de Staff (CON MEJOR FORMATO) --- */
.staff-grid {
  display: grid;
  gap: 1.5rem;
}

.grid-layout-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-layout-2 {
  grid-template-columns: repeat(2, 1fr);
}

.staff-card {
  background: var(--bg-dark);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Clave para que el diseño interno funcione */
}
.staff-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-gold);
}

/* Estructura interna de la tarjeta - MEJORADA */
.card-header {
  padding: 1.5rem 1rem 1rem 1rem;
  background-color: transparent;
  display: flex; /* Añadido para centrar la imagen */
  justify-content: center; /* Añadido para centrar la imagen */
}

/* Estilo profesional para TODAS las imágenes de perfil */
.card-header img {
  width: 110px; /* Tamaño fijo y uniforme */
  height: 110px; /* Tamaño fijo y uniforme */
  border-radius: 100%; /* <<< LA CLAVE: HACE TODAS LAS IMÁGENES CIRCULARES */
  object-fit: cover; /* Se asegura que la foto llene el círculo sin deformarse */
  border: 3px solid var(--border-color);
  background-color: rgba(
    0,
    0,
    0,
    0.2
  ); /* Fondo por si un logo es transparente */
  transition: border-color 0.3s ease;
}

.staff-card:hover .card-header img {
  border-color: var(--accent-gold);
}

/* Si quieres que una imagen sea un logo cuadrado, añade la clase .is-logo en el HTML */
.card-header img.is-logo {
  object-fit: contain;
  padding: 10px; /* Un pequeño espacio para que el logo respire dentro del círculo */
}

.card-body {
  padding: 1.5rem 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-name {
  font-size: 1.5rem; /* Letra más grande */
  font-weight: 700;
  color: var(--accent-gold); /* Nombre resalta en dorado */
  line-height: 1.3;
}
.card-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  flex-grow: 1; /* Empuja el footer hacia abajo */
}
.card-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto; /* Se asegura de estar al fondo */
}
.social-icon {
  font-size: 1.5rem; /* Iconos más grandes */
  color: var(--text-muted);
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-icon:hover {
  color: var(--accent-gold);
  transform: scale(1.15);
}

/* Estilo para tarjetas resaltadas */
.staff-card.highlighted {
  background: linear-gradient(145deg, var(--primary-red), #e85a0c);
  border-color: #e85a0c;
}
.staff-card.highlighted .card-name {
  color: #fff;
}
.staff-card.highlighted .card-role {
  color: rgba(255, 255, 255, 0.8);
}
.staff-card.highlighted .social-icon {
  color: #fff;
}
.staff-card.highlighted .social-icon:hover {
  color: var(--bg-dark);
}
.staff-card.highlighted .card-footer {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* --- 4. Sección de Datos Relevantes --- */
.info-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.info-card {
  background-color: var(--bg-dark);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.info-card h4 {
  font-size: 1.5rem;
  color: var(--accent-gold);
}
.info-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}
.info-card .cta-button {
  width: 100%;
  max-width: 280px;
}

/* --- 5. Responsividad para las rejillas --- */
@media (max-width: 992px) {
  .grid-layout-4,
  .grid-layout-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .grid-layout-4,
  .grid-layout-2 {
    grid-template-columns: 1fr;
  }
}

/* =================================================== */
/* --- CORRECCIÓN PARA BOTÓN DE DESCARGA PDF (FAQ) --- */
/* =================================================== */

/* Contenedor del botón */
.download-cta {
  text-align: center;
  margin: 1.5rem 0; /* Un poco más de espacio vertical */
}

/* Estilo específico y completo para el botón de PDF */
.cta-button.small-button {
  /* Apariencia del botón */
  background-color: var(--primary-red); /* Fondo rojo para la acción */
  color: var(
    --text-light
  ) !important; /* Texto blanco (con !important por si acaso) */
  border: 1px solid var(--primary-red);
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;

  /* Layout para alinear icono y texto correctamente */
  display: inline-flex; /* La clave para alinear contenido interno */
  align-items: center;
  gap: 8px; /* Espacio entre el icono y el texto */
}

/* Efecto al pasar el ratón */
.cta-button.small-button:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-dark) !important;
  transform: translateY(-3px);
}

/* Estilo para el icono DENTRO del botón */
.cta-button.small-button i {
  font-size: 1.1em; /* Tamaño del icono relativo al texto */
  color: inherit; /* Hereda el color del botón (blanco o negro en hover) */
}

/* ======================================================= */
/* --- CSS ULTRA PROFESIONAL PARA ANUNCIOS --- */
/* ======================================================= */

#announcements-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* Espacio entre cada tarjeta de anuncio */
}

/* --- La Tarjeta de Anuncio --- */
.announcement-card {
  background: var(--bg-dark); /* Fondo oscuro principal */
  border-radius: 12px;
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary-red); /* << El acento de color clave */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
.announcement-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}

/* --- Imagen del Anuncio --- */
.announcement-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color); /* Línea sutil que separa la imagen del contenido */
}

/* --- Contenido de la Tarjeta --- */
.announcement-content {
  padding: 2rem 2.5rem;
}

/* --- Metadata (Fecha y "hace X tiempo") --- */
.announcement-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase; /* Todo en mayúsculas */
  letter-spacing: 0.5px;
}
.announcement-meta .time-ago {
  font-style: normal; /* Le quitamos la cursiva */
}

/* --- Título del Anuncio --- */
.announcement-title {
  font-size: 1.8rem; /* Tamaño más limpio y contundente */
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
}

/* --- Separador <hr> (Lo ocultamos, no está en el diseño) --- */
.announcement-content hr {
  display: none;
}

/* --- Texto del Anuncio (generado por Markdown) --- */
.announcement-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted); /* Color más suave para el texto largo */
}

/* Estilos para los elementos que vienen de Markdown */
.announcement-text p {
  margin-bottom: 1em;
}
.announcement-text p:last-child {
  margin-bottom: 0;
}
.announcement-text strong {
  color: var(--text-light); /* Hacemos que la negrita resalte más */
}
.announcement-text a {
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--primary-red);
  transition: all 0.3s ease;
}
.announcement-text a:hover {
  color: var(--accent-gold);
  border-bottom-style: solid;
}

/* Estilo para los enlaces con ícono como en la imagen de ejemplo */
.announcement-text a[href*="click.game"] {
  /* Selector de ejemplo */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: none;
  text-decoration: none;
}

/* ============================================= */
/* --- CSS MEJORADO PARA PANEL DE ADMIN --- */
/* ============================================= */

/* --- Arreglo para Checkbox de Playoffs --- */
.form-group-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.form-group-checkbox input[type="checkbox"] {
  width: auto; /* Permite que el checkbox tenga su tamaño natural */
  height: 20px;
  width: 20px;
  accent-color: var(--primary-red); /* Cambia el color del check */
}
.form-group-checkbox label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}

/* --- Botones con Estado de Carga --- */
button:disabled {
  opacity: 0.7;
  cursor: wait; /* Cambia el cursor a espera */
}
button .fa-spinner {
  margin-right: 8px;
}

/* --- Diseño Mejorado para Lista de Logs --- */
#card-logs .admin-list-container {
  max-height: 600px; /* Altura máxima para la lista */
  overflow-y: auto; /* Scroll vertical si excede la altura */
  padding-right: 10px; /* Espacio para la barra de scroll */
}

.log-item {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 0; /* Quitamos el padding para controlar el header y body por separado */
  display: block; /* Lo cambiamos de flex a block */
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}
.log-action {
  font-weight: 700;
  color: var(--accent-gold);
}
.log-action i {
  margin-right: 8px;
}
.log-timestamp {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.log-body {
  padding: 1.25rem;
  font-size: 0.95rem;
}
.log-details {
  color: var(--text-light);
  margin-bottom: 1rem;
  word-break: break-word; /* Evita que texto largo rompa el diseño */
}
.log-responsible {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.log-responsible i {
  margin-right: 8px;
}
.log-responsible span {
  margin-left: 5px;
  font-style: italic;
}

/* --- Estilos para la sección de Redes Sociales en el formulario del Caster --- */

.sub-form h4 {
  margin-bottom: 15px;
  color: var(--text-color-light); /* O el color de tus títulos */
}

/* Contenedor principal de los inputs de social media */
.sub-form > div:has(> #social-platform-select, > #social-url-input) {
  display: flex;
  flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
  gap: 15px; /* Espacio entre los elementos */
  align-items: flex-end; /* Alinea los elementos en la parte inferior */
  margin-bottom: 20px;
}

/* Estilos para los grupos de formulario dentro de esta sección */
.sub-form
  > div:has(> #social-platform-select, > #social-url-input)
  > .form-group {
  flex: 1; /* Permite que los campos crezcan y ocupen espacio */
  min-width: 150px; /* Ancho mínimo para cada campo */
}

/* Ajuste específico para el input de URL, para que ocupe más espacio */
.sub-form
  > div:has(> #social-platform-select, > #social-url-input)
  > .form-group:nth-child(2) {
  flex: 2; /* Le da el doble de espacio que al select */
}

/* Estilo general para los inputs pequeños (selects y text inputs) */
.small-input {
  width: 100%; /* Ocupa todo el ancho de su contenedor */
  padding: 10px 15px;
  border: 1px solid var(--input-border-color); /* Color de borde de tu elección */
  border-radius: 8px;
  background-color: var(--input-bg-color); /* Color de fondo de tu elección */
  color: var(--text-color); /* Color del texto del input */
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box; /* Incluye padding y borde en el ancho total */
}

.small-input:focus {
  border-color: var(--accent-gold); /* Color del borde al enfocar */
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2); /* Sombra suave al enfocar */
  outline: none; /* Elimina el contorno por defecto del navegador */
}

/* Estilos para el botón "Añadir Red" */
#add-social-button {
  padding: 10px 20px;
  min-width: unset; /* Deshabilita el min-width del cta-button general si lo tiene */
  white-space: nowrap; /* Evita que el texto se rompa */
  margin-bottom: 0; /* Asegura que no tenga margen inferior extra */
  height: 40px; /* Ajusta la altura para que coincida con los inputs */
  line-height: 20px; /* Alinea el texto verticalmente */
}

#add-social-button i {
  margin-right: 8px;
}

/* Estilos para los elementos de redes sociales ya añadidos */
.social-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(
    --card-bg-color-dark
  ); /* Un fondo ligeramente más oscuro */
  border: 1px solid var(--input-border-color);
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-color);
}

.social-item span {
  flex-grow: 1;
}

.social-item a {
  color: var(--primary-blue); /* Color de enlace, ajusta según tu paleta */
  text-decoration: none;
  word-break: break-all; /* Rompe la URL si es muy larga */
}

.social-item a:hover {
  text-decoration: underline;
}

.social-item .delete-social-btn {
  background: none;
  border: none;
  color: var(--primary-red-dark); /* Color del icono de eliminar */
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
  margin-left: 10px;
  transition: color 0.3s ease;
}

.social-item .delete-social-btn:hover {
  color: var(--primary-red-light);
}

/* Estilos para el mensaje "No se han añadido redes sociales." */
.list-container p {
  color: var(
    --text-color-muted
  ); /* Un color más tenue para el texto informativo */
  font-style: italic;
  text-align: center;
  padding: 15px 0;
}

/* Ajustes para el grupo de "Otro" input */
#other-platform-input-group {
  margin-top: -5px; /* Ajusta el margen para que no haya mucho espacio si aparece */
}

/* =================================================================== */
/* --- ESTILOS PARA LA PÁGINA PÚBLICA (index.html, etc.) --- */
/* =================================================================== */

/* Estilos para las tarjetas de Casters */
.caster-card {
  background-color: var(--card-bg-color, #1e1e1e);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  color: var(--text-color-light, #eee);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; /* Indica que es clicable */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%; /* Asegura que todas las tarjetas tengan la misma altura en un grid */
}

.caster-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.caster-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold, #ffc107);
  margin-bottom: 15px;
}

.caster-card h4 {
  font-size: 1.5rem;
  color: var(--accent-gold, #ffc107);
  margin-bottom: 10px;
}

.caster-description-short {
  font-size: 0.95rem;
  color: var(--text-color-muted, #aaa);
  line-height: 1.4;
  min-height: 40px; /* Asegura un mínimo de espacio para la descripción */
  margin-bottom: 15px;
}

/* Estilos para los iconos sociales en la tarjeta (preview) */
.social-links-preview {
  margin-top: 10px;
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap; /* Permite que los iconos se envuelvan */
}

.social-links-preview a {
  color: var(--primary-blue, #007bff);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links-preview a:hover {
  color: var(--accent-gold, #ffc107);
}

.no-socials-card {
  font-size: 0.85rem;
  color: var(--text-color-muted, #888);
  font-style: italic;
  margin-top: 10px;
  margin-bottom: 15px;
}

.view-details-btn {
  background-color: var(--primary-blue, #007bff);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Empuja el botón hacia abajo si el contenido varía */
}

.view-details-btn:hover {
  background-color: var(--primary-blue-dark, #0056b3);
}

/* --- Estilos para el Modal de Detalles del Caster (MODAL EXISTENTE #caster-modal) --- */

.modal-overlay.active {
  /* Para mostrar el modal con JS */
  display: flex;
}

/* Contenido del modal de caster (ahora con la clase caster-modal-content) */
.modal-content.caster-modal-content {
  background-color: var(
    --card-bg-color,
    #1e1e1e
  ); /* Tu color de fondo de tarjeta */
  border-radius: 10px;
  padding: 30px;
  width: 90%;
  max-width: 650px; /* Ancho máximo para el modal */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  color: var(--text-color-light, #eee);
  max-height: 90vh; /* Limita la altura para pantallas pequeñas */
  overflow-y: auto; /* Permite scroll si el contenido es largo */
}

/* Botón de Cierre (la 'X') */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-muted); /* Color atenuado */
  font-size: 2rem; /* Tamaño grande para la 'X' */
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease; /* Transiciones suaves */
}

.modal-close-btn:hover {
  color: var(--primary-red); /* Rojo al pasar el ratón */
  transform: rotate(90deg); /* Efecto de rotación al pasar el ratón */
}

.caster-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.caster-modal-header img {
  /* Foto del caster en el modal */
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-gold, #ffc107);
  margin-bottom: 15px;
}

.caster-modal-header h2 {
  /* Nombre del caster en el modal */
  font-size: 2.5rem;
  color: var(--accent-gold, #ffc107);
  margin: 0;
}

.caster-modal-body h3 {
  /* Títulos "Descripción", "Redes Sociales" */
  font-size: 1.6rem;
  color: var(--text-color-light, #eee);
  margin-top: 25px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color, #444); /* Línea divisoria */
  padding-bottom: 5px;
}

.caster-modal-body p {
  /* Párrafos de descripción */
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-color, #ddd);
}

/* Contenedor de redes sociales en el modal */
.caster-modal-body #modalCasterSocials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 10px;
}

/* Contenedor de Redes Sociales */
.modal-caster-socials {
  border-top: 1px solid var(--border-color-light); /* Línea separadora */
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap; /* Permite que los enlaces se envuelvan */
  justify-content: center; /* Centra los enlaces sociales */
  gap: 25px; /* Espaciado entre cada enlace social */
}

/* Enlace Individual de Red Social (Icono + Texto) */
.caster-modal-social-link {
  display: flex;
  align-items: center;
  gap: 8px; /* Espacio entre icono y texto */
  color: var(--text-color); /* Color de texto por defecto */
  text-decoration: none; /* Sin subrayado por defecto */
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease; /* Transición suave de color */
}

/* Enlaces individuales de redes sociales en el modal */
.caster-modal-body .caster-modal-social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color-light, #eee);
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.2s ease;
  min-width: 80px; /* Ancho mínimo para cada bloque de icono/texto */
}

.caster-modal-social-link:hover {
  color: var(--accent-gold); /* Cambia el color del texto al pasar el ratón */
}

.caster-modal-body .caster-modal-social-link:hover {
  color: var(--accent-gold, #ffc107);
  transform: translateY(-3px); /* Pequeño efecto al pasar el mouse */
}

.caster-modal-social-link i {
  font-size: 1.4rem; /* Icono más grande */
  color: var(--primary-blue); /* Color del icono */
  transition: transform 0.2s ease; /* Transición para efecto de elevación */
}

.caster-modal-social-link:hover i {
  color: var(--accent-gold); /* Cambia el color del icono al pasar el ratón */
  transform: translateY(-2px); /* Efecto de ligera elevación del icono */
}

.caster-modal-body .caster-modal-social-link:hover i {
  color: var(--accent-gold); /* Cambio de color al pasar el mouse */
}

/* Mensaje "Sin redes sociales" en el modal */
.no-socials-modal {
  font-size: 1rem;
  color: var(--text-color-muted, #aaa);
  font-style: italic;
  text-align: center;
  width: 100%;
  padding: 15px 0;
}

/* Estilos para la celda del nombre del equipo en la tabla de puntuación */
.scoreboard-table tbody tr td:nth-child(2) {
  max-width: 180px; /* Ajusta este valor según cuánto espacio quieras para el nombre. Prueba con 150px, 180px, 200px. */
  white-space: nowrap; /* Evita que el texto salte a la siguiente línea */
  overflow: hidden; /* Oculta cualquier parte del texto que exceda el ancho */
  text-overflow: ellipsis; /* Añade "..." al final del texto si se trunca */
  /* text-align: left; /* Opcional: para alinear el texto a la izquierda si no lo está */
}

/* Opcional: Ajustar el padding de la celda si el logo está muy pegado */
.scoreboard-table tbody tr td:nth-child(2) {
  padding-left: 5px; /* Ajusta si el logo y el texto están demasiado juntos */
}
/* =================================================================== */
/* --- ESTILOS MAESTROS PARA EL MODAL DE CASTER (ULTRA PROFESIONAL) --- */
/* (Reemplaza la sección COMPLETA del modal de caster en tu styles.css con esto) */
/* =================================================================== */

/* Contenedor principal del modal (el overlay oscuro de fondo) */
.my-caster-overlay {
  /* Clase personalizada para este modal */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95); /* Más oscuro para un enfoque total */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Z-index muy alto para asegurar que esté encima */

  visibility: hidden; /* Oculto por defecto */
  opacity: 0; /* Completamente transparente por defecto */
  transition: opacity 0.4s ease, visibility 0s 0.4s; /* Transición más larga al ocultar */
}

/* Estado del overlay cuando está activo (visible) */
.my-caster-overlay.active {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0s; /* Más suave al mostrar */
}

/* Contenido del modal (el cuadro central con la info del caster) */
.my-caster-content {
  /* Clase personalizada para este modal */
  background-color: var(--card-bg-color, #1f1f1f); /* Fondo oscuro del modal */
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 0
  ); /* Patrón de puntos sutil */
  background-size: 25px 25px; /* Tamaño de los puntos */
  border-radius: 18px; /* Más redondeado */
  padding: 50px 40px; /* Padding aún más generoso */
  width: 90%;
  max-width: 700px; /* Ancho máximo un poco mayor */
  position: relative;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08); /* Sombra muy profunda y borde sutil */
  color: var(--text-color, #e0e0e0); /* Color de texto principal */
  text-align: center;
  max-height: 90vh;
  overflow-y: auto; /* Scroll si el contenido es largo */

  /* Animación de entrada/salida (inicial) */
  transform: translateY(40px) scale(0.9); /* Más desplazamiento y más pequeño inicialmente */
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.2), opacity 0.6s ease; /* Animación más lenta y elástica */
}

/* Estado final del contenido del modal cuando el overlay está activo */
.my-caster-overlay.active .my-caster-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Botón de Cierre (la 'X' en la esquina) */
.my-caster-close-btn {
  /* Clase personalizada para este botón */
  position: absolute;
  top: 25px; /* Ajusta posición */
  right: 25px; /* Ajusta posición */
  background: none;
  border: none;
  color: var(--text-muted, #cccccc); /* 'X' en gris claro */
  font-size: 2.5rem; /* Tamaño muy grande */
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.my-caster-close-btn:hover {
  color: var(--primary-red, #e74c3c); /* Rojo vibrante en hover */
  transform: rotate(180deg) scale(1.15); /* Rotación y ligera escala */
}

/* Header del Modal (Contenedor de Foto y Nombre) */
.caster-modal-header {
  text-align: center;
  margin-bottom: 40px; /* Espacio generoso debajo del nombre */
}

.caster-modal-header img.modal-caster-photo {
  /* Foto del caster */
  width: 150px; /* Tamaño aún más grande */
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--accent-gold, #f1c40f); /* Borde dorado prominente */
  margin-bottom: 25px;
  box-shadow: 0 0 35px rgba(var(--accent-gold-rgb), 0.7),
    0 0 15px rgba(255, 255, 255, 0.2); /* Doble sombra para brillo y profundidad */
  filter: brightness(1.1); /* Ligeramente más brillante */
}

.caster-modal-header h2#modalCasterName {
  /* Nombre del caster */
  font-size: 3.5rem; /* Tamaño extra grande y prominente */
  font-weight: 900; /* Extra-bold */
  color: var(--accent-gold, #f1c40f); /* Dorado vibrante */
  margin: 0;
  text-transform: uppercase; /* Mayúsculas para el nombre */
  letter-spacing: 2px; /* Espaciado entre letras */
  text-shadow: 0 0 20px rgba(var(--accent-gold-rgb), 0.9),
    0 0 40px rgba(var(--accent-gold-rgb), 0.6); /* Efecto neón muy fuerte */
}

/* Cuerpo del Modal (Contenedor de Descripción y Redes Sociales) */
.caster-modal-body {
  text-align: center; /* Centrar todo el texto del cuerpo */
  padding: 0 15px; /* Pequeño padding interno para texto */
}

.caster-modal-body h3 {
  /* Títulos de sección ("Descripción:", "Redes Sociales:") */
  font-size: 1.8rem; /* Tamaño grande */
  font-weight: 700;
  color: var(--text-color, #e0e0e0); /* ¡BLANCO CLARO! */
  margin-top: 35px; /* Espacio superior para separar secciones */
  margin-bottom: 20px; /* Espacio inferior para el contenido */
  border-bottom: 2px solid var(--border-color-light); /* Línea divisoria más visible */
  padding-bottom: 12px; /* Más padding para la línea */
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); /* Brillo fuerte */
  display: inline-block; /* Para que la línea y la sombra se ajusten al texto del título */
  min-width: 250px; /* Ancho mínimo para estos títulos */
}

.caster-modal-body p#modalCasterDescription {
  /* Párrafos de descripción */
  font-size: 1.15rem; /* Texto un poco más grande */
  line-height: 1.8;
  margin-bottom: 40px; /* Espacio generoso debajo */
  color: var(--text-muted, #b0b0b0); /* ¡GRIS CLARO SUAVE! */
  padding: 0 20px; /* Padding horizontal */
  max-width: 80%; /* Para controlar el ancho de párrafo */
  margin-left: auto;
  margin-right: auto; /* Centrar párrafo */
}

/* Contenedor de redes sociales en el modal */
#modalCasterSocials.modal-caster-socials {
  /* Selectores combinados para especificidad */
  display: flex;
  flex-wrap: wrap;
  gap: 40px; /* Espacio aún mayor entre iconos */
  justify-content: center;
  margin-top: 40px; /* Mucho espacio superior */
  padding-top: 25px; /* Padding superior considerable */
  border-top: 2px dashed var(--border-color-light); /* Borde superior punteado para separar */
}

/* Enlace Individual de Red Social (Icono + Texto) */
.caster-modal-social-link {
  display: flex;
  flex-direction: column; /* Icono arriba, texto abajo */
  align-items: center;
  gap: 12px; /* Más espacio */
  color: var(--text-color, #ffffff); /* BLANCO BRILLANTE */
  text-decoration: none;
  font-size: 1.2rem; /* Texto de red social más grande */
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
  min-width: 100px; /* Más ancho mínimo */
}

.caster-modal-social-link i {
  font-size: 3rem; /* Iconos muy grandes */
  color: var(--primary-blue, #3498db);
  transition: transform 0.3s ease, color 0.3s ease;
  text-shadow: 0 0 20px rgba(var(--primary-blue-rgb), 0.8); /* Brillo muy fuerte */
}

.caster-modal-social-link:hover {
  color: var(--accent-gold, #f1c40f);
}

.caster-modal-social-link:hover i {
  color: var(--accent-gold, #f1c40f);
  text-shadow: 0 0 25px rgba(var(--accent-gold-rgb), 1); /* Brillo extremo */
  transform: translateY(-12px) scale(1.3); /* Efecto de elevación/zoom muy pronunciado */
}

/* Mensaje "Este caster no ha registrado redes sociales." */
.no-socials-modal {
  font-size: 1.2rem; /* Tamaño grande */
  color: var(--text-muted, #cccccc);
  font-style: italic;
  text-align: center;
  width: 100%;
  padding: 30px 0; /* Más padding */
  margin-top: 35px; /* Más espacio */
  border-top: 2px dashed var(--border-color-light); /* Borde punteado más visible */
}

/* =================================================================== */
/* --- ESTILOS PARA LA PÁGINA DE HORARIOS (SCHEDULE.HTML) --- */
/* =================================================================== */

/* Contenedor de filtros */
.schedule-filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centrar filtros */
  gap: 20px; /* Espacio entre grupos de filtros */
  background-color: var(
    --card-bg-color
  ); /* Fondo oscuro para la barra de filtros */
  border-radius: 12px; /* Bordes más redondeados */
  padding: 25px 35px; /* Más padding */
  margin-bottom: 45px; /* Más espacio debajo de los filtros */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); /* Sombra más pronunciada */
  border: 1px solid var(--border-color); /* Borde sutil */
}

.schedule-filter-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Alinear etiquetas a la izquierda */
  gap: 8px; /* Espacio entre etiqueta y select */
  min-width: 180px; /* Ancho mínimo un poco mayor */
  flex: 1; /* Permite que los filtros se estiren */
}

.schedule-filter-group label {
  font-size: 0.95rem; /* Letra un poco más grande */
  color: var(--text-muted); /* Texto de etiqueta atenuado */
  font-weight: 600; /* Más peso */
  text-transform: uppercase;
  letter-spacing: 0.8px; /* Más espaciado */
}

.schedule-filter-group select {
  width: 100%;
  padding: 12px 18px; /* Más padding */
  border: 1px solid var(--border-color);
  border-radius: 8px; /* Más redondeado */
  background-color: var(--input-bg-color);
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Flecha SVG personalizada y más visible */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='[http://www.w3.org/2000/svg](http://www.w3.org/2000/svg)' viewBox='0 0 24 24' fill='none' stroke='%23f1c40f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px; /* Flecha más grande */
  padding-right: 45px; /* Espacio para la flecha */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.schedule-filter-group select:hover {
  border-color: var(--accent-gold); /* Borde dorado en hover */
}

.schedule-filter-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(var(--primary-blue-rgb), 0.4); /* Resplandor más fuerte */
}

/* Contenedor principal de la lista de horarios */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 35px; /* Más espacio entre grupos de días */
  max-width: 950px; /* Ancho máximo un poco mayor */
  margin: 0 auto;
}

/* Contenedor para un día específico (schedule-day) */
.schedule-day {
  background-color: var(--card-bg-color);
  border-radius: 16px; /* Más redondeado */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  padding: 30px; /* Más padding */
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.schedule-day::before {
  /* Elemento decorativo en la esquina superior izquierda */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px; /* Más grande */
  height: 100px; /* Más grande */
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    transparent 70%
  ); /* Gradiente más extendido */
  border-radius: 16px 0 16px 0; /* Coincidir con border-radius del contenedor */
  opacity: 0.15; /* Sutil */
  z-index: 0;
}

/* Título del día (Día: martes, 08 de julio de 2025 (Fase de Grupos)) */
.schedule-day .day-header-title {
  /* Clase añadida en JS */
  font-size: 2.2rem; /* Más grande y prominente */
  font-weight: 800; /* Extra-bold */
  color: var(--accent-gold);
  text-align: center;
  margin-bottom: 35px; /* Más espacio debajo */
  padding-bottom: 20px; /* Más padding para la línea */
  border-bottom: 2px solid var(--border-color-light); /* Separador más visible */
  text-shadow: 0 0 15px rgba(var(--accent-gold-rgb), 0.7); /* Neón más fuerte */
}

/* Contenedor de una partida individual */
.match-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--input-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px; /* Más redondeado */
  padding: 20px 25px; /* Más padding */
  margin-bottom: 20px; /* Más espacio entre partidas */
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3); /* Sombra más suave */
  transition: all 0.3s ease-in-out;
}

.match-card:last-child {
  margin-bottom: 0;
}

.match-card:hover {
  transform: translateY(-8px) scale(1.02); /* Efecto de elevación más notorio */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Sombra más grande en hover */
  border-color: var(--primary-blue); /* Borde azul al pasar el ratón */
}

/* Partida Terminada */
.match-card.match-finished {
  border-left: 6px solid var(--text-muted); /* Borde más grueso y gris */
  opacity: 0.7; /* Más atenuada */
}
.match-card.match-finished .match-score {
  color: var(--text-color);
  font-weight: 800; /* Extra-bold */
  font-size: 1.2rem; /* Más grande */
}

/* Próxima Partida */
.match-card.match-upcoming {
  border-left: 6px solid var(--primary-blue); /* Borde azul más grueso */
}
.match-card.match-upcoming .match-stream-link {
  background-color: var(--primary-red);
  color: white;
  padding: 10px 20px; /* Más padding */
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem; /* Más grande */
  font-weight: 700; /* Más negrita */
  display: inline-flex;
  align-items: center;
  gap: 10px; /* Más espacio entre icono y texto */
  box-shadow: 0 3px 10px rgba(var(--primary-red-rgb), 0.4); /* Sombra para el botón */
  transition: all 0.3s ease;
}
.match-card.match-upcoming .match-stream-link:hover {
  background-color: var(--primary-red-dark);
  box-shadow: 0 5px 15px rgba(var(--primary-red-rgb), 0.6); /* Sombra más fuerte en hover */
  transform: translateY(-2px);
}
.match-card.match-upcoming .match-stream-link i {
  font-size: 1.2em; /* Icono más grande */
}

/* Detalles izquierdos (Hora, Fase) */
.match-details-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px; /* Más espacio */
  font-size: 1rem;
  color: var(--text-muted);
  min-width: 160px; /* Asegura un poco más de espacio */
}
.match-time {
  font-weight: 800; /* Extra-bold */
  color: var(--text-color);
  font-size: 1.2rem; /* Más grande */
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}
.match-time i {
  margin-right: 8px;
  color: var(--primary-blue);
  font-size: 1.1em;
}
.match-stage {
  font-size: 0.9rem; /* Más legible */
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sección de Equipos (central) */
.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  gap: 20px; /* Más espacio entre equipos y "vs" */
}

.team-info {
  display: flex;
  align-items: center;
  gap: 12px; /* Más espacio entre logo y nombre */
  min-width: 140px; /* Ancho mínimo un poco mayor */
}
.match-teams .team-info:first-child {
  /* Equipo 1 */
  justify-content: flex-end; /* Alinear a la derecha */
  text-align: right; /* Para texto */
}
.match-teams .team-info:last-child {
  /* Equipo 2 */
  justify-content: flex-start; /* Alinear a la izquierda */
  text-align: left; /* Para texto */
}

.team-logo {
  width: 45px; /* Un poco más grande */
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color); /* Borde más grueso */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}
.team-name {
  font-size: 1.2rem; /* Nombre más grande */
  font-weight: 700; /* Más negrita */
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px; /* Límite para nombres muy largos */
}

.vs {
  font-size: 1.4rem; /* "vs" más grande */
  font-weight: 800; /* Extra-bold */
  color: var(--accent-gold);
  margin: 0 15px; /* Más margen */
  text-shadow: 0 0 5px rgba(var(--accent-gold-rgb), 0.4);
}

/* Detalles derechos (Score o Botón En Vivo) */
.match-details-right {
  min-width: 110px; /* Ancho mínimo un poco mayor */
  text-align: right;
}

/* =================================================================== */
/* --- Responsive Adjustments for Schedule Page --- */
/* =================================================================== */

@media (max-width: 768px) {
  .schedule-filter-container {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  .schedule-filter-group {
    width: 100%;
    min-width: unset;
  }

  .match-card {
    flex-direction: column; /* Apilar elementos en vertical */
    align-items: flex-start; /* Alinear todo a la izquierda */
    padding: 15px;
    gap: 10px;
  }
  .match-details-left,
  .match-teams,
  .match-details-right {
    width: 100%; /* Ocupar todo el ancho */
    justify-content: flex-start; /* Alinear contenido a la izquierda */
    min-width: unset;
  }
  .match-details-left {
    order: 1; /* Ordenar hora/fase primero */
  }
  .match-teams {
    order: 2; /* Equipos en el medio */
  }
  .match-details-right {
    order: 3; /* Score/En Vivo al final */
    text-align: left; /* Alinear a la izquierda */
  }
  /* Ajustes específicos para info de equipos en responsive */
  .match-teams .team-info:first-child,
  .match-teams .team-info:last-child {
    justify-content: flex-start; /* Ambos equipos a la izquierda */
    text-align: left;
  }
  .team-name {
    max-width: unset; /* Dejar que el nombre se ajuste si hay más espacio */
  }
  .match-teams {
    gap: 10px; /* Reducir gap en responsive */
    flex-wrap: wrap; /* Permitir que los equipos se envuelvan si es necesario */
  }
}

@media (max-width: 480px) {
  .schedule-day .day-header-title {
    font-size: 1.8rem; /* Reducir tamaño de título de día */
  }
  .team-name {
    font-size: 1rem; /* Reducir tamaño de nombre de equipo */
  }
  .team-logo {
    width: 35px;
    height: 35px;
  }
  .match-time {
    font-size: 0.9rem;
  }
  .match-stage {
    font-size: 0.75rem;
  }
  .match-card {
    padding: 12px 15px; /* Reducir padding */
  }
  .match-card.match-upcoming .match-stream-link {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* --- Estilos para el Menú Hamburguesa (Móvil) --- */

/* Por defecto, el menú está oculto fuera de la pantalla en dispositivos pequeños */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed; /* Fijo en la pantalla para que se superponga */
    top: 0;
    right: -100%; /* Inicia fuera de la pantalla a la derecha */
    width: 250px; /* Ancho del menú desplegable */
    height: 100vh; /* Altura completa de la pantalla */
    background-color: #1a1a2e; /* Un color oscuro de fondo */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2); /* Sombra para darle profundidad */
    display: flex;
    flex-direction: column; /* Apila los links verticalmente */
    align-items: center;
    justify-content: center;
    gap: 2rem; /* Espacio entre los links */
    transition: right 0.4s ease-in-out; /* Animación suave al aparecer/desaparecer */
    z-index: 1000; /* Asegura que esté por encima de otros contenidos */
  }

  /* ESTA ES LA REGLA CLAVE: Cuando el menú tiene la clase .active */
  .nav-menu.active {
    right: 0; /* Mueve el menú a la pantalla para hacerlo visible */
  }
}

/* === ESTILOS PROFESIONALES PARA TARJETAS === */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* El contenedor principal de la tarjeta */
.card {
  background: linear-gradient(145deg, #2e2e2e, #1a1a1a); /* Gradiente sutil */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); /* Sombra más pronunciada */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-12px); /* Efecto de elevación más notorio */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Contenedor de la imagen para controlar el efecto de zoom */
.card-image-container {
  height: 220px;
  background-color: var(--bg-dark);
  overflow: hidden; /* Clave para el efecto de zoom */
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* La imagen cubre el área sin deformarse */
  transition: transform 0.4s ease;
}

.card:hover .card-image {
  transform: scale(1.1); /* Zoom suave a la imagen en hover */
}

/* Contenido de la tarjeta (título, subtítulo) */
.card-content {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Permite que el footer se alinee abajo */
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.caster-card .card-title {
  color: var(--accent-gold); /* Títulos de casters en dorado */
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Footer de la tarjeta para alinear el botón */
.card-footer {
  margin-top: auto; /* Empuja el footer (y el botón) al final */
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.card-button {
  background-color: var(--primary-red);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-button:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.modals-overlays {
  display: none; /* Empezamos oculto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* Estas 3 propiedades para centrar el contenido del modal */
  justify-content: center;
  align-items: center;
  /* Para una transición suave al aparecer/desaparecer */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Estilos cuando el modal está activo (visible) */
.modals-overlays.active {
  display: flex; /* Esto lo hace visible y activa flexbox para centrar */
  opacity: 1;
  visibility: visible;
  /* Opcional: animaciones cuando se vuelve activo */
  /* Si quieres que el modal aparezca con animación, podrías ponerla aquí */
}

/* Estilos del contenido del modal */
.modal-contentCoppy {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  width: 90%;
  /* Si quieres animación de entrada para el contenido, ponla aquí */
  transform: translateY(0); /* Estado final de la animación */
  opacity: 1; /* Estado final de la animación */
}

/* Opcional: Animaciones para el contenido del modal cuando el overlay es 'active' */
/* Estas animaciones harán que el modal "aparezca" de forma más dinámica */
.modals-overlays.active .modal-contentCoppy {
  animation: fadeInScale 0.3s ease-out forwards;
}

.modals-overlays.active .modal-contentCoppy h3 {
  animation: popIn 0.4s ease-out forwards;
}

/* Define las keyframes de las animaciones si las estás usando */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Styles for the heading */
.modal-contentCoppy h3 {
  color: #333333;
  font-family: "Arial", sans-serif;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Styles for the close button */
.close-button {
  background-color: #4caf50;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.close-button:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

.close-button:active {
  background-color: #3b8e3d;
  transform: translateY(0);
}

.error-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Asegúrate aquí del background-color, font-family, etc. de tu tema */
  background-color: #1a1a1a; /* Ejemplo, usa tu color real */
  font-family: "Poppins", sans-serif; /* Ejemplo, usa tu fuente real */
  color: #f0f0f0; /* Ejemplo, usa tu color de texto principal */
}

.error-page-hero {
  /* Estilos para el hero de la página 404 (similar a tu hero principal si quieres) */
  position: relative;
  height: 200px; /* Altura más pequeña para el hero del 404 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url("../Image/hero-background.jpg"); /* O una imagen específica para el 404 */
  background-size: cover;
  background-position: center;
}

.error-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Capa oscura para legibilidad */
  z-index: 1;
}

.error-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.error-tournament-logo {
  width: 80px; /* Tamaño del logo en el hero del 404 */
  height: auto;
  margin-bottom: 10px;
}

.error-hero-title {
  font-size: 3em; /* Título grande en el hero */
  margin-bottom: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.error-page-main {
  flex: 1; /* Esto es CLAVE para que ocupe el espacio y centre el bloque */
  display: flex;
  align-items: center; /* Centra el contenido de 'main' verticalmente */
  justify-content: center; /* Centra el contenido de 'main' horizontalmente */
  padding: 20px;
}

.error-message-block {
  text-align: center;
  background-color: var(
    --card-background-color,
    #2a2a2a
  ); /* Usa tus variables CSS */
  color: var(--text-light-color, #f0f0f0);
  padding: 50px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  max-width: 550px;
  width: 90%;
  margin: auto; /* Fallback para centrar horizontalmente */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 0.6s ease-out forwards;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.error-message-code {
  font-size: 10em; /* ¡404 muy grande! */
  font-weight: 700;
  color: var(--primary-color, #ff5722); /* Tu color de acento principal */
  margin-bottom: 0;
  line-height: 1em;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.error-message-title {
  font-size: 2.5em; /* Título del mensaje de error */
  color: var(--text-light-color, #f0f0f0);
  margin-top: 10px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.error-message-subtitle {
  font-size: 1.1em;
  color: var(--text-color-secondary, #cccccc);
  line-height: 1.6;
  margin-bottom: 40px;
}

.error-return-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: var(--cta-button-bg, #4caf50); /* Tu color de botón CTA */
  color: var(--cta-button-text-color, white); /* Color de texto del botón */
}

.error-return-button:hover {
  background-color: var(
    --cta-button-hover-bg,
    #45a049
  ); /* Color hover del botón CTA */
  transform: translateY(-2px);
}

/* Animación de entrada (si no la tienes en styles.css) */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries para responsividad (ajusta según tu diseño) */
@media (max-width: 768px) {
  .error-hero-title {
    font-size: 2.2em;
  }
  .error-tournament-logo {
    width: 60px;
  }
  .error-message-code {
    font-size: 8em;
  }
  .error-message-title {
    font-size: 2em;
  }
  .error-message-subtitle {
    font-size: 1em;
  }
  .error-message-block {
    padding: 35px 20px;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .error-hero-title {
    font-size: 1.8em;
  }
  .error-message-code {
    font-size: 6em;
  }
  .error-message-title {
    font-size: 1.8em;
  }
  .error-return-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}
