/* =================================================================================================================== */
/* FIFA WORLD CUP 2026 · FOOTER CENTER COUNTDOWN                                                                       */
/* ------------------------------------------------------------------------------------------------------------------- */
/* Módulo temporal. Está encapsulado para no tocar RSS / Efemérides / otros overlays.                                  */
/* Reemplaza la intro/logo anterior por cuenta regresiva compacta para .footer-center.                                  */
/* =================================================================================================================== */
:root{
    --footer-width: 1920px;
    --footer-height: 147px;

    --footer-side-gap: 10px;
    --footer-bottom: 50px;

    /* ALTURA ÚNICA PARA LOS 3 */
    --footer-box-height: 90px;

    --footer-left-width: 810px;
    --footer-right-width: 300px;

    /* 1920 - 10 - 810 - 790 - 300 - 10 = 0 */
    --footer-center-width: 790px;
}

/* ===================================================================================================================
⬇ FOOTER TOTAL
=================================================================================================================== */

.footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: var(--footer-width);
    max-width: 1920px;
    height: var(--footer-height);
    max-height: var(--footer-height);
    z-index: var(--c247-z-footer);
}

/* ===================================================================================================================
⬅ FOOTER LEFT
=================================================================================================================== */

.footer-left {
    position: absolute;

    left: var(--footer-side-gap);
    bottom: var(--footer-bottom);
    width: var(--footer-left-width);
    height: var(--footer-box-height);
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #180116, #2f012c);
    border-left: 6px solid var(--codelis-logoL-rgb);
    border-right: 2px solid var(--codelis-logoL-rgb);
    border-radius: 12px 0 0 12px;
    color: var(--blanco);
    overflow: visible;
    opacity: 0.90;
    z-index: var(--c247-z-footer);
}

/* ===================================================================================================================
⬅➡ FOOTER CENTER
=================================================================================================================== */

.footer-center {
    position: absolute;
    left: calc(var(--footer-side-gap) + var(--footer-left-width));
    bottom: var(--footer-bottom);
    width: var(--footer-center-width);
    height: var(--footer-box-height);
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgb(47, 1, 44), rgb(56, 21, 75));
    overflow: hidden;
    opacity: 0.90;
    z-index: var(--c247-z-footer);
    border-right: 2px solid var(--codelis-logoL-rgb);
}

/* ===================================================================================================================
➡ FOOTER RIGHT
=================================================================================================================== */

.footer-right {
    position: absolute;

    right: var(--footer-side-gap);
    bottom: var(--footer-bottom);
    width: var(--footer-right-width);
    height: var(--footer-box-height);
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #031c36, #1c5a9c);
    border-radius: 0 12px 12px 0;
    color: var(--blanco);
    overflow: visible;
    opacity: 0.90;
    z-index: var(--c247-z-footer);
}

.footer-worldcup-2026 {
    --wc-blue: #002868;
    --wc-green: #007a33;
    --wc-red: #bf0a30;
    --wc-gold: #ffd700;
    --wc-white: #ffffff;
    --wc-card-dark: rgba(0, 0, 0, .78);

    position: absolute;
    inset: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    background:
        radial-gradient(circle at 12% 50%, rgba(0, 122, 51, .38), transparent 34%),
        radial-gradient(circle at 88% 50%, rgba(191, 10, 48, .34), transparent 34%),
        linear-gradient(90deg, rgba(0, 40, 104, .98), rgba(56, 21, 75, .97) 52%, rgba(47, 1, 44, .98));

    border-left: 5px solid var(--wc-gold);
    border-radius: 10px;

    box-shadow:
        0 0 12px rgba(0, 0, 0, .38),
        inset 0 0 0 1px rgba(255, 255, 255, .08);

    color: var(--blanco, #fff);
    overflow: hidden;
    box-sizing: border-box;

    opacity: 0;
    pointer-events: none;

    transform: translateY(8px) scale(.985);
    transition:
        opacity .45s ease,
        transform .45s ease;

    z-index: 60;
}

.footer-worldcup-2026.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.footer-worldcup-glow {
    position: absolute;
    inset: 0;
    opacity: .42;
    overflow: hidden;
    pointer-events: none;
}

.footer-worldcup-glow span {
    position: absolute;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .14);
    filter: blur(.2px);
    animation: footerWorldCupGlowMove 7s ease-in-out infinite alternate;
}

.footer-worldcup-glow span:nth-child(1) { left: 3%; top: -52px; background: rgba(0, 122, 51, .45); }
.footer-worldcup-glow span:nth-child(2) { left: 30%; bottom: -60px; background: rgba(255, 215, 0, .24); animation-delay: -1.6s; }
.footer-worldcup-glow span:nth-child(3) { right: 24%; top: -54px; background: rgba(255, 255, 255, .17); animation-delay: -3.2s; }
.footer-worldcup-glow span:nth-child(4) { right: 4%; bottom: -52px; background: rgba(191, 10, 48, .42); animation-delay: -4.8s; }

.footer-worldcup-countdown {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;

    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(420px, 1.35fr);
    align-items: center;
    gap: 14px;

    margin: 0;
    text-align: center;
    min-width: 0;
}

.footer-worldcup-2026 .countdown-title {
    min-width: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    color: var(--wc-white);
    font-size: clamp(10px, 2.25vh, 19px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;

    text-shadow: 0 2px 5px rgba(0, 0, 0, .55);
}

.footer-worldcup-2026 .countdown-title i {
    color: var(--wc-gold);
    font-size:18px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, .28));
}

.footer-worldcup-2026 .countdown {
    min-width: 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(74px, 1fr));
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    height: calc(100% - 8px);
}

.footer-worldcup-2026 .countdown-item {
    min-width: 0;
    height: 100%;
    max-height: 66px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 5px 8px;

    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 44%),
        var(--wc-card-dark);

    border: 2px solid rgba(255, 215, 0, .94);
    border-radius: 12px;

    box-shadow:
        0 4px 9px rgba(0, 0, 0, .36),
        inset 0 0 0 1px rgba(255, 255, 255, .05);

    box-sizing: border-box;
    overflow: hidden;
}

.footer-worldcup-2026 .countdown-number {
    display: block;

    font-family: Monaco, Consolas, 'Courier New', monospace;
    font-size: clamp(24px, 4.8vh, 38px);
    font-weight: 950;
    line-height: .92;
    color: var(--wc-gold);

    font-variant-numeric: tabular-nums;
    font-feature-settings: "zero" 0;
    letter-spacing: -.04em;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, .9),
        0 0 10px rgba(255, 215, 0, .20);
}

.footer-worldcup-2026 .countdown-label {
    display: block;

    margin-top: 5px;

    color: var(--wc-gold);
    font-size: clamp(10px, 1.55vh, 13px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;

    text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
}

.footer-worldcup-2026 .countdown-item:nth-child(1) { border-color: rgba(255, 215, 0, .98); }
.footer-worldcup-2026 .countdown-item:nth-child(2) { border-color: rgba(0, 122, 51, .98); }
.footer-worldcup-2026 .countdown-item:nth-child(3) { border-color: rgba(255, 255, 255, .86); }
.footer-worldcup-2026 .countdown-item:nth-child(4) { border-color: rgba(191, 10, 48, .98); }

.footer-worldcup-2026.is-visible .countdown-item {
    animation: footerWorldCupCountdownPop .72s cubic-bezier(.16, 1, .3, 1) both;
}

.footer-worldcup-2026.is-visible .countdown-item:nth-child(2) { animation-delay: .06s; }
.footer-worldcup-2026.is-visible .countdown-item:nth-child(3) { animation-delay: .12s; }
.footer-worldcup-2026.is-visible .countdown-item:nth-child(4) { animation-delay: .18s; }

@keyframes footerWorldCupCountdownPop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes footerWorldCupGlowMove {
    from { transform: translate3d(-8px, -4px, 0) scale(.86); }
    to { transform: translate3d(10px, 6px, 0) scale(1.08); }
}

@media (max-width: 1180px) {
    .footer-worldcup-countdown {
        grid-template-columns: 1fr;
        grid-template-rows: 24px 1fr;
        gap: 5px;
    }

    .footer-worldcup-2026 .countdown {
        grid-template-columns: repeat(4, minmax(64px, 1fr));
        gap: 7px;
    }

    .footer-worldcup-2026 .countdown-item {
        max-height: 48px;
        padding: 3px 6px;
        border-radius: 10px;
    }

    .footer-worldcup-2026 .countdown-number {
        font-size: clamp(21px, 3.6vh, 30px);
    }

    .footer-worldcup-2026 .countdown-label {
        margin-top: 3px;
        font-size: 10px;
    }
}

@media (max-height: 760px) {
    .footer-worldcup-2026 {
        inset: 4px 5px;
        padding: 0 12px;
    }

    .footer-worldcup-countdown {
        grid-template-columns: minmax(190px, .8fr) minmax(370px, 1.35fr);
        gap: 10px;
    }

    .footer-worldcup-2026 .countdown-title {
        font-size: 18px;
    }

    .footer-worldcup-2026 .countdown {
        gap: 8px;
    }

    .footer-worldcup-2026 .countdown-item {
        max-height: 58px;
        padding: 4px 7px;
    }

    .footer-worldcup-2026 .countdown-number {
        font-size: 29px;
    }

    .footer-worldcup-2026 .countdown-label {
        margin-top: 4px;
        font-size: 10px;
    }
}








.worldcup-live-match {
    position: absolute;
    left: 50%;
    bottom: 10px;

    width: 520px;
    height: 48px;

    transform: translateX(-50%);

    display: grid;
    grid-template-columns: 95px 330px 95px;

    align-items: start;

    z-index: calc(var(--c247-z-footer) + 5);

    pointer-events: none;
    color: #fff;
    overflow: visible;
}

.wcl-score {
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        180deg,
        rgba(112, 56, 142),
        rgba(143, 85, 155)
    );
    color: #ffffff;

    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    border-top: 1px solid #70388E;

    box-sizing: border-box;

    z-index: 1;
}

/* IZQUIERDA */
.wcl-score-left {
    margin-top: 8px;
    clip-path: polygon(
        0 0,
        100% 0,
        88% 100%,
        8% 100%
    );
    font-family: Monaco, Consolas, monospace;
    margin-right: -54px;
    padding-right: 30px;
}

/* DERECHA */
.wcl-score-right {
    margin-top: 8px;
    clip-path: polygon(
        0 0,
        100% 0,
        88% 100%,
        8% 100%
    );
    font-family: Monaco, Consolas, monospace;
    margin-left: -54px;
    padding-left: 30px;
}

/* CENTRO */
.wcl-center {
    position: relative;
    overflow: visible;
    height: 48px;
    margin-top: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
    
    background: linear-gradient(
        180deg,
        
        rgba(17, 8, 23),
        rgba(56, 21, 75)
    );

    clip-path: polygon(
        0 0,
        100% 0,
        90% 100%,
        10% 100%
    );

    border-top: 1px solid #70388E;

    box-sizing: border-box;

    font-size: 18px;
    font-weight: 600;

    text-shadow: 0 1px 2px rgba(0,0,0,.45);

    z-index: 3;
}


.wcl-center img {

    width: 38px;
    height: 22px;

    object-fit: cover;

    box-shadow:
        0 0 0 1px rgba(255,255,255,.18);
}

.wcl-vs {

    font-size: 14px;
    font-weight: 900;

    letter-spacing: .04em;
}

/* =================================================================================================================== */
/* FIFA WORLD CUP 2026 · FIXTURE POR GRUPOS EN FOOTER CENTER                                                          */
/* =================================================================================================================== */

.wc2026-fixture {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 32px 1fr;
    align-items: center;
    padding: 8px 14px;
    box-sizing: border-box;
    text-transform: uppercase;
}

.wc2026-fixture-title {
    color: var(--wc-gold);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.wc2026-fixture-grid {
    min-width: 0;
}

.wc2026-fixture-match {
    min-width: 0;
    overflow: hidden;
}

.wc2026-fixture-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
}

.wc2026-fixture-teams img {
    width: 34px;
    height: 22px;
    object-fit: cover;
}

.wc2026-fixture-teams em {
    color: var(--wc-gold);
    font-size: 20px;
    font-style: normal;
    font-weight: 950;
}

.wc2026-fixture-teams small {
    color: rgba(255,255,255,.75);
    font-size: 18px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-worldcup-2026 [data-wc-screen] {
    display: none;
}

.footer-worldcup-2026[data-worldcup-screen="countdown"] [data-wc-screen="countdown"] {
    display: grid;
}

.footer-worldcup-2026[data-worldcup-screen="fixture"] [data-wc-screen="fixture"] {
    display: grid;
}

.stadium-txt {
    font-size: 22px;
    color: var(--info-claro-rgb);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stadium-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;

    border-radius: 2px;

    box-shadow:
        0 0 0 1px rgba(255,255,255,.18);
}

.worldcup-live-match {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(14px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
}

.worldcup-live-match.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.wcl-vs.is-countdown {

    min-width: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    font-family: Monaco, Consolas, monospace;

    font-size: 16px;
    font-weight: 900;


    color: #ffd700;

    text-shadow:
        0 0 8px rgba(255,215,0,.35),
        0 1px 2px rgba(0,0,0,.85);
}