body {
    font-family: 'Arial', sans-serif;
    /*background-image: url(imagenes/fondo1.jpg);
    background-size: cover;
    background-repeat: no-repeat;*/
    background-color: #dbdbdb;
    color: #333;
    margin: 0;
}

tbody{
    background-color: white;
}

.header {
    background-color: #ff3333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    left: 47%;
    color: #000000;
}
@media (max-width:767px){
    .title{
        font-size: 18px;
        display: block;
        top: 10px;
        transform: translateX(-40%);
    }
    
}

.footer {
    font-size: 13px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}
@media (max-width:767px){
    .footer{
        font-size: 10px;
    }
}

.sub-title {
    margin: 0;
    padding-top: 40px;
    padding-left: 40px;
    font-size: 10px;
    font-weight: bold;
    position: absolute;
    left: 50%;
    color: #000000;
}
@media (max-width:767px){
    .sub-title{
        padding-right: 30px;
        padding-bottom: 10px;
        font: size 5px;
        display: block;
        transform: translateX(-50%);
    }
    
}

.logo-uni {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 60px;
}

@media (max-width: 767px) {
    .logo-uni {
        width: 45px;
        justify-content: center;
    }
}

.div-pri-btn {
    margin-bottom: 10px;
    margin-top: 30px;
    justify-content: center;
    display: flex;
    flex-wrap: wrap; /* Permite que los botones se envuelvan en varias filas */
}

.btn-bounce {
    color: white;
    background: linear-gradient(to bottom, #ac0404, #2b0101);
    border-radius: .5em;
    border: none;
    cursor: pointer;
    margin: .5em;
    padding: 10px 20px;
    font-size: 14px;
    padding: 0;
    padding-bottom: 1px;
}

@media (max-width: 767px) {
    .div-pri-btn {
        justify-content: center; /* Centra los botones horizontalmente */
    }

    .btn-bounce {
        width: 45%; /* Ajusta el ancho de los botones */
        padding: 10px; /* Ajusta el padding */
        font-size: 12px; /* Reduce el tamaño de la fuente */
        margin: 5px; /* Ajusta el margen */
        flex: 1 1 45%; /* Asegura que los botones se distribuyan equitativamente */
        max-width: none; /* Elimina el límite de ancho */
        background: linear-gradient(to bottom, #ac0404, #2b0101);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Agrega una sombra negra */
    }
}

.btn-label {
    display: inline-block;
    padding: 0.5em .7em;
    border-radius: 0.5em;
    background: transparent;
    font-size: 1rem;
    transform: translateY(-0.25em);
    transition: transform ease 0.1s;
}

.btn-bounce:active .btn-label {
    transform: translateY(0);
}

.btn-bounce-fechas {
    color: white;
    background: #000000;
    border-radius: 0.2em;
    border: none;
    cursor: pointer;
    margin: 0.06em;
    padding: 0;
    padding-bottom: 30px;
    height: 30px;
}

.btn-label-fechas{
    display: inline-block;
    padding: 0.5em .7em;
    border-radius: 0.2em;
    background: transparent;
    font-size: 1rem;
    transform: translateY(-0.25em);
    transition: transform ease 0.1s;
    height: 30px;
    padding-bottom: 12px;
}

.btn-bounce-fechas:active .btn-label-fechas{
    transform: translateY(0);
}

.btn-group{
    align-items: center;
    justify-content: center;
    display: inline;
    margin: auto;
}

.btn-primary {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    margin: 2px;
}

.btn-primary:hover{
    background-color:#777;
}

.match-container {
    margin: 20px auto;
    justify-content: center;
    align-items: center;

}

.match-tournament img{
    height: 25px;
    justify-content: center;
    margin-right: 10px;
    margin-top: 10px;
    padding: 0px;
}

.match-tournament{
    justify-content: center;
    align-items: center;
    margin: auto;
}

.match {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    width: 500px;
}

.match-header {
    background-color: #ff3333;
    color: #fff;
    padding: 1px;
    text-align: center;
    margin-bottom: 25px;
}

.match-content {
    display: flex;
    align-items: center;
    padding: 0px;
    justify-content: center;
}

*{
    margin: auto;
    justify-content: center;
    align-items: center;
}

.match-details {
    text-align: center;
    margin-left: 30px;
    margin-right: 40px;
}

.match-date strong {
    color: #ff3333;
}

.match-score {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

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

.team-logo {
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1),
        0 0 0 15px #f2f2f2;
}

.team-logo img {
    max-width: 70%;
    height: auto;
    margin-top: 13px;
}
.team-name {
    text-align: center;
    margin-top: 24px;
    font-size: 20px;
    font-weight: 600;
}

.position-table {
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
    justify-content: center;
    align-items: center;
}

.goleadores-table {
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
    justify-content: center;
    align-items: center;
    max-width: 40%;
    padding: 0%;
    margin-bottom: 30px;
}

.table-title {
    background-color: #ff3333;
    color: #fff;
    font-weight: bold;
    text-align: center;
    line-height: 40px; /* Ajusta la altura del título */
    padding: 10px; /* Añade espacio alrededor del título */
}

.table-row {
    background-color: #fff;
}

.table-column {
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
}

#fixture-A {
    width: 100%;
    margin-top: 20px;
}


.header-cell{
    justify-content: center;
    display: flex;
    align-items: center;
    margin: auto;
}

/*CSS PARA LA BARRA LATERAL*/
        @import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");
        :root{
            --header-height: 3rem;
            --nav-width: 68px;
            --first-color: #a70909;
            --first-color-light: #ffffff;
            --white-color: #d8cece;
            --body-font: 'Nunito', sans-serif;
            --normal-font-size: 1rem;
            --z-fixed: 100
        }
        *,::before,::after{
            box-sizing: border-box
        }
        body{
            
            position: relative;
            margin: var(--header-height) 0 0 0;
            padding: 0 1rem;
            font-family: var(--body-font);
            font-size: var(--normal-font-size);
            transition: .5s
        }
        a{
            text-decoration: none
        }
        .header{
            background-color: #a70909;
            width: 100%;
            height: var(--header-height);
            position: fixed;
            top: 0;
            left: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 1rem;
            background-color: var(--white-color);
            z-index: var(--z-fixed);
            transition: .5s
        }
        .header_toggle{
            background-color: #8f8f8f;
            color: var(--first-color);
            font-size: 1.5rem;
            cursor: pointer;
            position: absolute;
            border-radius: .2em;
            padding-left: 3px;
            padding-right: 3px;
            color: rgb(0, 0, 0);
        }
        .header_img{
            width: 35px;
            height: 35px;
            display: flex;
            justify-content: center;
            border-radius: 50%;
            overflow: hidden
        }
        .header_img img{
            width: 40px
        }
        .l-navbar {
            background: linear-gradient(to bottom, #ac0404, #2b0101);
            position: fixed;
            top: 0;
            left: -30%;
            width: var(--nav-width);
            height: 100vh;
            background-color: var(--first-color);
            padding: .5rem 1rem 0 0;
            transition: .5s;
            z-index: var(--z-fixed);
        }
        .nav{
            background: linear-gradient(to bottom, #ac0404, #2b0101);
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow: hidden
        }
        .nav_logo, .nav_link{
            display: grid;
            grid-template-columns: max-content max-content;
            align-items: center;
            column-gap: 1rem;
            padding: .5rem 0 .5rem 1.5rem;
        }
        .nav_logo{
            margin-bottom: 3rem;
        }
        
        .nav_logo-icon{
            font-size: 1.25rem;
            color: white;
        }
        .icon-cat-mujer{
            color: rgb(247, 63, 139);
        }
        .nav_logo-name{
            color: var(--white-color);
            font-weight: 700
        }
        .nav_link{
            position: relative;
            color: var(--first-color-light);
            margin-bottom: 1.5rem;
            transition: .3s
        }
        .nav_link:hover{
            color: var(--white-color)
        }

        .nav_icon{
            font-size: 1.25rem
        }
        .casita-icon{
            color: white;
        }
        .show{
            left: 0
        }
        .body-pd{
            padding-left: calc(var(--nav-width) + 1rem)
        }
        .active{
            color: var(--white-color)
        }
        .active::before{
            content: '';
            position: absolute;
            left: 0;
            width: 2px;
            height: 32px;
            background-color: var(--white-color)
        }
        .height-100{
            height:100vh
        }
        @media screen and (min-width: 768px){
            body{
                margin: calc(var(--header-height) + 1rem) 0 0 0;
                padding-left: calc(var(--nav-width) + 2rem)
            }
            .header{
                height: calc(var(--header-height) + 1rem);
                padding: 0 2rem 0 calc(var(--nav-width) + 2rem)
            }
            .header_img{
                width: 40px;
                height: 40px
            }
            .header_img img{
                width: 45px
            }
            .l-navbar{
                left: 0;
                padding: 1rem 1rem 0 0
            }
            .show{
                width: calc(var(--nav-width) + 156px)
            }
            .body-pd{
                padding-left: calc(var(--nav-width) + 188px)
            }
        }

/*ESTILO PARA LOS PLAYOFFS*/
div {
    display: block;
    unicode-bidi: isolate;
}
.titulotabla, .titulotabla2 {
    text-align: center;
    font-size: 1em;
    background: #000000;
    color: #fff;
    border: 1px solid #000;
    width: 100%;
    text-shadow: 1px 1px 1px #000;
}
.round {
    float: left;
}
.py2pen {
    color: #ff0000;
    font-size: 12px;
}
#py2cont {
    border: 1px solid black;
    width: 138px;
    height: 90px;
    font-family: Roboto, sans-serif, Arial, Helvetica;
    font-weight: bold;
    background: url(imagenes/fondollavefixture\ .png);
    color: rgb(0, 0, 0);
    font-size: 13px;
    text-align: center;
    position: relative;
}
#py2esc1 {
    width: 49%;
    float: left;
    text-overflow: clip;
    overflow: hidden;
    white-space: nowrap;
    font-size: 11px;
}
#py2esc1 img, #py2esc2 img {
    width: 50px;
}
img {
    overflow-clip-margin: content-box;
    overflow: clip;
}
#py2esc2 {
    width: 49%;
    float: right;
    text-overflow: clip;
    overflow: hidden;
    white-space: nowrap;
    font-size: 11px;
}
.connector {
    border: 2px solid #cec410;
    border-left-style: none;
}
.connector {
    border: 1px solid #b4b4b4;
    border-left-style: none;
    position: absolute;
    z-index: 1;
}
#py2ida, #py2ida0, #py2ida1 {
    float: left;
    background: rgb(219, 219, 219);
    font-size: 14px;
    width: 40%;
    text-overflow: clip;
    overflow: hidden;
    white-space: nowrap;
}
#py2ida img, #py2ida0 img, #py2ida1 img, #py2vue img, #py2vue0 img, #py2vue1 img {
    width: 12px;
}
#py2vue, #py2vue0, #py2vue1 {
    float: right;
    background: rgb(218, 218, 218);
    font-size: 14px;
    width: 40%;
    text-overflow: clip;
    overflow: hidden;
    white-space: nowrap;
}
/*FIXTURE*/
.table-header-fecha {
    background-color: #000000;
    color: white;
}

.table-header-fixture {
    color: white;
    background: #000000;
}

.team-badge {
    max-height: 28px;
    max-width: 28px;
    display: block;
    margin: 0 auto;
    height: fit-content;
}

.hora-cancha {
    color: rgb(255, 255, 255);
    background-color: #4e0202;
    font-size: 0.7em;
    padding: 10px;
    height: fit-content;
    text-align: center;
    width: 18%;
}

.equipo-fixture {
    font-size: 0.6em;
    font-weight: 700;
    background-color: #dddddd;
    height: fit-content;
    text-align: center;
}

.score {
    padding: 10px;
    height: fit-content;
    font-size: 1em;
}

.goleadores{
    font-size: 0.7em;
    text-align: center;
}

.goleadoras{
    font-size: 0.7em;
    text-align: center;
}
.goleadores i{
    font-size: 0.7em;
    color: rgb(165, 4, 4);
}
.goleadoras i{
    font-size: 0.7em;
    color: rgb(165, 4, 4);
}
.table-fixture {
    max-width: 40%;
    padding: 0%;
    margin-top: 20px;
    border-radius: 10px; /* Añade esquinas redondeadas */
    overflow: hidden; /* Asegura que el contenido no sobresalga de las esquinas redondeadas */
}

/* Estilos específicos para dispositivos móviles */
@media (max-width: 767px) {
    .table-fixture, .position-table {
        width: 100%; /* Asegura que las tablas ocupen el 100% del contenedor en móviles */
        max-width: 100%; /* Asegura que las tablas no se desborden en móviles */
        padding: 0;
        border-radius: 10px; /* Añade esquinas redondeadas para móviles */
        overflow: hidden; /* Asegura que el contenido no sobresalga de las esquinas redondeadas */
    }

    .hora-cancha,
    .equipo-fixture,
    .score,
    .goleadores {
        width: auto; 
    }

    .equipo-tabla{
        size: 10px;
    }

    .table-fixture {
        max-width: 100%;
        width: 100%;
        padding: 0;
        border-radius: 10px; /* Añade esquinas redondeadas para móviles */
        overflow: hidden; /* Asegura que el contenido no sobresalga de las esquinas redondeadas */
    }

    .position-table {
        max-width: 100%;
        width: 100%;
        padding: 0;
        border-radius: 10px; /* Añade esquinas redondeadas para móviles */
        overflow: hidden; /* Asegura que el contenido no sobresalga de las esquinas redondeadas */
    }
} 

/*TABLA DE POSICIONES*/
.position-table{
    max-width: 40%;
    padding: 0%;
    margin-bottom: 30px;
}

.table-title{
    text-align: center;
    margin-top: 10px;
}

.table-row-head{
    background-color: rgb(0, 0, 0);
    color: white;
}

.table-row1{
    background-color: rgb(240, 237, 237);
}

.numeros-tabla{
    width: 80px;
    text-align: center;
    font-size: 0.8em;
    padding-left: 5px;
    padding-right: 5px;
    position: relative;
}            

.equipo-tabla{
    width: 80%;
    text-align: center;
    font-size: 0.8em;
}

@media (max-width: 767px) {
    .equipo-tabla{
        font-size: 0.7em;
    }
}

.equipo-tabla-sanciones{
    width: 80%;
    text-align: center;
    font-size: 0.8em;
}

.numeros-tabla-sanciones{
    text-align: center;
    font-size: 0.8em;
    padding-left: 5px;
    padding-right: 5px;
    position: relative;
}

.team-badge-tabla {
    min-width: 22px;
    max-height: 22px;
    max-width: 22px;
    display: block;
    margin: 0 auto;
    height: fit-content;
}

.team-badge-tabla-sanciones{
    min-width: 22px;
    max-height: 22px;
    max-width: 22px;
    display: block;
    margin: 5px;
    height: fit-content;
}

.team-info {
    display: flex; /* Utiliza flexbox para organizar el contenido */
    align-items: center; /* Alinea los elementos verticalmente */
}

.table-header-tablapos{
    background-color: #000000;
    color: white;
}

@media (max-width: 767px) {
        .position-table{
            max-width: 100%;
        }
        .goleadores-table{
            max-width: 100%;
        }
    } 

.desciende{
    background-color: rgb(199, 3, 3);
    color: white;
}
.promocion{
    background-color: rgb(255, 166, 0);
    color: white;
}
.campeon{
    background-color: rgb(175, 150, 6);
    color: white;
}
.campeonEz{
    background-color: rgb(175, 150, 6);
    color: white;
}
.clasifica{
    background-color: rgb(0, 114, 0);
    color: white;
}
.clasificaz1{
    background-color: rgb(0, 114, 0);
    color: white;
}
.campeonE{
    background-color: rgb(175, 150, 6);
    color: white;
}
.clasifica4tos{
    background-color: rgb(0, 114, 0);
    color: white;
}
.clasifica16vos{
    background-color: #3a8827;
    color: white;
}
.clasifica8vos{
    background-color: #71c55b;
    color: white;
}
.cuadrangulardescenso{
        background-color: rgb(199, 3, 3);
        color: white;
}
.clasificaz2 {
    background-color: #258d19;
    color: white;
}
.clasificaz3 {
    background-color: #4ea93b;
    color: white;
}
.clasificaz4 {
    background-color: #71c55b;
    color: white;
}
.hidden {
    position: absolute;
    opacity: 0;
}

/*extras*/
.aclaraciones{
    text-align: center;
    padding-bottom: 20px;
    font-weight: 600;
}

/*notificacion x pos de la tabla*/
.notificacion-emergente {
    position: fixed;
    bottom: 20px;
    left: 52.5%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    font-size: 16px;
    text-align: center;
}

/*EQUIPOS*/
.club-profile-container {
    margin-top: 80px; /* Ajusta este valor según sea necesario */
}

.club-profile {
    max-width: 800px;
    margin:40px auto; /* Separación del encabezado de la página */
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.club-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar el contenido horizontalmente */
    gap: 10px; /* Espacio entre el logo y el nombre */
    margin-bottom: 20px;
}

.club-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
}

.club-name {
    font-size: 24px;
    margin: 0;
}

/* Estilo para la imagen del equipo */
.team-photo {
    width: 80%;
    max-width: 550px;
    height: auto;
    margin: 20px 0; /* Separación arriba y abajo */
    border-radius: 8px;
}

.club-history {
    margin-bottom: 20px;
}

.club-players {
    margin-top: 20px; /* Aumentar la separación de la tabla respecto al encabezado */
}

.club-players h2 {
    margin-top: 0;
    text-align: center;
}

.player-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    margin: 0 auto; /* Centramos la tabla */
}

.player-table th, .player-table td {
    padding: 8px 12px;
    text-align: center;
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
}

.player-table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

.player-table td {
    border-bottom: 1px solid #000000; /* Línea divisoria fina */
}

.player-table, .player-table th, .player-table td {
    border: none; /* Elimina los bordes de la tabla, encabezados y celdas */
}

/* Estilo para las filas, asegurando que la línea divisoria sea visible */
.player-table tr:not(:last-child) td {
    border-bottom: 1px solid #ddd;
}
/*Nuevo Css*/
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas */
    column-gap: 20px; /* Espacio horizontal entre los elementos */
    row-gap: 30px; /* Espacio vertical entre los elementos */
    padding: 20px;
}

.grid-item {
    background-color: #fff;
    padding: 0; /* Eliminar el padding para acomodar la imagen y el texto */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Asegurar que la imagen no sobresalga del borde redondeado */
    height: 350px; /* Altura fija para las cuadrículas */
}

.image-container {
    height: 70%; /* Proporción de la cuadrícula ocupada por la imagen */
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen se adapta al tamaño del contenedor */
    border-radius: 8px 8px 0 0;
}

.grid-item p {
    margin: 10px;
    font-size: 16px;
    padding: 10px;
    height: 30%; /* Proporción de la cuadrícula ocupada por el texto */
}

.grid-item:hover {
    transform: scale(1.05);
}

/*-------------------------------------*/
/*BANNERS*/
.banner{
    width: 600px;
    height: 200px;
    display: flex;
    margin-bottom: 20px;
}
@media (max-width:767px){
    .banner{
        width: 350px;
        height: 120px;
        display: flex;
        margin-bottom: 10px;
    }
}

#vitrina {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
    padding: 5px;
    margin-bottom: 20px;
    border-radius: 5px;
    width: 80%; /* Ajusta el ancho del contenedor */
    margin: 0 auto 20px auto; /* Centra el contenedor horizontalmente */
}

.vitrina-section {
    text-align: center;
    flex: 1; /* Permite que los elementos se distribuyan equitativamente */
    margin: 0 10px; /* Reduce la separación entre los elementos */
}

.vitrina-section h3 {
    font-size: 1em;
    margin-bottom: 20px;
}

.team-logo {
    width: 100px; /* Aumenta el tamaño del escudo */
    height: 100px;
    margin-bottom: 5px;
}

.team-name {
    font-size: 0.8em;
}

@media (max-width: 767px) {
    #vitrina {
        width: 100%; /* Ajusta el ancho del contenedor */
        padding: 10px; /* Ajusta el padding */
    }

    .vitrina-section {
        margin: 0 5px; /* Reduce aún más la separación entre los elementos */
    }

    .vitrina-section h3 {
        font-size: 0.8em; /* Reduce el tamaño de la fuente */
    }

    .team-logo {
        width: 80px; /* Reduce el tamaño del escudo */
        height: 80px;
    }

    .team-name {
        font-size: 0.7em; /* Reduce el tamaño de la fuente */
    }
}

/*FUEGOS ARTIFICIALES*/

@keyframes firework {
    0% { transform: translate(var(--x), var(--initialY)); width: var(--initialSize); opacity: 1; }
    50% { width: 0.5vmin; opacity: 1; }
    100% { width: var(--finalSize); opacity: 0; }
  }
  
  /* @keyframes fireworkPseudo {
    0% { transform: translate(-50%, -50%); width: var(--initialSize); opacity: 1; }
    50% { width: 0.5vmin; opacity: 1; }
    100% { width: var(--finalSize); opacity: 0; }
  }
   */
  .firework,
  .firework::before,
  .firework::after
  {
    --initialSize: 0.5vmin;
    --finalSize: 45vmin;
    --particleSize: 0.2vmin;
    --color1: yellow;
    --color2: khaki;
    --color3: white;
    --color4: lime;
    --color5: gold;
    --color6: mediumseagreen;
    --y: -30vmin;
    --x: -50%;
    --initialY: 60vmin;
    content: "";
    animation: firework 2s infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, var(--y));
    width: var(--initialSize);
    aspect-ratio: 1;
    background: 
      /*
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 0% 0%,
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 100% 0%,
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 100% 100%,
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 0% 100%,
      */
      
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 50% 0%,
      radial-gradient(circle, var(--color2) var(--particleSize), #0000 0) 100% 50%,
      radial-gradient(circle, var(--color3) var(--particleSize), #0000 0) 50% 100%,
      radial-gradient(circle, var(--color4) var(--particleSize), #0000 0) 0% 50%,
      
      /* bottom right */
      radial-gradient(circle, var(--color5) var(--particleSize), #0000 0) 80% 90%,
      radial-gradient(circle, var(--color6) var(--particleSize), #0000 0) 95% 90%,
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 90% 70%,
      radial-gradient(circle, var(--color2) var(--particleSize), #0000 0) 100% 60%,
      radial-gradient(circle, var(--color3) var(--particleSize), #0000 0) 55% 80%,
      radial-gradient(circle, var(--color4) var(--particleSize), #0000 0) 70% 77%,
      
      /* bottom left */
      radial-gradient(circle, var(--color5) var(--particleSize), #0000 0) 22% 90%,
      radial-gradient(circle, var(--color6) var(--particleSize), #0000 0) 45% 90%,
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 33% 70%,
      radial-gradient(circle, var(--color2) var(--particleSize), #0000 0) 10% 60%,
      radial-gradient(circle, var(--color3) var(--particleSize), #0000 0) 31% 80%,
      radial-gradient(circle, var(--color4) var(--particleSize), #0000 0) 28% 77%,
      radial-gradient(circle, var(--color5) var(--particleSize), #0000 0) 13% 72%,
      
      /* top left */
      radial-gradient(circle, var(--color6) var(--particleSize), #0000 0) 80% 10%,
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 95% 14%,
      radial-gradient(circle, var(--color2) var(--particleSize), #0000 0) 90% 23%,
      radial-gradient(circle, var(--color3) var(--particleSize), #0000 0) 100% 43%,
      radial-gradient(circle, var(--color4) var(--particleSize), #0000 0) 85% 27%,
      radial-gradient(circle, var(--color5) var(--particleSize), #0000 0) 77% 37%,
      radial-gradient(circle, var(--color6) var(--particleSize), #0000 0) 60% 7%,
      
      /* top right */
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 22% 14%,
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 45% 20%,
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 33% 34%,
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 10% 29%,
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 31% 37%,
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 28% 7%,
      radial-gradient(circle, var(--color1) var(--particleSize), #0000 0) 13% 42%
      ;
    background-size: var(--initialSize) var(--initialSize);
    background-repeat: no-repeat;
  }
  
  .firework::before {
    --x: -50%;
    --y: -50%;
    --initialY: -50%;
  /*   transform: translate(-20vmin, -2vmin) rotate(40deg) scale(1.3) rotateY(40deg); */
    transform: translate(-50%, -50%) rotate(40deg) scale(1.3) rotateY(40deg);
  /*   animation: fireworkPseudo 2s infinite; */
  }
  
  .firework::after {
    --x: -50%;
    --y: -50%;
    --initialY: -50%;
  /*   transform: translate(44vmin, -50%) rotate(170deg) scale(1.15) rotateY(-30deg); */
    transform: translate(-50%, -50%) rotate(170deg) scale(1.15) rotateY(-30deg);
  /*   animation: fireworkPseudo 2s infinite; */
  }
  
  .firework:nth-child(2) {
    --x: 30vmin;
  }
  
  .firework:nth-child(2),
  .firework:nth-child(2)::before,
  .firework:nth-child(2)::after {
    --color1: pink;
    --color2: violet;
    --color3: fuchsia;
    --color4: orchid;
    --color5: plum;
    --color6: lavender;  
    --finalSize: 40vmin;
    left: 30%;
    top: 60%;
    animation-delay: -0.25s;
  }
  
  .firework:nth-child(3) {
    --x: -30vmin;
    --y: -50vmin;
  }
  
  .firework:nth-child(3),
  .firework:nth-child(3)::before,
  .firework:nth-child(3)::after {
    --color1: pink;
    --color2: violet;
    --color3: fuchsia;
    --color4: orchid;
    --color5: plum;
    --color6: lavender; 
    --finalSize: 35vmin;
    left: 70%;
    top: 60%;
    animation-delay: -0.4s;
  }

/*FIN FUEGOS ARTIFICIALES*/

#py2restotal, #py2restotal0, #py2restotal1 {
    margin: auto;
    width: 50%;
    background: rgb(218, 218, 218);
    font-size: 0.9em;
}

/*botones fechas nuevos*/
.fecha-navegacion {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Asegura que las flechas estén pegadas a los bordes */
    background-color: #000000;
    color: white;
    padding: 0px;
    margin: 20px auto; /* Centra el contenedor horizontalmente */
    position: relative;
    width: 80%; /* Ajusta el ancho del contenedor */
    max-width: 520px; /* Máximo ancho del contenedor */
    cursor: pointer;
    border-radius: 5px;
    font-size: .9em;
    font-weight: bold;
    text-align: center;
}

.btn-navegacion {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    margin: 0; /* Elimina el margen para pegar las flechas al borde */
    padding: 0; /* Elimina el padding para que las flechas no tengan espacio extra */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 50px; /* Ajusta el ancho de las flechas */
}

.fecha-actual-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Permite que el contenedor ocupe el espacio disponible */
}

.fecha-actual {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    text-align: center; /* Centra el texto */
    padding: 10px;
}

.btn-navegacion-down {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-left: 5px; /* Ajusta el margen para pegar la flecha al texto */
}

.lista-fechas {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000;
    border: 1px solid #fff;
    z-index: 1000;
    width: 100%;
    max-width: 200px;
}

.lista-fechas ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lista-fechas li {
    padding: 10px;
    cursor: pointer;
    color: white;
    text-align: center;
}

.lista-fechas li:hover {
    background-color: #333;
}

@media (max-width: 767px) {
    .fecha-navegacion {
        width: 100%; /* Asegura que el contenedor no se achique demasiado en móviles */
    }
    .fecha-actual {
        font-size: 1em;
    }
    .btn-navegacion {
        font-size: 1.2em;
    }
    .lista-fechas {
        max-width: 100%;
    }
}

.btn-year {
    background: #2e2e2e;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
}

@media (max-width: 767px) {
    .btn-year {
        padding: 5px 10px;
        font-size: 12px;
    }
}

.year-list {
    display: none;
    position: absolute;
    top: 40px; /* Ajustar este valor según sea necesario */
    right: 10px;
    background-color: #6d6b6b;
    border: none;
    border-radius: 5px;
    z-index: 1000;
    width: 150px; /* Ajustar el ancho según sea necesario */
}

.year-list.show {
    display: block;
}

.year-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.year-list li {
    padding: 10px;
    cursor: pointer;
    color: #fff;
}

.year-list li:hover {
    background-color: #555;
}

.hidden {
    display: none;
}

/*carrousel*/

.actuacion-destacada {
    background: linear-gradient(to bottom, #ac0404, #2b0101);
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin: 10px auto; /* Centrado horizontal */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 230px;
    min-height: 230px;
}
@media (max-width: 767px) {
    .actuacion-destacada {
        max-width: 600px;
        max-height: 230px;
        min-height: 230px;
    }
}

.titulo {
    align-items: center;
    justify-content: center;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
    padding: 10px;
}

.titulo-cat {
    font-size: 1.2em;
    font-weight: bolder;
    margin-bottom: 10px;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
}

.icono {
    margin-right: 5px;
}

.logo-equipo {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.925); /* Fondo blanco semitransparente para los logos */
    padding: 5px;
    border-radius: 50%; /* Bordes redondeados para los logos */
}

.nombre-jugador {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 5px;
    margin-top: 22px;
}

.detalle {
    font-size: 0.9em;
    padding: 0px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.escudos-equipos {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
}

.escudos-equipos .logo-equipo {
    width: 70px;
    height: 70px;
    margin: 0 10px;
}

.resultado {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 10px;
    color: #ffffff;
}

.titulo-prep {
    font-size: 1.2em;
    font-weight: bolder;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    color: black;
}

/* Noticias */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.news-widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, max-height 0.3s ease-in-out;
    width: 300px;
}

.news-widget:hover {
    transform: scale(1.02);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-title {
    padding: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
    text-align: center;
    background-color: #f8f8f8;
}

.news-detail {
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    font-size: 1em;
    background-color: #ebebeb;
    color: rgb(0, 0, 0);
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.news-widget.active .news-detail {
    max-height: 900px; /* Ajusta según el contenido */
    padding: 10px;
}

/*botones menu*/
.button-64 {
    align-items: center;
    background-image: linear-gradient(144deg,#470505, #f34242 50%,#000000);
    border: 0;
    border-radius: 8px;
    box-shadow: rgba(153, 2, 2, 0.2) 0 15px 30px -5px;
    box-sizing: border-box;
    color: #FFFFFF;
    display: flex;
    font-family: Copperplate;
    font-size: 20px;
    justify-content: center;
    line-height: 1em;
    max-width: 100%;
    min-width: 140px;
    padding: 3px;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    cursor: pointer;
  }
  
  .button-64:active,
  .button-64:hover {
    outline: 0;
  }
  
  .button-64 span {
    background-color: rgb(45, 5, 5);
    padding: 16px 24px;
    border-radius: 6px;
    width: 100%;
    height: 100%;
    transition: 300ms;
  }
  
  .button-64:hover span {
    background: none;
  }
  
  @media (max-width: 768px) {
    .button-64 {
      font-size: 24px;
      min-width: 196px;
      width: 100%;
      margin: 10px;
    }
  }

  .titulo-menu{
    margin-top: 70px;
    margin-bottom: 20px;
    font-family: Copperplate;
    font-size: 1.5em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
  }

  .actuacion-destacada .detalle ul {
    list-style-position: inside;
    text-align: left;
    margin: 0 auto;
    display: table;
}
@media (max-width: 768px) {
    .actuacion-destacada .detalle ul {
        list-style-position: inside;
        text-align: left;
        margin: 0 auto;
        display: table;
        margin-right: 85px;
    }
  }
