/* Personalización Campeonato Agunsa 2026 */
/* Colores: #E31B23 - Rojo Agunsa (Principal), #1A1A1A - Negro (Secundario) */

html {
    font-family: "ITC Avant Garde Pro", Verdana, Geneva, Tahoma, sans-serif;
}

body {
    font-family: "ITC Avant Garde Pro", Verdana, Geneva, Tahoma, sans-serif;
    color: #1A1A1A;
}


.t-matchs-group th:nth-child(1),
.t-matchs-group td:nth-child(1) {
    display: table-cell !important;
}



/* Barra de menú Minimalista y Limpia */

.bg-body-tertiary {
    background-color: #E31B23 !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar-nav {
    color: white;
    font-family: "ITC Avant Garde Pro", Verdana, Geneva, Tahoma, sans-serif;
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.98rem;
    padding: 0.5rem 1rem !important;
    background: transparent !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #FFFFFF !important;
    background: transparent !important;
    opacity: 1;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: #FFFFFF !important;
    background: transparent !important;
    border-bottom: 3px solid #FFFFFF !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Galería de Fotos - Estilos Agunsa 2026 */
.page-galeria h1 {
    color: #E31B23;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Menú lateral vertical (Fechas) */
.nav.galeria-vertical {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav.galeria-vertical .nav-link {
    color: #1A1A1A !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E0E0E0 !important;
    border-bottom: none !important;
    font-weight: 600;
    padding: 0.75rem 1.2rem !important;
    text-align: left;
    border-radius: 0 !important;
    transition: all 0.2s ease;
}

.nav.galeria-vertical .nav-link:last-child {
    border-bottom: 1px solid #E0E0E0 !important;
}

.nav.galeria-vertical .nav-link:hover {
    color: #E31B23 !important;
    background-color: #F8F9FA !important;
}

.nav.galeria-vertical .nav-link.active {
    color: #FFFFFF !important;
    background-color: #E31B23 !important;
    border-color: #E31B23 !important;
    border-left: 4px solid #1A1A1A !important;
    box-shadow: 0 4px 10px rgba(227, 27, 35, 0.25);
}

/* Menú superior horizontal (Disciplinas / Categorías) */
.nav.galeria-horizontal {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E0E0E0;
}

.nav.galeria-horizontal .nav-link {
    color: #1A1A1A !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 1rem !important;
    border-radius: 20px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    transition: all 0.2s ease;
}

.nav.galeria-horizontal .nav-link:hover {
    color: #E31B23 !important;
    background-color: rgba(227, 27, 35, 0.08) !important;
}

.nav.galeria-horizontal .nav-link.active {
    color: #FFFFFF !important;
    background-color: #E31B23 !important;
    border-color: #E31B23 !important;
    box-shadow: 0 2px 6px rgba(227, 27, 35, 0.3);
}

/* Selector móvil */
#select-fecha {
    border: 2px solid #E31B23;
    color: #1A1A1A;
    font-weight: 600;
    border-radius: 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    transition: all 0.2s ease;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    border-color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Disciplinas */
.t-base thead th {
    background-color: #1A1A1A;
    color: white;
}

/* Dropdown items hover effect (Limpio) */
.dropdown-menu {
    background-color: #1A1A1A !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    padding: 0.4rem !important;
    margin-top: 0.4rem !important;
}

.dropdown-menu .dropdown-item {
    transition: all 0.2s ease !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 4px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
    background: transparent !important;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #E31B23 !important;
    color: #FFFFFF !important;
}


/* Disciplinas */
.disciplines-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 40px auto;
    max-width: 750px;
}

.discipline {
    flex: 1 1 calc(50% - 15px);
    max-width: 360px;
    min-width: 240px;
    padding: 15px;
    color: white;
    font-size: 0.85rem;
    font-weight: normal;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border-bottom: solid 4px #1A1A1A;
    transition: background-color 0.3s, transform 0.2s;
}

.discipline:only-child {
    flex: 0 1 360px;
}

.discipline:nth-child(1),
.discipline:nth-child(2),
.discipline:nth-child(3),
.discipline:nth-child(4) {
    background-color: #E31B23;
}

.discipline:hover {
    background-color: #1A1A1A !important;
    border-bottom-color: #E31B23 !important;
    transform: scale(1.05);
}

h1 {
    color: #E31B23;
}

h2 {
    background-color: #E31B23;
    border-bottom: 2px solid #1A1A1A;
    color: white;
}






/* especiales  */
/* Comentar en caso se deban mostrar las tablas de goleadores y fair play */
#nav-tabla-goleadores-tab,
#nav-fair-play-tab {
    display: none;
}


@media (max-width: 767px) {

    .t-matchs-group th:nth-child(2),
    .t-matchs-group td:nth-child(2) {
        display: none !important;
    }
}

@media (max-width: 575px) {
    html {
        font-size: 12px;
    }

    .t-matchs-knockout th:nth-child(3),
    .t-matchs-knockout td:nth-child(3) {
        display: none;
    }
}