
.fifa2026{
background:
radial-gradient(circle at top,#02101e 0%,#01050b 40%,#000 100%);
padding:30px;
border-radius:30px;
color:#fff;
font-family:Inter,Arial,sans-serif;
overflow:hidden;
}

.hero h1{
font-size:78px;
font-weight:900;
margin:20px 0 0;
letter-spacing:-3px;
}

.hero p{
font-size:28px;
opacity:.8;
margin-top:10px;
}

.logo{
font-size:30px;
font-weight:900;
}

.tabs{
display:flex;
overflow:auto;
margin:35px 0;
border-radius:18px;
background:rgba(255,255,255,.03);
border:1px solid rgba(255,255,255,.08);
}

.tabs a{
padding:18px 28px;
color:#fff;
text-decoration:none;
font-weight:700;
white-space:nowrap;
}

.tabs a:hover{
background:#59f33f;
color:#000;
}

.group{
background:linear-gradient(135deg,rgba(5,18,30,.96),rgba(0,0,0,.98));
border:1px solid rgba(255,255,255,.08);
border-radius:28px;
padding:24px;
margin-bottom:35px;
}

.group-top{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:24px;
}

.group h2{
font-size:54px;
color:#59f33f;
margin:0;
font-weight:900;
}

.btn{
padding:16px 24px;
border-radius:16px;
border:1px solid rgba(255,255,255,.08);
background:rgba(255,255,255,.03);
font-weight:700;
}

table{
width:100%;
border-collapse:collapse;
table-layout:fixed;
}

th{
background:rgba(255,255,255,.03);
padding:18px 8px;
font-size:18px;
}

td{
padding:20px 8px;
text-align:center;
border-bottom:1px solid rgba(255,255,255,.08);
font-size:18px;
}

.team{
display:flex;
align-items:center;
gap:12px;
text-align:left;
font-weight:700;
}

.shield{
width:34px;
height:34px;
border-radius:8px;
object-fit:cover;
}

.pos{
width:54px;
font-weight:900;
}

.p1,.p2{background:#59f33f;color:#000;}
.p3{background:#1edfff;color:#000;}
.p4{background:#ff2f48;}

.pts{
color:#59f33f;
font-size:24px;
font-weight:900;
}

@media(max-width:768px){

.fifa2026{
padding:14px;
border-radius:0;
}

.hero h1{
font-size:52px;
}

.hero p{
font-size:20px;
}

.logo{
font-size:22px;
}

.group{
padding:14px;
}

.group h2{
font-size:30px;
}

.btn{
font-size:11px;
padding:10px 12px;
}

table{
table-layout:auto;
}

th{
font-size:10px;
padding:10px 2px;
}

td{
font-size:11px;
padding:12px 2px;
}

.team{
gap:6px;
font-size:11px;
}

.team span{
display:block;
line-height:1.1;
}

.shield{
width:18px;
height:18px;
}

.pos{
width:26px;
font-size:12px;
}

.pts{
font-size:14px;
}

.tabs a{
padding:14px 18px;
font-size:12px;
}
}


.legend{
margin-top:24px;
display:flex;
gap:40px;
flex-wrap:wrap;
padding:22px;
border-radius:18px;
border:1px solid rgba(255,255,255,.08);
background:rgba(255,255,255,.02);
}

.legend-item{
display:flex;
align-items:center;
gap:12px;
font-weight:700;
font-size:16px;
}

.legend-color{
width:24px;
height:24px;
border-radius:6px;
display:block;
}

.legend-color.green{
background:#59f33f;
}

.legend-color.blue{
background:#1edfff;
}

.legend-color.red{
background:#ff2f48;
}

@media(max-width:768px){

.legend{
gap:16px;
padding:14px;
}

.legend-item{
font-size:11px;
gap:8px;
}

.legend-color{
width:14px;
height:14px;
border-radius:4px;
}
}


.group-tab.active{
background:#59f33f !important;
color:#000 !important;
}

.fifa-group{
display:none;
animation:fifaFade .3s ease;
}

.fifa-group.active{
display:block;
}

@keyframes fifaFade{
from{
opacity:0;
transform:translateY(8px);
}
to{
opacity:1;
transform:translateY(0);
}
}

.group-top{
justify-content:flex-start !important;
}


.jornada-tabs{
display:flex;
gap:12px;
overflow:auto;
margin:0 0 28px;
}

.jornada-tab{
padding:14px 20px;
border-radius:14px;
background:rgba(255,255,255,.04);
border:1px solid rgba(255,255,255,.08);
color:#fff;
text-decoration:none;
font-weight:700;
white-space:nowrap;
}

.jornada-tab.active{
background:#59f33f;
color:#000;
}

.matches-wrap{
margin-top:22px;
display:grid;
gap:14px;
}

.match-card{
display:flex;
align-items:center;
justify-content:space-between;
padding:18px;
border-radius:18px;
background:rgba(255,255,255,.03);
border:1px solid rgba(255,255,255,.06);
}

.match-team{
width:38%;
font-size:18px;
font-weight:700;
}

.match-team.right{
text-align:right;
}

.match-score{
font-size:34px;
font-weight:900;
color:#1edfff;
}

@media(max-width:768px){

.jornada-tab{
font-size:12px;
padding:12px 16px;
}

.match-card{
padding:14px;
}

.match-team{
font-size:12px;
width:34%;
}

.match-score{
font-size:22px;
}
}


.match-side{
display:flex;
align-items:center;
gap:12px;
width:38%;
}

.match-side.right{
justify-content:flex-end;
}

.match-center{
display:flex;
flex-direction:column;
align-items:center;
gap:6px;
}

.match-shield{
width:42px;
height:42px;
object-fit:cover;
border-radius:10px;
}

.match-time{
font-size:12px;
opacity:.7;
font-weight:700;
letter-spacing:1px;
}

@media(max-width:768px){

.match-side{
width:36%;
gap:8px;
}

.match-shield{
width:24px;
height:24px;
border-radius:6px;
}

.match-time{
font-size:10px;
}
}


/* FIX REAL: ningún grupo no activo puede enseñar sus partidos */
.fifa-group{
    display:none !important;
}

.fifa-group.active{
    display:block !important;
}

.fifa-group:not(.active) .matches-wrap,
.fifa-group:not(.active) .match-card{
    display:none !important;
}


.tabs button.group-tab{
    appearance:none;
    border:0;
    background:transparent;
    padding:18px 28px;
    color:#fff;
    font-weight:700;
    white-space:nowrap;
    cursor:pointer;
    border-right:1px solid rgba(255,255,255,.06);
}

.tabs button.group-tab.active{
    background:#59f33f !important;
    color:#000 !important;
}

.fifa-group[hidden]{
    display:none !important;
}

.fifa-group:not(.active){
    display:none !important;
}

.fifa-group.active{
    display:block !important;
}


.group-select-wrap{
display:flex;
justify-content:center;
margin:28px 0;
}

.group-select{
background:rgba(8,12,24,.95);
border:1px solid rgba(255,255,255,.1);
color:#fff;
padding:16px 22px;
border-radius:18px;
font-size:18px;
font-weight:700;
min-width:240px;
text-align:center;
outline:none;
box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.match-team{
font-size:18px !important;
line-height:1.2;
word-break:normal;
overflow-wrap:break-word;
}

.match-side{
min-width:0;
}

@media(max-width:768px){

.group-select{
font-size:15px;
padding:14px 18px;
min-width:210px;
}

.match-team{
font-size:13px !important;
}

.match-card{
gap:8px;
}

.match-side{
width:38%;
}
}


.match-date-title{
text-align:center;
font-size:28px;
font-weight:900;
letter-spacing:4px;
margin:40px 0 24px;
color:#ffffff;
}

.match-card.modern{
display:grid;
grid-template-columns:1fr auto 1fr;
align-items:center;
gap:20px;
padding:30px 26px;
border-radius:34px;
background:rgba(255,255,255,.03);
border:1px solid rgba(255,255,255,.08);
backdrop-filter:blur(8px);
}

.modern-team{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
gap:14px;
}

.modern-shield{
width:62px;
height:62px;
object-fit:contain;
}

.modern-team-name{
font-size:26px;
font-weight:900;
line-height:1.1;
word-break:break-word;
}

.modern-center{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:10px;
min-width:150px;
}

.modern-time{
font-size:42px;
font-weight:900;
color:#fff;
letter-spacing:2px;
}

.modern-score{
font-size:34px;
font-weight:900;
color:#59f33f;
}

@media(max-width:768px){

.match-date-title{
font-size:18px;
letter-spacing:2px;
margin:28px 0 18px;
}

.match-card.modern{
padding:22px 14px;
gap:12px;
border-radius:28px;
}

.modern-shield{
width:34px;
height:34px;
}

.modern-team-name{
font-size:14px;
}

.modern-center{
min-width:80px;
}

.modern-time{
font-size:18px;
}

.modern-score{
font-size:18px;
}
}


.jornada-tab{
    appearance:none;
    border:1px solid rgba(255,255,255,.08);
    cursor:pointer;
}

.fifa2026.is-loading{
    opacity:.72;
    pointer-events:none;
    transition:.2s;
}


/* AJAX interno real: no recarga página, solo cambia paneles precargados */
.fifa-group[hidden],
.jornada-panel[hidden]{
    display:none !important;
}

.fifa-group.active,
.jornada-panel.active{
    display:block !important;
}

.jornada-tab{
    appearance:none;
    border:1px solid rgba(255,255,255,.08);
    cursor:pointer;
}


.modern-final-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
}

.modern-score-final{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    line-height:1;
}

.score-num{
    font-size:64px;
    font-weight:900;
    color:#ff3131;
    letter-spacing:-2px;
}

.score-sep{
    font-size:46px;
    font-weight:900;
    color:#444;
}

.modern-status{
    font-size:15px;
    font-weight:900;
    letter-spacing:1px;
    color:#ffffff;
}

@media(max-width:768px){

    .score-num{
        font-size:52px;
    }

    .score-sep{
        font-size:36px;
    }

    .modern-status{
        font-size:13px;
    }
}


.knockout-wrap{
    margin-top:60px;
}

.knockout-stage{
    margin-bottom:48px;
}

.knockout-title{
    font-size:34px;
    font-weight:900;
    color:#fff;
    margin-bottom:26px;
    letter-spacing:1px;
    text-transform:uppercase;
}

.knockout-card{
    margin-bottom:18px;
}

@media(max-width:768px){

    .knockout-title{
        font-size:24px;
    }
}


.phase-tabs{
    display:flex;
    gap:12px;
    overflow:auto;
    margin:26px 0 28px;
    padding-bottom:8px;
}

.phase-tabs::-webkit-scrollbar{
    height:4px;
}

.phase-tab{
    background:#0c101b;
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    border-radius:18px;
    padding:14px 22px;
    font-size:14px;
    font-weight:800;
    white-space:nowrap;
    cursor:pointer;
    transition:.2s;
}

.phase-tab.active{
    background:#59f13a;
    color:#000;
    box-shadow:0 0 18px rgba(89,241,58,.35);
}

.groups-phase-content[hidden],
.knockout-stage[hidden]{
    display:none !important;
}

@media(max-width:768px){

    .phase-tab{
        font-size:12px;
        padding:12px 18px;
    }
}


.fifa-title-logo{
    width:42px;
    height:auto;
    object-fit:contain;
    margin-right:14px;
    vertical-align:middle;
    filter:drop-shadow(0 0 10px rgba(255,215,0,.35));
}

.fifa-top-title{
    display:flex;
    align-items:center;
    gap:14px;
}

@media(max-width:768px){

    .fifa-title-logo{
        width:34px;
        margin-right:8px;
    }
}


.fifa-title-logo{
    background:transparent !important;
    
}


.fifa-title-logo{
    background:transparent !important;
    mix-blend-mode:normal !important;
}


.fifa-logo-preview{
    border-radius:12px;
    background:#111;
    padding:10px;
}
