:root {
    --global-color-0:##ffc042;
    --global-color-1:#ff4e00e8;
    --global-color-2:#2B161B;
    --global-color-3:#554B4E;
    --global-color-4:##8ec7e4;
    --global-color-5:#FFFFFF;
    --global-color-6:#000000;
    --global-color-7:#4B4F58;
    --global-color-8:#F6F7F8;
}
.p {
    text-align: center;
}

/* Estilos generales para el contenedor del partido */
.partido-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    justify-items: center;
    /*background-color: var(--ast-global-color-5); /* Color de fondo */
    padding: 0px;
    margin-bottom: 10px;
    border-radius: 12px;
    min-height: 50px;
    box-shadow: 0px 0px 10px #00000070; /* Sombra */
    overflow: visible;
}
.nombre-cancha {
    color: var(--global-color-5);
    text-align: center;
}

/* Estilos para el encabezado del partido */
.partido-header {
    display: flex;
    flex-direction: row;
    flex: 2;
    justify-content: space-between;
    padding: 8px;
    background-color: var(--global-color-1); /* Color de fondo */
    border-radius: 12px 0px 0px 12px;
    
}

.partido-header p {
    margin: 0;
    color: var(--global-color-5); /* Color del texto */
    
}

/* Estilos para los detalles del partido */
.partido-details {
    display: flex;
    flex-direction: row;
    flex: 6;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: var(--global-color-5); /* Color de fondo */
    border-radius: 0px 12px 12px 0px;
    color: var(--global-color-6);
    padding: 8px;
}

.partido-details div {
    /*flex: 1;*/
    text-align: center;
    justify-content: center;
    color: var(--global-color-6); /* Color del texto */
}
.partido-details p {
    text-align: center;
    margin: 0px;
    /*justify-content: center;*/
}
.centro {
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: center;
}

/* Estilos específicos para los equipos y el versus */
.equipo-a, .equipo-b {
    display: flex;
    flex-direction: row;
    /*align-items: center;
    /*justify-content: center;*/
    margin: 0;
    flex: 1;
    box-sizing: border-box;
    
}

.equipo-a p{
    align-items: flex-end;
    justify-content: right;
    text-align:right;
}

.equipo-nombre {
    font-weight: bold;
    color: var(--global-color-2);
    justify-content: flex-end;
    text-align: flex-end;
    align-items: center;

}

.equipo-goles {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--global-color-1);
    margin: 2px;
    padding-left: 4px;
    padding-right: 4px;
    
}

/*.partido-versus {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: bold;
    color: var(--global-color-3);
    margin: 0;
    width: 5%;
    flex-shrink: 0;
}*/

.partido-versus p {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 12.5px;
    padding-right: 12.5px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--global-color-5);
    width: 100%;
    background-color: #000000;
    border-radius: 12px;

}

/* Responsivo: Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
    .p {
        text-align: center;
    }
    
    
    .partido-wrapper {
        width: 100%;
        padding: 0px;
        margin: 10px 2px 10px 2px !important;
        flex-direction: column; /* Apila los contenedores verticalmente */

    }
    
    .partido-header, .partido-details {
        padding: 0px;
        flex-direction: row;
        align-content: center;
        width: 100%;
        margin: 0px;
    }

    .partido-header {
        border-radius: 12px 12px 0px 0px;
        padding-left: 8px;
        padding-right: 8px;

    }

    .partido-details {
        align-items: center;
        flex-direction: row;
        border-radius: 0px 0px 12px 12px;
        align-items: flex-start;
        margin: 0%;
        padding-top: 2px;
        padding-bottom: 2px;

    }
    .equipo-nombre {
        margin: 2px;
    }
    .equipo-a {
        flex-direction: row;  
    }
    .partido-versus {
        display: flex;
        align-items: flex-start; 
        justify-content: flex-start; 
        margin: 0;
        /*width: 5%;*/
        flex-shrink: 0;

    }
    .partido-versus p {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 12.5px;
        padding-right: 12.5px;
        font-size: 0.8em;
        font-weight: normal;
        color: var(--global-color-5);
        width: 100%;
        background-color: #000000;
        border-radius: 12px;

    }
}

/* Ajustes generales */
body, button, input, select, textarea, .ast-button, .ast-custom-button {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.6em;
}
