html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* site.css */
:root {
    --padel-dark-blue: #1b365d;   /* El azul de "Padele" */
    --padel-light-blue: #5baade;  /* El celeste de "AR" */
    --padel-yellow: #f2e205;      /* El amarillo de la pelota */
}
/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1672223304816-d96242210bcc?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
background-size: cover;
    color: white;
    padding: 120px 0;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 30px;
}

/* Botones personalizados con el amarillo del logo */
.btn-padel-yellow {
    background-color: var(--padel-yellow);
    color: var(--padel-dark-blue);
    font-weight: bold;
    border: none;
}

.btn-padel-yellow:hover {
    background-color: #d9ca04;
    color: var(--padel-dark-blue);
}

/* Colores de texto y navegación */
.navbar-brand, .text-padel-blue {
    color: var(--padel-light-blue) !important;
}

.bg-padel-dark {
    background-color: var(--padel-dark-blue) !important;
}

.stat-icon {
    color: var(--padel-yellow) !important;
}

/* Stats Counters */
.stat-card {
    border: none;
    background-color: #f8f9fa;
    transition: transform 0.3s;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.stat-icon {
    font-size: 2.5rem;
    color: #ffc107; /* Warning color Bootstrap */
}

/* Cards genéricas */
.card-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.navbar-custom {
    background-color: #ffffff !important; /* Fondo Blanco */
    border-bottom: 2px solid var(--padel-light-blue); /* Borde inferior celeste */
    padding: 0.5rem 1rem;
}

.navbar-custom .nav-link {
    color: var(--padel-light-blue) !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: var(--padel-dark-blue) !important; /* Cambio a azul oscuro al pasar el mouse */
}

.btn-login-custom {
    background-color: var(--padel-light-blue);
    color: white !important;
    border: none;
    font-weight: bold;
}

.btn-login-custom:hover {
    background-color: var(--padel-dark-blue);
}

.text-padel-blue {
    color: var(--padel-light-blue) !important;
}

.btn-outline-primary {
    color: var(--padel-light-blue);
    border-color: var(--padel-light-blue);
}

.btn-outline-primary:hover {
    background-color: var(--padel-light-blue);
    border-color: var(--padel-light-blue);
    color: white;
}

.btn-primary {
    background-color: var(--padel-light-blue);
    border-color: var(--padel-light-blue);
}

.btn-primary:hover {
    background-color: var(--padel-dark-blue);
    border-color: var(--padel-dark-blue);
}

/* Sombra suave para las tarjetas sobre fondo blanco */
.card {
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-header {
    border-radius: 0.9rem 0.9rem 0 0 !important;
    border-bottom: 0px !important;
}

.extra-small {
    font-size: 0.75rem;
}

/* Efecto hover suave para las tarjetas */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/*Torneo Detalle*/
/* Contenedor de la araña */
.tournament-bracket {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: #fdfdfd;
    min-width: max-content;
    align-items: flex-start;
}

.bracket-column {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    min-height: 550px; /* Asegura espacio para la distribución vertical */
}

.bracket-header {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.match-list {
    display: flex;
    flex-direction: column;
    justify-content: space-around; /* Mantiene el centrado vertical */
    flex-grow: 1;
}

.match-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #eee;
    border-left: 4px solid #dee2e6; /* Gris por defecto */
    font-size: 0.82rem;
}

/* El borde verde se mantiene para partidos terminados */
.match-finished { border-left-color: #28a745 !important; }

.team-row { display: flex; justify-content: space-between; margin-bottom: 3px; }
.winner { color: #1a7f37; font-weight: bold; }
.loser { color: #FF0000; opacity: 0.7; }

.set-score-pill { 
    font-size: 0.75rem; 
    color: #6c757d;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    display: block;
    text-align: center;
    margin-top: 5px;
    border-top: 1px dashed #dee2e6;
    border-bottom: 1px dashed #dee2e6;
}

.match-date { 
    font-size: 0.65rem; 
    color: #aaa; 
    font-weight: bold;
    text-align: right;
    margin-top: 5px;
}

/* Contenedor del logo para darle un marco elegante */
.logo-torneo-container {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* La imagen propiamente dicha */
.logo-torneo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Mantiene la proporción sin recortar */
}

/* Ajuste opcional para móviles */
@media (max-width: 576px) {
    .logo-torneo-container {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }
}