/* ==========================
   Home pública (index)
   ========================== */

/* Fondo y layout general solo para la home */
.home-public {
  background-color: #361e71; 
  color: #e5e7eb;
}

.main-home {
  padding-bottom: 3rem;
}

/* ==========================
   HERO
   ========================== */

.hero-home {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: #9ca3af;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-btn,
.hero-btn-secondary {
  font-weight: 600;
  border-radius: 999px;
  padding-inline: 1.4rem;
}

/* Tarjeta lateral del hero */
.hero-card {
  background: radial-gradient(circle at top left, #1e293b 0, #020617 60%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.4rem 1.6rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.6);
}

.hero-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a5b4fc;
  margin-bottom: 0.4rem;
}

.hero-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.hero-card-text {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 0;
}

/* ==========================
   TORNEOS HOME (cards)
   ========================== */

.torneos-home-section {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.torneos-home-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}

.torneos-home-subtitle {
  text-align: center;
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Card de torneo: base + imágenes de fondo + overlays */

.card-torneo {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  background: radial-gradient(circle at top left, #1f2937 0, #020617 55%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Brillo leve en hover */
.card-torneo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), transparent 40%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Oscurecemos el fondo para que el texto se lea bien */
.card-torneo::after {
  content: none;
}

.card-torneo:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.6);
  border-color: rgba(59, 130, 246, 0.7);
}

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

/* El contenido va por encima de los overlays */
.card-torneo .card-body {
  position: relative;
  padding: 1.1rem 1.1rem 0.9rem;
}

/* Texto en cards (alto contraste) */
.card-torneo .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f9fafb; /* título bien blanco */
}

.card-torneo .card-body,
.card-torneo .card-body p {
  color: #e5e7eb; /* texto principal claro */
}

.card-torneo .fechas-torneo {
  font-size: 0.8rem;
  color: #e5e7eb;
}

.card-torneo small {
  color: #cbd5f5; /* secundarios */
}

/* Tipo de torneo en celestito (usás .text-info en el HTML) */
.card-torneo .card-body .text-info {
  color: #93c5fd !important;
}

/* Badges de estado (si en algún momento los usás con clases propias) */
.badge-estado {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.7rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.badge-estado.en-curso {
  background: #22c55e;
  color: #052e16;
}

.badge-estado.finalizado {
  background: #142f69;
}

.badge-estado.pendiente {
  background: #facc15;
  color: #1f2937;
}

/* Categorías (si usás .badge-categoria en vez de .badge bg-dark) */
.card-torneo .badge-categoria {
  background: rgba(109, 144, 247);
  border: 1px solid rgba(252, 249, 249);
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
}

/* ==========================
   Botón "Ver detalle"
   ========================== */

/* Asegurate de que el botón tenga class="btn-ver-detalle btn btn-outline-light btn-sm" */

.card-torneo .btn-ver-detalle {
  border-color: rgba(255, 255, 255);
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

/* Hover visible aunque esté disabled (solo visual) */
.card-torneo .btn-ver-detalle:hover {
  background-color: #97c5fd;
  color: #020617;
  border-color: #e5e7eb;
  opacity: 1;
}

/* Si querés mantener atributo disabled pero permitir hover visual */
.card-torneo .btn-ver-detalle[disabled] {
  pointer-events: auto; /* para que :hover siga funcionando visualmente */
}

/* ==========================
   Carrusel / scroll horizontal
   ========================== */

.torneos-home-scroll {
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
}

.torneo-slide {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .torneo-slide {
    flex: 0 0 300px;
  }
}

@media (min-width: 992px) {
  .torneo-slide {
    flex: 0 0 320px;
  }
}

/* ==========================
   Fondos con imagen por card
   ========================== */

/* Cambiá las rutas a las que tenés realmente */
.card-torneo-bg-1 {
  background-image: url("../assets/padel1.jpg");
}

.card-torneo-bg-2 {
  background-image: url("../assets/padel2.jpg");
}

.card-torneo-bg-3 {
  background-image: url("../assets/padel3.jpg");
}

.card-torneo-bg-4 {
  background-image: url("../assets/padel4.jpg");
}

/* ==========================
   Sponsors
   ========================== */

.sponsors-home {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.sponsors-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.sponsors-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 1.6rem;
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Cada sponsor: cuadrado, clickeable */
.sponsor-box {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: radial-gradient(circle at top, #1f2937 0, #020617 70%);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.sponsor-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  border-color: #60a5fa;
}

/* Imagen dentro de la card */
.sponsor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.sponsor-box:hover .sponsor-img {
  transform: scale(1.06);
  filter: saturate(1.35);
}

/* Placeholder "Publicite aquí" */
.sponsor-box-empty {
  background: transparent;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  box-shadow: none;
  cursor: default;
}

.sponsor-box-empty span {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  padding: 0.4rem;
}

/* Imagen ampliada en el modal */
.modal-sponsor-img {
  max-height: 80vh;
  object-fit: contain;
}

/* ==========================
   Responsivo
   ========================== */

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-home {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .torneos-home-title {
    font-size: 1.3rem;
  }
}

/* Ajuste fino del título en desktop */
.hero-title {
  font-size: 18pt;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-card-meta {
  font-size: 0.8rem;
  color: #e5e7eb;
  margin-top: 0.6rem;
}

.hero-card-title {
  font-size: 16pt;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* fechas más chicas dentro del título */
.hero-card-dates {
  font-size: 11pt;
  font-weight: 400;
  margin-left: 0.35rem;
  color: #8eee7a;
}

/* Ajuste de contraste en detalle de torneo:
   la leyenda bajo "Master 1000 (M1000)" en blanco */
#detalleTorneoContainer .text-muted {
  color: #f9fafb !important;
}

/* ==========================
   Modal partidos por zona (detalle torneo)
   ========================== */

.modal-partidos-zona {
  background: radial-gradient(circle at top, #1d2440 0, #020617 70%);
  border-radius: 20px;
  border: 1px solid rgba(129, 140, 248, 0.7); /* violeta/azul */
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.9);
  color: #e5e7eb;
}

/* Header con franja de color */
.modal-partidos-zona .modal-header {
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  border-bottom: 1px solid rgba(15, 23, 42, 0.7);
  color: #f9fafb;
}

.modal-partidos-zona .modal-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Botón de cierre claro */
.modal-partidos-zona .btn-close {
  filter: invert(1);
}

/* Body un poco más claro */
.modal-partidos-zona .modal-body {
  background: radial-gradient(circle at top, #111827 0, #020617 70%);
}

/* Tabla más legible y con rayado suave */
.modal-partidos-zona .table {
  background-color: transparent;
  color: #e5e7eb;
}

.modal-partidos-zona .table thead tr {
  background-color: rgba(15, 23, 42, 0.9);
}

.modal-partidos-zona .table thead th {
  border-color: rgba(55, 65, 81, 0.9);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-partidos-zona .table tbody tr:nth-child(even) {
  background-color: rgba(15, 23, 42, 0.7);
}

.modal-partidos-zona .table tbody tr:nth-child(odd) {
  background-color: rgba(15, 23, 42, 0.4);
}

.modal-partidos-zona .table tbody tr:hover {
  background-color: rgba(59, 130, 246, 0.25);
}

/* Texto apagado un poco más claro dentro del modal */
.modal-partidos-zona .text-muted {
  color: #cbd5f5 !important;
}

/* Footer */
.modal-partidos-zona .modal-footer {
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

/* Cuadro final público: nombres + sets más chicos */
.resultado-item-public .set-cell {
  font-size: 0.8rem;
  min-width: 18px;
}
.resultado-item-public .equipo-linea {
  white-space: nowrap;
}