    @media (max-width: 576px) {
        #proximos-partidos-card .match-card.proximo .descanso-bg {
            background: #e0e0e0 !important;
        }
        #proximos-partidos-card .match-card.proximo .descanso-bg ~ .team-row .team-name {
            color: #222 !important;
        }
    }
    #proximos-partidos-card .match-card.proximo .match-meta-row > span {
        vertical-align: middle !important;
        display: inline-flex;
        align-items: center;
    }
@media (max-width: 576px) {
    #proximos-partidos-card .match-card.proximo .team-row.d-flex {
        position: relative;
    }
    #proximos-partidos-card .match-card.proximo .vs-container-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 2;
        min-width: 60px;
    }
    #proximos-partidos-card .match-card.proximo .team-info.left-team {
        padding-right: 0px;
    }
    #proximos-partidos-card .match-card.proximo .team-info.right-team {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    #proximos-partidos-card .match-card.proximo .vs-container-center {
        margin-right: 0 !important;
    }
    #proximos-partidos-card .match-card.proximo .vs-text {
        margin: 0;
    }
}
@media (max-width: 576px) {
    #proximos-partidos-card .match-card.proximo .team-rows {
        position: relative;
        overflow: hidden;
        border-radius: 10px;
    }
    /* Fondo dividido */
    #proximos-partidos-card .match-card.proximo .split-background {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, #000000 0%, #004b7e 50%, white 50%, rgb(158, 158, 158) 100%);
        z-index: 0;
    }
    /* Ajustar el punto de división desde el VS */
    #proximos-partidos-card .match-card.proximo .team-row {
        position: relative;
        z-index: 1;
    }
    /* Contenedor del VS */
    #proximos-partidos-card .match-card.proximo .vs-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* Línea tipo rayo/neón */
    #proximos-partidos-card .match-card.proximo .lightning-line {
        position: absolute;
        top: -100%;
        bottom: -100%;
        width: 6px;
        left: 50%;
        transform: translateX(-50%);
        background:
            linear-gradient(90deg, transparent 0%, #00ffff 20%, transparent 40%),
            linear-gradient(90deg, transparent 60%, #ff00ff 80%, transparent 100%);
        mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="200" viewBox="0 0 6 200"><path d="M3,0 Q1,50 3,100 Q5,150 3,200" fill="white"/></svg>');
        mask-repeat: repeat-y;
        mask-size: 6px 200px;
        box-shadow:
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 30px #ff00ff,
            0 0 40px rgba(255, 0, 255, 0.5);
        z-index: 0;
        animation: lightning-bolt 3s infinite alternate;
    }
    /* VS sobre la línea */
    #proximos-partidos-card .match-card.proximo .vs-text {
        background: rgba(26, 35, 126, 0.8);
        padding: 5px 10px;
        border-radius: 20px;
        color: white;
        font-weight: bold;
        z-index: 2;
        position: relative;
        border: 2px solid white;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    /* Equipo izquierdo - fondo azul */
    #proximos-partidos-card .match-card.proximo .left-team .team-name {
        color: white !important;
        font-weight: bold;
    }
    /* Equipo derecho - fondo blanco */
    #proximos-partidos-card .match-card.proximo .right-team .team-name {
        color: #000538 !important;
        font-weight: bold;
    }
    /* Animación del neón */
    @keyframes lightning-bolt {
        0% {
            opacity: 0.3;
            transform: translateX(-50%) scaleX(0.8);
        }
        100% {
            opacity: 1;
            transform: translateX(-50%) scaleX(1.2);
        }
    }
    /* Hacer que los logos se vean bien en ambos fondos */
    #proximos-partidos-card .match-card.proximo .team-logo-small {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        padding: 3px;
    }
    #proximos-partidos-card .match-card.proximo .right-team .team-logo-small {
        background: rgba(26, 35, 126, 0.1);
    }
}
/* Importar Inter Variable desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wdth,wght@50..100,400..900&display=swap');
  /* Card seccional con el mismo estilo que torneo_detalle */
    .section-card{ border:1px solid rgba(8,247,254,.35); border-radius:14px; overflow:hidden; box-shadow:0 10px 24px rgba(0,0,0,.08); }
    .section-card .card-header{ background: linear-gradient(135deg, #f8fbff, #eaf2ff); border-bottom:1px solid rgba(8,247,254,.2); }
    /* Fixture cards con estilo profesional y acento neón */
    .match-card {
        background: #ffffff;
        border-radius: 14px;
        padding: 16px;
        margin-bottom: 14px;
        border: 2px solid #08F7FE;
        box-shadow: 0 0 0 4px rgba(8,247,254,.14), 0 10px 20px rgba(0,0,0,.10);
        transition: transform .2s ease, box-shadow .2s ease;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .match-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 0 6px rgba(8,247,254,.22), 0 16px 28px rgba(0,0,0,.14);
    }
    .match-card.jugado {
        border-color: rgba(8,247,254,.55);
        background: linear-gradient(135deg, #f7fffb 0%, #e9fff6 100%);
    }
    .match-card.proximo {
        border-color: #08F7FE;
        background: #ffffff;
        cursor: pointer;
    }
    .team-score {
        font-size: 1.2em;
        font-weight: 800;
        color: #0a2342;
    }
    .vs-text {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 2px solid #08F7FE;
        color: #0a2342;
        background: #fff;
        font-weight: 900;
        letter-spacing: .5px;
        box-shadow: 0 0 0 4px rgba(8,247,254,.12);
        margin: 0 auto 6px auto;
    }
    .match-date {
        background: #0a2342;
        color: #eaf7ff;
        border: 1px solid rgba(8,247,254,.45);
        border-radius: 999px;
        padding: 6px 12px;
        font-size: 0.8em;
        font-weight: 700;
        box-shadow: 0 0 0 2px rgba(8,247,254,.12);
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .match-status {
        font-size: 0.75em;
        font-weight: 800;
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid rgba(8,247,254,.45);
        background: rgba(8,247,254,.08);
        color: #0a2342;
        white-space: nowrap;
    }
    .status-jugado {
        background: rgba(25, 135, 84, .12);
        border-color: rgba(25, 135, 84, .35);
        color: #146c43;
    }
    .status-proximo {
        background: rgba(8,247,254,.10);
        color: #0a2342;
    }
    .team-logo-small {
        width: 44px;
        height: 44px;
        object-fit: contain;
    }
    .team-name{
        font-weight: 800;
        color:#0a2342;
        margin-top: 2px;
    }
    .team-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 0; }
    .team-row + .team-row{ border-top:1px dashed rgba(8,247,254,.25); }
    .team-info{ display:flex; align-items:center; gap:10px; }
    .match-date-chip, .match-time-chip{
        background:#0a2342; color:#eaf7ff; border:1px solid rgba(8,247,254,.45); border-radius:999px; padding:6px 12px; font-size:.8em; font-weight:700; box-shadow:0 0 0 2px rgba(8,247,254,.12); display:inline-flex; align-items:center; gap:6px; }
    .match-loc{
        background: rgba(8,247,254,.08);
        color: #0a2342;
        border: 1px solid rgba(8,247,254,.35);
        border-radius: 999px;
        padding: 6px 12px;
        font-size: .8em;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .match-loc i{ color:#0a2342; }
    
    /* Estilos específicos para desktop - 3 columnas */
    @media (min-width: 992px){
        .team-logo-small {
            width: 28px;
            height: 28px;
        }
        .team-name {
            font-size: 0.78em;
            font-weight: 700;
            line-height: 1.1;
        }
        .match-date-chip, .match-time-chip, .match-loc {
            font-size: 0.62em;
            padding: 2px 6px;
            gap: 3px;
        }
        .match-status {
            font-size: 0.58em;
            padding: 2px 6px;
        }
        .match-card {
            padding: 6px 8px;
        }
        .team-row {
            gap: 5px;
            padding: 2px 0;
        }
        .team-info {
            gap: 5px;
        }
        #descansa {
            font-size: 0.58em !important;
            padding: 2px 6px !important;
        }
        .match-loc a.btn.btn-sm.btn-outline-admin {
            font-size: 1em;
            padding: 0;
            border: none;
            background: none;
            color: #0a2342;
            font-weight: 700;
        }
        .match-date-chip:contains("Por definir"),
        .match-time-chip:contains("Por definir"),
        .match-loc:contains("Por definir") {
            font-size: 0.62em;
        }
        .col-md-1 {
            min-height: 45px !important;
        }
        .match-card .row {
            margin: 0;
        }
        .match-card .col-md-1,
        .match-card .col-md-7 {
            padding-left: 1px;
            padding-right: 1px;
        }
        .match-card .col-md-4 {
            padding-left: 18px;
            padding-right: 8px;
        }
        .match-card .col-md-4.text-end {
            text-align: right !important;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            justify-content: center;
        }
        .match-card .col-md-4.text-end > div {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }
        .match-card .mb-2 {
            margin-bottom: 0.35rem !important;
        }
        .match-date-chip i, .match-time-chip i, .match-loc i {
            font-size: 0.9em;
        }
    }
    
    /* Separadores sutiles en desktop para el bloque central */
    @media (min-width: 768px){
        .match-card .col-md-1,
        .match-card .col-md-7,
        .match-card .col-md-4{ flex: 0 0 auto; width: auto; }
        .match-card .col-md-7{
            position: relative;
        }
        .match-card .col-md-7:before,
        .match-card .col-md-7:after{
            content: "";
            position: absolute;
            top: 12px;
            bottom: 12px;
            width: 1px;
            background: rgba(8,247,254,.25);
        }
        .match-card .col-md-7:before{ left: -8px; }
        .match-card .col-md-7:after{ right: -8px; }
    }
    
    /* Optimización para móvil - Más compacto y profesional */
    @media (max-width: 576px){
                                                                #proximos-partidos-card .match-card.proximo .match-time-chip {
                                                                    display: inline-flex;
                                                                    align-items: center;
                                                                    justify-content: center;
                                                                    line-height: 1.2;
                                                                }
                                                                #proximos-partidos-card .match-card.proximo .match-time-chip i {
                                                                    font-size: 1em;
                                                                    margin-right: 4px;
                                                                }
                                                        #proximos-partidos-card .match-card.proximo .match-time-chip {
                                                            display: inline-flex;
                                                            align-items: center;
                                                            justify-content: center;
                                                        }
                                                        #proximos-partidos-card .match-card.proximo .match-time-chip i {
                                                            display: inline-flex;
                                                            align-items: center;
                                                        }
                                                #proximos-partidos-card .match-card.proximo .match-time-chip {
                                                    display: inline-flex;
                                                    align-items: center;
                                                    vertical-align: middle;
                                                }
                                                #proximos-partidos-card .match-card.proximo .match-time-chip i {
                                                    display: inline-flex;
                                                    align-items: center;
                                                    height: 100%;
                                                }
                                        /* Alinear el horario al centro verticalmente en móvil */
                                        #proximos-partidos-card .match-card.proximo .match-time-chip {
                                            display: inline-flex;
                                            align-items: center;
                                            vertical-align: middle;
                                        }
                                #proximos-partidos-card .match-card.proximo .team-row.d-flex .team-info:last-child {
                                    margin-left: 50px;
                                }
                               /* Esta es la solución más limpia */
#proximos-partidos-card .match-card.proximo .team-row.d-flex.d-sm-none .team-info:first-child {
    transform: translateX(9px); /* Mueve 15px hacia la derecha */
}

                        /* VS centrado y con fondo azul marino y letra blanca en móvil */
                        #proximos-partidos-card .match-card.proximo .team-row.d-flex {
                            position: relative;
                        }
                        #proximos-partidos-card .match-card.proximo .team-row.d-flex .vs-text {
                            position: absolute;
                            left: 50%;
                            top: 50%;
                            transform: translate(-50%, -50%);
                            background: #0a2342;
                            color: #fff;
                            border-radius: 50%;
                            min-width: 24px;
                            min-height: 24px;
                            width: 24px;
                            height: 24px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            font-weight: bold;
                            font-size: 0.95em;
                            box-shadow: 0 2px 8px rgba(10,35,66,0.10);
                            z-index: 2;
                        }
                        #proximos-partidos-card .match-card.proximo .team-row.d-flex .team-info {
                            width: 45%;
                        }
                /* Letra más junta solo en la fila móvil de próximos partidos */
                #proximos-partidos-card .match-card.proximo .team-row.d-flex .team-name {
                    font-family: 'Inter', Arial, sans-serif;
                    font-variation-settings: 'wdth' 0.00001;
                    letter-spacing: -1px;
                }
        .team-logo-small{ width:22px; height:22px; }
        .match-card{ 
            padding:1px 1px; 
            width:100%; 
            margin-bottom:1px;
            box-shadow:0 0 0 4px rgba(0, 86, 88, 0.12), 0 4px 8px rgba(0,0,0,.08);
        }
        .match-card:hover{
            box-shadow:0 0 0 3px rgba(8,247,254,.18), 0 6px 12px rgba(0,0,0,.10);
        }
        .team-name{ 
            font-size:0.75em; 
            font-weight:700;
            line-height:1.2;
        }
        .team-score{ 
            font-size:1.1em; 
            font-weight:800;
        }
        .team-row{ 
            padding:1px 0; 
            gap:8px;
        }
        .team-info{ gap:8px; }
        .vs-text{ 
            width:28px; 
            height:28px; 
            font-size:0.85em;
            border-width:1.5px;
            box-shadow:0 0 0 2px rgba(8,247,254,.12);
        }
        .match-date-chip, .match-time-chip, .match-loc, .match-status {
            font-size: 0.55em;
            margin-right: 2px;
            height: 16px;
            display: inline-flex;
            align-items: right;
            gap: 3px;
            line-height: 1;
            padding: 4px 8px;
        }
        
        .match-loc a.btn.btn-sm.btn-outline-admin {
            padding: 0;
            font-size: 0.75rem;
            height: 24px;
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            font-weight: 700;
            box-shadow: none;
            border: none;
            background: none;
            color: #0a2342;
        }
        .match-meta-row {
            display: flex;
            flex-wrap: wrap;
            gap: 3px;
            justify-content: flex-end;
            align-items: center;
        }
        .col-md-4.text-end > div { margin-bottom: 0 !important; }
        .col-md-1.d-flex.align-items-center.justify-content-center {
            align-items: center !important;
            justify-content: center !important;
            display: flex !important;
            height: 100%;
        }
    }
    
    #descansa {
         font-size: 0.7em !important;
         margin-top: 0px;
         padding-top: 0px !important;
         padding-bottom: 0px !important;
         vertical-align: middle !important;
    }
    
    /* Grid de partidos: 1 columna en móvil, 3 columnas en desktop */
    #proximos-partidos-lista{
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        justify-content: center;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    @media (max-width: 576px){
            /* Próximos partidos: equipos en la misma fila y tipografía más junta */
            #proximos-partidos-card .match-card.proximo .team-row {
                flex-direction: row !important;
                justify-content: space-between;
                align-items: center;
                gap: 8px;
            }
            #proximos-partidos-card .match-card.proximo .team-name {
                font-family: 'Inter', 'Roboto', Arial, sans-serif;
                font-stretch: condensed;
                letter-spacing: -0.5px;
            }
            /* Asegura que ambos equipos estén en la misma fila */
            #proximos-partidos-card .match-card.proximo .team-info {
                flex-direction: row !important;
                align-items: center;
                gap: 6px;
            }
        #proximos-partidos-lista{ 
            gap:4px;
            grid-template-columns: 1fr; 
            justify-content: stretch; 
        }
        #proximos-partidos-card {
           margin: 0 -12px !important;
        width: calc(100% + 24px) !important;
        max-width: calc(100% + 24px) !important;
        border-radius: 0 !important;
        }
        .match-card{ 
            margin: 0 -12px !important;
            width: calc(100% + 24px) !important;
        max-width: calc(100% + 24px) !important;
            margin-left: 0; 
            margin-right: 0; 
        }
    }
    
    /* 3 COLUMNAS EN DESKTOP */
    @media (min-width: 992px){
        #proximos-partidos-lista{ 
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }
    }
    
    #proximos-partidos-card {
        background-color: #0a2342 !important;
    }