:root {
    --color-celeste: #78c8f0;
    --color-celeste-oscuro: #0c75a8;
    --color-blanco: #ffffff;
    --color-negro: #111827;
    --color-dorado: #d9b45f;
    --color-fondo: #f3f8fb;
    --color-borde: #d8e6ee;
    --color-muted: #5f6f7c;
    --worldcup-navy: #061f36;
    --worldcup-navy-deep: #041827;
    --worldcup-petrol: #063454;
    --worldcup-celeste: #78c8f0;
    --worldcup-gold: #d9b45f;
    --worldcup-white: #eaf6ff;
    --worldcup-border: rgba(120, 200, 240, 0.22);
    --sombra-card: 0 18px 45px rgba(17, 24, 39, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--color-negro);
    background: linear-gradient(135deg, #eef9ff 0%, var(--color-fondo) 48%, #ffffff 100%);
}

.home-page,
.home-institutional-bg {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
}

.home-institutional-bg {
    background: linear-gradient(135deg, #eef2f5 0%, #dfe5ea 35%, #f8fafc 70%, #e6ebef 100%);
}

.home-institutional-bg::before,
.home-institutional-bg::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.home-institutional-bg::before {
    z-index: -2;
    background-image: url("../../images/escudo-aufa.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: min(820px, 78vw) auto;
    opacity: 0.12;
}

.home-institutional-bg::after {
    z-index: -1;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.58), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(148, 163, 184, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(226, 232, 240, 0.36) 45%, rgba(255, 255, 255, 0.52));
}

main {
    min-height: 60vh;
}

a {
    color: var(--color-celeste-oscuro);
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow-container {
    max-width: 760px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(217, 180, 95, 0.24);
    background:
        radial-gradient(circle at 12% 0%, rgba(120, 200, 240, 0.2), transparent 30%),
        linear-gradient(135deg, rgba(6, 31, 54, 0.96), rgba(4, 24, 39, 0.98));
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.24), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
}

.site-header .container {
    width: min(1280px, calc(100% - 32px));
    margin-inline: auto;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 60px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    color: var(--worldcup-white);
    text-decoration: none;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(217, 180, 95, 0.72);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.92));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 16px rgba(217, 180, 95, 0.12);
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo img {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    object-fit: contain;
}

.brand-logo-placeholder::before {
    content: 'AUFA';
    color: #083344;
    font-size: 0.62rem;
    font-weight: 900;
}

.brand-identity,
.brand-system {
    display: grid;
    min-width: 0;
}

.brand-identity {
    gap: 1px;
    padding-right: 9px;
    border-right: 1px solid rgba(217, 180, 95, 0.24);
}

.brand-aufa,
.brand-organization,
.brand-official {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-aufa {
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    line-height: 1;
}

.brand-organization {
    width: auto;
    max-width: none;
    color: rgba(234, 246, 255, 0.84);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.12;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.brand-official {
    width: fit-content;
    max-width: 100%;
    margin-top: 2px;
    padding: 2px 6px;
    border: 1px solid rgba(217, 180, 95, 0.36);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(217, 180, 95, 0.1);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.brand-system {
    display: none;
    gap: 2px;
    max-width: 140px;
}

.brand-title,
.brand-subtitle {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-title {
    color: rgba(234, 246, 255, 0.78);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    color: rgba(217, 180, 95, 0.82);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 1300px) {
    .brand-system {
        display: none;
    }

    .brand-identity {
        border-right: 0;
        padding-right: 0;
    }
}

@media (max-width: 1180px) {
    .brand-official {
        display: none;
    }
}

@media (max-width: 1050px) {
    .brand-organization {
        max-width: 260px;
        line-height: 1.1;
        white-space: normal;
    }
}

/* Ocupa el espacio restante del header */
.main-nav {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    min-width: 0;
    gap: 6px;
    white-space: nowrap;
}

/* --- Links informativos — zona central --------------------- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 0;
}

.nav-links a {
    padding: 6px 8px;
    border-radius: 999px;
    color: rgba(234, 246, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #ffffff;
    background: rgba(120, 200, 240, 0.14);
}

/* --- Zona de usuario — lado derecho ------------------------ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-actions a {
    padding: 6px 8px;
    border-radius: 999px;
    color: rgba(234, 246, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.nav-actions a:hover,
.nav-actions a:focus {
    color: #ffffff;
    background: rgba(120, 200, 240, 0.14);
}

/* Pill de usuario con inicial */
.nav-user-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 4px 8px 4px 4px !important;
    background: rgba(120, 200, 240, 0.10) !important;
    border: 1px solid rgba(120, 200, 240, 0.18);
    color: rgba(234, 246, 255, 0.92) !important;
}

.nav-user-pill:hover,
.nav-user-pill:focus {
    background: rgba(120, 200, 240, 0.18) !important;
    border-color: rgba(120, 200, 240, 0.30);
    color: #ffffff !important;
}

.nav-user-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fde68a, var(--worldcup-gold));
    color: #082f49;
    font-size: 0.68rem;
    font-weight: 900;
    flex-shrink: 0;
}

/* CTA dorado (Registrarse) */
.nav-actions .nav-cta {
    color: #082f49 !important;
    background: linear-gradient(135deg, #fde68a, var(--worldcup-gold)) !important;
    font-weight: 800;
}

.nav-actions .nav-cta:hover,
.nav-actions .nav-cta:focus {
    opacity: 0.9;
    background: linear-gradient(135deg, #fde68a, var(--worldcup-gold)) !important;
}

/* Logout */
.nav-actions .nav-logout {
    color: #fecaca !important;
    background: rgba(127, 29, 29, 0.22) !important;
}

.nav-actions .nav-logout:hover,
.nav-actions .nav-logout:focus {
    color: #ffffff !important;
    background: rgba(127, 29, 29, 0.38) !important;
}

.card {
    background: var(--color-blanco);
    border: 1px solid var(--color-borde);
    border-radius: 18px;
    box-shadow: var(--sombra-card);
    padding: 24px;
}

.home-page .card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(226, 232, 240, 0.92);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.10);
    backdrop-filter: blur(12px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: var(--color-blanco);
    background: var(--color-celeste-oscuro);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary {
    color: var(--color-negro);
    background: var(--color-dorado);
}

.btn-outline {
    color: var(--color-celeste-oscuro);
    background: transparent;
    border: 1px solid rgba(12, 117, 168, 0.35);
}

.hero-section,
.page-hero {
    padding: 72px 0 36px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: 36px;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.card h2 {
    margin: 0;
    letter-spacing: -0.045em;
}

.hero-copy h1 {
    max-width: 780px;
    font-size: clamp(2.6rem, 8vw, 5.8rem);
    line-height: 0.95;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 7vw, 4.6rem);
    line-height: 1;
}

.hero-lead {
    max-width: 680px;
    color: var(--color-muted);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    line-height: 1.65;
}

.hero-support {
    max-width: 620px;
    color: var(--color-negro);
    font-size: clamp(1.12rem, 2.2vw, 1.42rem);
    font-weight: 800;
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    margin-top: 48px;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(120, 200, 240, 0.26), transparent 42%);
    pointer-events: none;
}

.badge,
.score-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(217, 180, 95, 0.18);
    color: #7a5a17;
    font-size: 0.83rem;
    font-weight: 800;
}

.mini-stats {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.mini-stats span {
    padding: 12px 14px;
    border: 1px solid var(--color-borde);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    font-weight: 700;
}

.section-block {
    padding: 34px 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(120, 200, 240, 0.08), rgba(217, 180, 95, 0.08));
}

.home-page .section-soft {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.34), rgba(203, 213, 225, 0.18));
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--color-celeste-oscuro);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rules-grid,
.info-grid,
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

.rule-card h3 {
    margin-bottom: 8px;
}

.prizes-section {
    padding-top: 44px;
}

.prize-card {
    display: grid;
    gap: 10px;
    min-height: 150px;
    align-content: center;
    text-align: center;
}

.prize-card strong {
    color: var(--color-celeste-oscuro);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
}

.prize-rank {
    color: #7a5a17;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.prizes-note {
    margin: 18px 0 0;
    padding: 16px 18px;
    border: 1px solid rgba(217, 180, 95, 0.34);
    border-radius: 16px;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
    line-height: 1.5;
}

.card p,
.steps-list {
    color: var(--color-muted);
    line-height: 1.6;
}

.steps-list {
    padding-left: 20px;
}

.steps-list li + li {
    margin-top: 10px;
}

.collaboration-card {
    background: linear-gradient(135deg, #ffffff 0%, #e9f8ff 100%);
}

.home-page .collaboration-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.hero-clubs-strip {
    display: grid;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 180, 95, 0.24);
    border-radius: 22px;
    background:
        radial-gradient(circle at 0 0, rgba(253, 230, 138, 0.12), transparent 40%),
        linear-gradient(180deg, rgba(8, 47, 73, 0.62), rgba(4, 24, 39, 0.74));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-clubs-title {
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-clubs-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    overflow: visible;
}

.hero-club-logo-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(4, 24, 39, 0.06), 0 10px 22px rgba(0, 0, 0, 0.14);
    cursor: help;
    outline: none;
}

.hero-club-logo {
    display: block;
    max-width: 100%;
    max-height: 44px;
    object-fit: contain;
}

.hero-club-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    z-index: 30;
    width: max-content;
    max-width: min(220px, 72vw);
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.9);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, 5px) scale(0.98);
    transition: opacity 160ms ease, transform 160ms ease;
}

.hero-club-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 8px;
    height: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(2, 6, 23, 0.9);
    transform: translate(-50%, -4px) rotate(45deg);
}

.hero-club-logo-wrap:hover,
.hero-club-logo-wrap:focus-visible {
    z-index: 4;
    border-color: rgba(253, 230, 138, 0.7);
    box-shadow: inset 0 0 0 1px rgba(4, 24, 39, 0.06), 0 12px 26px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(253, 230, 138, 0.18);
}

.hero-club-logo-wrap:hover .hero-club-tooltip,
.hero-club-logo-wrap:focus-visible .hero-club-tooltip {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.hero-social-block {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(253, 230, 138, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
}

.hero-social-text {
    margin: 0;
    color: rgba(234, 246, 255, 0.82);
    font-weight: 800;
    line-height: 1.45;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 15px 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.social-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.social-link-icon svg {
    display: block;
    width: 19px;
    height: 19px;
}

.social-link-instagram .social-link-icon svg,
.social-link-whatsapp .social-link-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.social-link-whatsapp .social-link-icon svg path + path {
    fill: currentColor;
    stroke: none;
}

.social-link-facebook .social-link-icon svg {
    fill: currentColor;
}

.social-link-label {
    line-height: 1;
}

.social-link-instagram {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 48%, #7c3aed 100%);
}

.social-link-facebook {
    background: linear-gradient(135deg, #1877f2, #0b5fcc);
}

.social-link-whatsapp {
    background: linear-gradient(135deg, #22c55e, #128c7e);
}

.social-link:hover,
.social-link:focus {
    transform: translateY(-2px);
    filter: brightness(1.08) saturate(1.08);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.25), 0 0 0 3px rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    .hero-card {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .hero-clubs-strip {
        width: 100%;
        margin-bottom: 12px;
        padding: 10px;
    }

    .hero-clubs-logos {
        display: grid;
        grid-template-columns: repeat(3, 48px);
        justify-content: start;
    }

    .hero-club-logo-wrap {
        width: 48px;
        height: 48px;
    }

    .hero-club-logo {
        max-height: 38px;
    }
}

.placeholder-card {
    margin-top: 24px;
}

.mundial-hero .torneo-card {
    background: linear-gradient(135deg, #ffffff 0%, #e7f7ff 100%);
}

.format-grid,
.groups-grid,
.fixture-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.format-card {
    position: relative;
    overflow: hidden;
}

.format-card::after {
    content: '';
    position: absolute;
    right: -32px;
    bottom: -42px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(120, 200, 240, 0.20);
}

.format-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: var(--color-blanco);
    background: var(--color-celeste-oscuro);
    font-weight: 900;
}

.format-card h3,
.group-card h3,
.match-card h3 {
    margin-bottom: 8px;
}

.timeline-list,
.fixture-layout {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--color-borde);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.timeline-item strong {
    color: var(--color-negro);
}

.timeline-item span {
    color: var(--color-muted);
    text-align: right;
}

.groups-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.groups-table-layout {
    display: grid;
    gap: 22px;
}

.standings-card,
.fixture-group-card {
    display: grid;
    gap: 16px;
    padding: 0;
    overflow: hidden;
}

.standings-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px 0;
}

.standings-heading h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.03em;
}

.standings-heading span {
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.standings-scroll,
.fixture-table-scroll {
    overflow-x: auto;
    padding: 0 24px 24px;
}

.standings-table,
.fixture-table {
    width: 100%;
    min-width: 820px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.94rem;
}

.standings-table th,
.standings-table td,
.fixture-table th,
.fixture-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--color-borde);
    text-align: center;
    vertical-align: middle;
}

.standings-table th,
.fixture-table th {
    color: var(--color-muted);
    background: rgba(120, 200, 240, 0.12);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.standings-table tbody tr:hover,
.fixture-table tbody tr:hover {
    background: rgba(243, 248, 251, 0.82);
}

.standings-table .team-column,
.standings-table .team-cell,
.fixture-table th:nth-child(2),
.fixture-table th:nth-child(3),
.fixture-table td:nth-child(2),
.fixture-table td:nth-child(3),
.fixture-table th:nth-child(5),
.fixture-table td:nth-child(5) {
    text-align: left;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.standings-table .team-flag {
    width: 40px;
    height: 26px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.16);
}

.results-placeholder {
    color: var(--color-muted);
    font-weight: 900;
    letter-spacing: 0.08em;
}

/* Bandera de país en filas de fixture (desktop inline + mobile card) */
.fixture-flag {
    display: inline-block;
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    vertical-align: middle;
    margin-right: 7px;
    flex-shrink: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 0.78rem;
    font-weight: 900;
}

.status-pill[data-estado="en_juego"] {
    background: #dcfce7;
    color: #14532d;
}

.status-pill[data-estado="finalizado"] {
    background: #f1f5f9;
    color: #475569;
}

.status-pill[data-estado="suspendido"] {
    background: #fee2e2;
    color: #991b1b;
}

.fixture-view-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.fixture-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(12, 117, 168, 0.22);
    border-radius: 999px;
    color: var(--color-celeste-oscuro);
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.fixture-view-button:hover,
.fixture-view-button:focus {
    border-color: rgba(12, 117, 168, 0.48);
    background: #eef9ff;
}

.fixture-view-button-active {
    border-color: var(--color-celeste-oscuro);
    color: #ffffff;
    background: var(--color-celeste-oscuro);
}

.fixture-date-list,
.fixture-date-group,
.fixture-date-matches {
    display: grid;
    gap: 16px;
}

.fixture-date-group {
    padding: 18px;
    border: 1px solid var(--color-borde);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
}

.fixture-date-group .phase-heading {
    padding-top: 0;
    border-top: 0;
}

.fixture-date-match {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px 18px;
    align-items: center;
    padding: 16px;
}

.fixture-date-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 14px;
    color: #075985;
    background: #e0f2fe;
    font-size: 0.92rem;
    font-weight: 900;
}

.fixture-date-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.fixture-date-teams span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fixture-date-teams span:last-child {
    justify-content: flex-end;
    text-align: right;
}

.fixture-date-teams strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fixture-date-teams em {
    color: var(--color-dorado);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fixture-date-meta {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.fixture-date-meta > span:not(.status-pill) {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(120, 200, 240, 0.12);
}

.group-card {
    display: grid;
    gap: 16px;
}

.group-card-header,
.match-meta,
.phase-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.group-card-header strong,
.phase-heading span,
.match-meta span {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.teams-list {
    display: grid;
    gap: 10px;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px;
    border: 1px solid rgba(216, 230, 238, 0.9);
    border-radius: 14px;
    background: rgba(243, 248, 251, 0.65);
}

.team-row-empty {
    opacity: 0.72;
}

.team-flag {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-borde);
}

.team-flag-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-celeste-oscuro);
    background: linear-gradient(135deg, #ffffff, #dff5ff);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.team-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.team-info strong,
.team-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-info small {
    color: var(--color-muted);
    font-weight: 800;
}

.fixture-empty {
    border-color: rgba(12, 117, 168, 0.22);
    background: linear-gradient(135deg, #ffffff 0%, #eef9ff 100%);
}

.fixture-empty h2 {
    margin-bottom: 8px;
}

.fixture-phase {
    display: grid;
    gap: 14px;
}

.phase-heading {
    padding-top: 10px;
    border-top: 1px solid var(--color-borde);
}

.fixture-group-card .phase-heading {
    padding: 22px 24px 0;
    border-top: 0;
}

.phase-heading h2 {
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 2rem);
    letter-spacing: -0.03em;
}

.fixture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-card {
    display: grid;
    gap: 16px;
}

.match-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(120, 200, 240, 0.14);
}

.match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.match-teams strong:first-child {
    text-align: right;
}

.match-teams span {
    color: var(--color-dorado);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.match-details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.match-details div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
}

.match-details dt {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.match-details dd {
    margin: 0;
}

.bracket-placeholder {
    position: relative;
    display: grid;
    gap: 6px;
    min-height: 96px;
    padding: 18px 18px 18px 28px;
    border: 1px dashed rgba(12, 117, 168, 0.38);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
}

.bracket-placeholder::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 18px;
    bottom: 18px;
    width: 10px;
    border-top: 2px solid rgba(12, 117, 168, 0.38);
    border-bottom: 2px solid rgba(12, 117, 168, 0.38);
    border-left: 2px solid rgba(12, 117, 168, 0.38);
    border-radius: 8px 0 0 8px;
}

.bracket-placeholder span {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bracket-placeholder strong {
    font-size: 1.08rem;
}

.bracket-hero .bracket-summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #eef9ff 58%, rgba(217, 180, 95, 0.18) 100%);
}

.bracket-layout {
    width: min(1520px, calc(100% - 24px));
}

.bracket-board-scroll {
    overflow-x: auto;
    padding: 8px 4px 18px;
}

.bracket-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.34fr) minmax(0, 1fr);
    gap: 18px;
    min-width: 1320px;
    padding: 22px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 26px;
    background:
        linear-gradient(90deg, rgba(12, 117, 168, 0.08), transparent 17%, transparent 83%, rgba(12, 117, 168, 0.08)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.94));
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

.bracket-side {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
}

.bracket-column,
.bracket-center {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    min-width: 0;
}

.bracket-column h2,
.bracket-center h2 {
    margin: 0;
    color: #334155;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}

.bracket-column-matches,
.bracket-center-stack {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 10px;
    min-height: 790px;
}

.round-32-left .bracket-column-matches,
.round-32-right .bracket-column-matches {
    gap: 9px;
}

.round-16-left .bracket-column-matches,
.round-16-right .bracket-column-matches {
    padding-block: 44px;
}

.quarter-left .bracket-column-matches,
.quarter-right .bracket-column-matches {
    padding-block: 135px;
}

.semi-left .bracket-column-matches,
.semi-right .bracket-column-matches {
    justify-content: center;
}

.bracket-center {
    align-content: center;
    padding-inline: 2px;
}

.bracket-center-stack {
    justify-content: center;
    gap: 34px;
}

.bracket-mobile-list {
    display: none;
}

.bracket-phase {
    display: grid;
    gap: 16px;
    padding: 0;
    overflow: hidden;
}

.bracket-phase-heading {
    padding: 22px 24px 0;
    border-top: 0;
}

.bracket-match-list {
    display: grid;
    gap: 14px;
    padding: 0 18px 20px;
}

.bracket-match-card {
    position: relative;
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(203, 213, 225, 0.96);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.bracket-board .bracket-match-card::before,
.bracket-board .bracket-match-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 16px;
    border-top: 1px solid rgba(12, 117, 168, 0.28);
    transform: translateY(-50%);
}

.bracket-left .bracket-match-card::after {
    right: -16px;
}

.bracket-left .bracket-match-card::before {
    left: -16px;
}

.bracket-right .bracket-match-card::before {
    left: -16px;
}

.bracket-right .bracket-match-card::after {
    right: -16px;
}

.bracket-left .round-32-left .bracket-match-card::before,
.bracket-right .round-32-right .bracket-match-card::after,
.bracket-center .bracket-match-card::before,
.bracket-center .bracket-match-card::after {
    display: none;
}

.bracket-final-card {
    border-color: rgba(217, 180, 95, 0.8);
    background: linear-gradient(180deg, #ffffff, rgba(217, 180, 95, 0.14));
}

.bracket-third-place-card {
    opacity: 0.92;
}

.bracket-match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding-bottom: 1px;
}

.bracket-match-header span {
    color: var(--color-celeste-oscuro);
    flex: 0 0 auto;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.bracket-match-header strong {
    color: var(--color-muted);
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bracket-team-slot {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    min-width: 0;
    padding: 6px;
    border: 1px solid rgba(12, 117, 168, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.bracket-team-slot-pending {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.58);
}

.bracket-flag {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.16);
}

.bracket-flag-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-celeste-oscuro);
    background: linear-gradient(135deg, #ffffff, #dff5ff);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.bracket-team-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.bracket-team-copy strong,
.bracket-team-copy small,
.bracket-team-copy em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bracket-team-copy strong {
    color: var(--color-negro);
    font-size: 0.78rem;
    line-height: 1.15;
}

.bracket-team-copy small {
    color: var(--color-celeste-oscuro);
    font-size: 0.62rem;
    font-weight: 900;
}

.bracket-team-copy em {
    color: var(--color-muted);
    font-size: 0.62rem;
    font-style: normal;
    line-height: 1.2;
}

.bracket-versus {
    justify-self: center;
    color: #7a5a17;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bracket-result-line,
.bracket-penalties-line {
    justify-self: center;
    color: var(--color-celeste-oscuro);
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.bracket-penalties-line {
    color: var(--color-muted);
    font-weight: 800;
}

.public-bracket {
    position: relative;
    isolation: isolate;
    margin-top: 18px;
    padding: 34px 0 58px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 10%, rgba(120, 200, 240, 0.28), transparent 28%),
        radial-gradient(circle at 84% 18%, rgba(217, 180, 95, 0.22), transparent 30%),
        linear-gradient(135deg, #061826 0%, #0c3148 46%, #07111e 100%);
}

.public-bracket::before,
.public-bracket::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.public-bracket::before {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

.public-bracket::after {
    z-index: -1;
    background:
        linear-gradient(120deg, transparent 0 44%, rgba(255, 255, 255, 0.08) 44% 45%, transparent 45% 100%),
        radial-gradient(ellipse at center, transparent 0 42%, rgba(255, 255, 255, 0.07) 43%, transparent 44%);
    opacity: 0.78;
}

.public-bracket .alert {
    position: relative;
    z-index: 1;
}

.public-bracket-layout {
    position: relative;
    z-index: 1;
    width: min(1660px, calc(100% - 24px));
}

.public-bracket-scroll {
    padding: 10px 4px 22px;
    scrollbar-color: rgba(217, 180, 95, 0.9) rgba(255, 255, 255, 0.12);
}

.public-bracket-board {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.36fr) minmax(0, 1fr);
    gap: 20px;
    min-width: 1500px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(90deg, rgba(120, 200, 240, 0.14), transparent 18%, transparent 82%, rgba(120, 200, 240, 0.14)),
        linear-gradient(180deg, rgba(9, 31, 47, 0.94), rgba(5, 17, 30, 0.96));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.public-bracket-side {
    gap: 16px;
}

.public-bracket-stage h2 {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-shadow: 0 1px 16px rgba(120, 200, 240, 0.35);
}

.public-bracket-stage .bracket-column-matches,
.public-bracket-center .bracket-center-stack {
    min-height: 850px;
}

.public-bracket-center {
    padding-inline: 4px;
}

.public-bracket-trophy {
    position: relative;
    display: grid;
    place-items: center;
    justify-self: center;
    width: 164px;
    height: 164px;
    margin: 2px auto 10px;
    overflow: hidden;
    border: 2px solid rgba(217, 180, 95, 0.72);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 180, 95, 0.26), rgba(8, 47, 73, 0.78));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34), 0 0 48px rgba(217, 180, 95, 0.28);
}

.public-bracket-trophy img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 19%;
    transform: scale(4.35);
    transform-origin: 50% 19%;
}

.public-bracket-match {
    gap: 8px;
    padding: 10px;
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 246, 252, 0.94));
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.public-bracket-board .public-bracket-match::before,
.public-bracket-board .public-bracket-match::after {
    width: 20px;
    border-top: 1px solid rgba(120, 200, 240, 0.45);
}

.public-bracket-left .public-bracket-match::after {
    right: -20px;
}

.public-bracket-left .public-bracket-match::before {
    left: -20px;
}

.public-bracket-right .public-bracket-match::before {
    left: -20px;
}

.public-bracket-right .public-bracket-match::after {
    right: -20px;
}

.public-bracket-match-header {
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(12, 117, 168, 0.12);
}

.public-bracket-match-header span {
    color: #075985;
    font-size: 0.68rem;
}

.public-bracket-match-header strong {
    color: #64748b;
    font-size: 0.7rem;
}

.public-bracket-teams {
    display: grid;
    gap: 6px;
}

.public-bracket-team {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    min-height: 48px;
    padding: 7px;
    border-color: rgba(12, 117, 168, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
}

.public-bracket-team-winner {
    border-color: rgba(217, 180, 95, 0.86);
    background: linear-gradient(90deg, rgba(217, 180, 95, 0.2), rgba(255, 255, 255, 0.96));
    box-shadow: inset 3px 0 0 rgba(217, 180, 95, 0.9);
}

.public-bracket-team-pending {
    color: #64748b;
    border-color: rgba(148, 163, 184, 0.46);
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.72),
        rgba(255, 255, 255, 0.72) 8px,
        rgba(226, 232, 240, 0.52) 8px,
        rgba(226, 232, 240, 0.52) 16px
    );
}

.public-bracket-flag {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.public-bracket-flag-placeholder {
    color: #075985;
    background: linear-gradient(135deg, #ffffff, #dff5ff);
    font-size: 0.6rem;
}

.public-bracket-team-copy {
    gap: 2px;
    align-content: center;
}

.public-bracket-team-name {
    font-size: 0.84rem;
    letter-spacing: -0.01em;
}

.public-bracket-winner-badge {
    justify-self: start;
    min-height: 18px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #713f12;
    background: rgba(217, 180, 95, 0.28);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.public-bracket-versus {
    color: rgba(12, 117, 168, 0.78);
    font-size: 0.58rem;
}

.public-bracket-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 10px;
    margin-top: 2px;
    padding: 8px 9px;
    border: 1px solid rgba(12, 117, 168, 0.14);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(12, 117, 168, 0.09), rgba(120, 200, 240, 0.12));
}

.public-bracket-result span {
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-bracket-result strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 950;
    letter-spacing: 0.02em;
}

.public-bracket-result-pending strong {
    color: #64748b;
    font-size: 0.78rem;
}

.public-bracket-status {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 20px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.public-bracket-status-finalized {
    color: #14532d;
    background: #dcfce7;
}

.public-bracket-status-pending {
    color: #713f12;
    background: rgba(254, 243, 199, 0.82);
}

.public-bracket-penalties {
    justify-self: start;
    width: 100%;
    padding: 7px 9px;
    border: 1px solid rgba(217, 180, 95, 0.34);
    border-radius: 11px;
    color: #713f12;
    background: rgba(217, 180, 95, 0.16);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.25;
}

.public-bracket-penalties-pending {
    color: #64748b;
    border-color: rgba(148, 163, 184, 0.34);
    background: rgba(226, 232, 240, 0.58);
}

.public-bracket-final {
    border-color: rgba(217, 180, 95, 0.94);
    background:
        linear-gradient(180deg, rgba(255, 253, 244, 0.99), rgba(254, 243, 199, 0.92));
    box-shadow:
        0 0 0 1px rgba(217, 180, 95, 0.22),
        0 22px 42px rgba(0, 0, 0, 0.3),
        0 0 34px rgba(217, 180, 95, 0.26);
}

.public-bracket-final .public-bracket-match-header span,
.public-bracket-final .public-bracket-match-header strong {
    color: #854d0e;
}

.public-bracket-third-place {
    border-color: rgba(148, 163, 184, 0.42);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.88));
    opacity: 0.94;
}

.public-bracket-phase {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.96);
}

.admin-bracket-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 5%, rgba(217, 180, 95, 0.22), transparent 22%),
        radial-gradient(circle at 16% 14%, rgba(56, 189, 248, 0.18), transparent 28%),
        radial-gradient(circle at 86% 10%, rgba(14, 165, 233, 0.14), transparent 30%),
        linear-gradient(180deg, var(--worldcup-navy) 0%, var(--worldcup-petrol) 42%, var(--worldcup-navy-deep) 100%);
}

.admin-bracket-page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

.admin-bracket-page > * {
    position: relative;
    z-index: 1;
}

.admin-bracket-page .admin-layout {
    color: var(--worldcup-white);
}

.admin-worldcup-header {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(22px, 4vw, 34px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    color: #f8fafc;
    background:
        radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.24), transparent 24%),
        radial-gradient(circle at 12% 20%, rgba(120, 200, 240, 0.2), transparent 26%),
        linear-gradient(135deg, rgba(12, 117, 168, 0.42), rgba(2, 6, 23, 0.24));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 58px rgba(0, 0, 0, 0.24);
}

.admin-worldcup-header::after {
    content: '2026';
    position: absolute;
    right: clamp(12px, 5vw, 58px);
    bottom: -24px;
    z-index: 0;
    color: rgba(255, 255, 255, 0.045);
    font-size: clamp(5rem, 13vw, 11rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 0.8;
}

.admin-worldcup-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.admin-worldcup-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border: 2px solid rgba(217, 180, 95, 0.76);
    border-radius: 28px;
    color: #083344;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.92));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), 0 0 28px rgba(217, 180, 95, 0.18);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.admin-worldcup-logo img {
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: contain;
}

.admin-worldcup-kicker,
.admin-group-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    color: #082f49;
    background: linear-gradient(135deg, #fef3c7, var(--worldcup-gold));
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-worldcup-title {
    margin: 10px 0 6px;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 4.1rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.admin-worldcup-subtitle {
    margin: 0;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.22rem);
    font-weight: 700;
}

.admin-worldcup-side {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: end;
    gap: 16px;
}

.admin-worldcup-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    border: 1px solid rgba(217, 180, 95, 0.46);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 180, 95, 0.12);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.admin-worldcup-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 520px;
}

.admin-worldcup-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(120, 200, 240, 0.26);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(120, 200, 240, 0.12);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.admin-worldcup-actions a:hover,
.admin-worldcup-actions a:focus {
    background: rgba(120, 200, 240, 0.22);
}

.admin-groups-panel {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.admin-groups-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 4px 0;
}

.admin-groups-heading h2 {
    margin: 10px 0 6px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.admin-groups-heading p {
    margin: 0;
    color: rgba(234, 246, 255, 0.68);
    font-weight: 700;
}

.admin-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
}

.admin-group-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    overflow: hidden;
    border-color: rgba(217, 180, 95, 0.32);
    color: var(--worldcup-white);
    background:
        radial-gradient(circle at 0 0, rgba(120, 200, 240, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(8, 47, 73, 0.82), rgba(4, 24, 39, 0.9));
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.admin-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-group-header h3 {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.04em;
}

.admin-group-progress {
    display: grid;
    justify-items: end;
    gap: 6px;
    color: rgba(224, 242, 254, 0.66);
    font-size: 0.78rem;
    text-align: right;
}

.admin-group-progress-badge,
.admin-group-status,
.admin-group-closed {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-group-progress-pendiente,
.admin-group-status-programado {
    color: #713f12;
    background: rgba(254, 243, 199, 0.92);
}

.admin-group-progress-en-curso,
.admin-group-status-en-juego {
    color: #075985;
    background: rgba(186, 230, 253, 0.86);
}

.admin-group-progress-completo,
.admin-group-status-finalizado {
    color: #14532d;
    background: #dcfce7;
}

.admin-group-status-suspendido {
    color: #7f1d1d;
    background: #fee2e2;
}

.admin-group-standings {
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 15px;
    background: rgba(2, 6, 23, 0.22);
}

.admin-group-standings table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.admin-group-standings th,
.admin-group-standings td {
    padding: 9px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    text-align: center;
    vertical-align: middle;
}

.admin-group-standings tbody tr:last-child td {
    border-bottom: 0;
}

.admin-group-standings th {
    color: rgba(224, 242, 254, 0.72);
    background: rgba(14, 165, 233, 0.12);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-group-standings th:nth-child(2),
.admin-group-standings td:nth-child(2) {
    text-align: left;
}

.admin-group-table-team,
.admin-group-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.admin-group-table-team strong,
.admin-group-team strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-group-match .admin-group-team {
    gap: 10px;
    min-width: 0;
}

.admin-group-match .admin-group-team strong {
    overflow: visible;
    color: #ffffff;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.admin-group-flag {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
}

.admin-group-flag-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-celeste-oscuro);
    background: linear-gradient(135deg, #ffffff, #dff5ff);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.admin-group-flag-placeholder[hidden] {
    display: none !important;
}

.admin-group-fixtures {
    display: grid;
    gap: 10px;
}

.admin-group-match {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.admin-group-match-finalizado {
    background: rgba(148, 163, 184, 0.1);
}

.admin-group-match-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.admin-group-match-lines {
    display: grid;
    gap: 8px;
}

.admin-group-team-score-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(186, 230, 253, 0.18);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.2);
}

.admin-group-team-score-row .admin-group-team-visitor {
    justify-content: flex-start;
    text-align: left;
}

.admin-group-team-visitor {
    justify-content: flex-end;
    text-align: right;
}

.admin-group-score {
    display: grid;
    grid-template-columns: 42px 12px 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.admin-group-score input,
.admin-group-score span {
    width: 42px;
    height: 38px;
    border: 1px solid rgba(186, 230, 253, 0.34);
    border-radius: 11px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.38);
    font-size: 0.94rem;
    font-weight: 900;
    text-align: center;
}

.admin-group-score span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(217, 180, 95, 0.16);
}

.admin-group-score em {
    color: rgba(224, 242, 254, 0.56);
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.admin-group-score-single {
    grid-template-columns: 52px;
    justify-content: end;
}

.admin-group-score-single input {
    width: 52px;
    height: 42px;
}

.admin-group-match-meta,
.admin-group-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-group-match-meta {
    color: rgba(224, 242, 254, 0.68);
    font-size: 0.76rem;
    font-weight: 800;
}

.admin-group-closed {
    color: #14532d;
    background: #dcfce7;
    text-transform: none;
}

.admin-group-save {
    min-height: 34px;
    padding: 0 14px;
    color: #082f49;
    background: linear-gradient(135deg, #fde68a, var(--worldcup-gold));
    font-size: 0.78rem;
}

.admin-bracket {
    width: 100%;
    padding: 18px 18px 22px;
}

.admin-bracket-wide.container {
    width: calc(100vw - 32px);
    max-width: none;
}

.admin-bracket-card-wide,
.admin-bracket-wide .admin-bracket {
    width: 100%;
    max-width: none;
}

.admin-bracket-card-wide {
    border-color: rgba(217, 180, 95, 0.24);
    color: var(--worldcup-white);
    background: rgba(2, 20, 35, 0.42);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.18);
}

.admin-bracket-card-wide .admin-card-heading {
    color: var(--worldcup-white);
}

.admin-bracket-card-wide .admin-card-heading h2 {
    color: #ffffff;
    text-transform: uppercase;
}

.admin-bracket-card-wide .admin-card-heading span:not(.badge) {
    color: rgba(224, 242, 254, 0.7);
}

.admin-bracket-card-wide .admin-card-heading .btn-outline {
    border-color: rgba(120, 200, 240, 0.26);
    color: var(--worldcup-white);
    background: rgba(120, 200, 240, 0.12);
}

.admin-bracket-help {
    margin: 0 0 16px;
    color: rgba(234, 246, 255, 0.68);
    font-weight: 700;
    line-height: 1.5;
}

.admin-bracket-bulk-form {
    margin: 0;
}

.admin-bracket-bulk-heading,
.admin-bracket-bulk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 18px 12px;
}

.admin-bracket-bulk-heading .admin-bracket-help {
    margin: 0;
}

.admin-bracket-bulk-footer {
    justify-content: flex-end;
    margin-top: 12px;
    margin-bottom: 0;
}

.admin-bracket-bulk-save {
    flex: 0 0 auto;
    color: #082f49;
    background: linear-gradient(135deg, #fde68a, var(--worldcup-gold));
}

.admin-bracket-bulk-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px;
    border: 1px solid rgba(186, 230, 253, 0.14);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.18);
}

.admin-bracket-bulk-alert {
    margin: 0 18px 12px;
}

.admin-bracket-bulk-title {
    display: block;
    color: #fde68a;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-bracket-bulk-score-row {
    display: grid;
    grid-template-columns: 42px auto 42px;
    align-items: center;
    gap: 6px;
}

.admin-bracket-bulk-score,
.admin-bracket-bulk-penalties {
    width: 100%;
    min-height: 30px;
    border: 1px solid rgba(186, 230, 253, 0.24);
    border-radius: 8px;
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.42);
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-bracket-bulk-score {
    padding: 4px 6px;
    text-align: center;
}

.admin-bracket-bulk-penalties {
    padding: 4px 8px;
}

.admin-bracket-bulk-score-row > span {
    color: rgba(224, 242, 254, 0.62);
    font-weight: 900;
    text-align: center;
}

.admin-bracket-bulk-note {
    grid-column: 1 / -1;
    color: rgba(224, 242, 254, 0.66);
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
}

.admin-reset-zone {
    margin-bottom: 18px;
    border-color: rgba(248, 113, 113, 0.36);
    background:
        radial-gradient(circle at 0 0, rgba(248, 113, 113, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(69, 10, 10, 0.72), rgba(30, 41, 59, 0.86));
}

.admin-reset-zone summary {
    cursor: pointer;
    color: #fecaca;
    font-size: 1.05rem;
    font-weight: 900;
}

.admin-reset-zone .auth-form {
    margin-top: 14px;
}

.admin-danger-button {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #ffffff;
}

.admin-groups-bulk-form {
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid rgba(186, 230, 253, 0.16);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.2);
}

.admin-groups-bulk-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-groups-bulk-heading .admin-bracket-help {
    margin: 0;
}

.admin-groups-bulk-save {
    flex: 0 0 auto;
}

.admin-groups-bulk-alert {
    margin: 14px 0 0;
}

.admin-bracket .bracket-board-scroll {
    overflow-x: hidden;
    padding: 6px 0 16px;
}

.admin-bracket-wide .bracket-board-scroll {
    width: 100%;
    overflow-x: hidden;
}

.admin-bracket-fit {
    width: 100%;
    overflow: hidden;
}

.admin-bracket-scale {
    width: max-content;
    transform-origin: top left;
}

.admin-bracket-board {
    width: max-content;
    min-width: 1850px;
    max-width: none;
    grid-template-columns: max-content 280px max-content;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(217, 180, 95, 0.28);
    background:
        radial-gradient(circle at 50% 18%, rgba(217, 180, 95, 0.24), transparent 20%),
        linear-gradient(180deg, rgba(8, 47, 73, 0.62), rgba(2, 6, 23, 0.28));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.admin-bracket-board .bracket-side {
    grid-template-columns: repeat(4, 250px);
    gap: 10px;
}

.admin-bracket-board .bracket-center {
    width: 280px;
    grid-template-rows: auto auto 1fr;
    justify-items: center;
}

.admin-bracket-trophy {
    position: relative;
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    margin: 0 auto 4px;
    overflow: hidden;
    border: 2px solid rgba(217, 180, 95, 0.76);
    border-radius: 50%;
    color: #78350f;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.92), rgba(253, 230, 138, 0.92) 54%, rgba(180, 83, 9, 0.92));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), 0 0 42px rgba(217, 180, 95, 0.28);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-bracket-trophy img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    object-position: center;
}

.admin-bracket-board .bracket-column,
.admin-bracket-board .bracket-center {
    gap: 8px;
}

.admin-bracket-board .bracket-column h2,
.admin-bracket-board .bracket-center h2 {
    color: #fde68a;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
}

.admin-bracket-board .bracket-column-matches,
.admin-bracket-board .bracket-center-stack {
    gap: 8px;
}

.admin-bracket-board .bracket-center-stack {
    justify-content: center;
    min-height: 0;
    height: 100%;
}

.admin-bracket-match {
    position: relative;
    display: grid;
    gap: 7px;
    width: 250px;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(148, 163, 184, 0.58);
    border-radius: 13px;
    color: #e0f2fe;
    background: linear-gradient(180deg, rgba(15, 60, 93, 0.92), rgba(7, 40, 64, 0.94));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-bracket-match.bracket-final-card {
    border-color: rgba(250, 204, 21, 0.88);
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.92), rgba(8, 47, 73, 0.96));
}

.admin-bracket-match .bracket-match-header span,
.admin-bracket-match .bracket-match-header strong {
    color: rgba(224, 242, 254, 0.72);
}

.admin-bracket-match .bracket-match-header strong,
.admin-bracket-match.bracket-final-card .bracket-match-header strong {
    color: #fde68a;
}

.admin-bracket-match .bracket-versus {
    color: rgba(224, 242, 254, 0.48);
}

.admin-bracket-status {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-bracket-status-programado {
    color: #075985;
    background: rgba(186, 230, 253, 0.72);
}

.admin-bracket-status-finalizado {
    color: #14532d;
    background: #dcfce7;
}

.admin-bracket-status-pending {
    color: #7a5a17;
    background: rgba(217, 180, 95, 0.22);
}

.bracket-board .admin-bracket-match::before,
.bracket-board .admin-bracket-match::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    transform: translateY(-50%);
}

.bracket-left .admin-bracket-match::after {
    right: -16px;
}

.bracket-left .admin-bracket-match::before {
    left: -16px;
}

.bracket-right .admin-bracket-match::before {
    left: -16px;
}

.bracket-right .admin-bracket-match::after {
    right: -16px;
}

.bracket-left .round-32-left .admin-bracket-match::before,
.bracket-right .round-32-right .admin-bracket-match::after,
.bracket-center .admin-bracket-match::before,
.bracket-center .admin-bracket-match::after {
    display: none;
}

.admin-bracket-team {
    display: grid;
    grid-template-columns: 40px minmax(150px, 1fr) 34px;
    align-items: center;
    column-gap: 10px;
    row-gap: 4px;
    min-height: 74px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(186, 230, 253, 0.16);
    border-radius: 11px;
    background: rgba(2, 6, 23, 0.22);
}

.admin-bracket-team-flag {
    align-self: start;
    width: 34px;
    height: 34px;
    margin-top: 1px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
}

.admin-bracket-team-flag-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-celeste-oscuro);
    background: linear-gradient(135deg, #ffffff, #dff5ff);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.admin-bracket-team-flag-placeholder[hidden] {
    display: none !important;
}

.admin-bracket-team-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    overflow: hidden;
}

.admin-bracket-score {
    align-self: center;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    border-radius: 9px;
    color: #ffffff;
    background: rgba(217, 180, 95, 0.16);
    font-size: 0.92rem;
    font-weight: 900;
    text-align: center;
}

.admin-bracket-penalties {
    justify-self: center;
    color: #fde68a;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.admin-bracket-penalties-pending {
    color: rgba(224, 242, 254, 0.58);
}

.admin-bracket-team-pending {
    border-style: dashed;
    color: rgba(224, 242, 254, 0.68);
    background: rgba(15, 23, 42, 0.24);
}

.admin-bracket-team-copy strong,
.admin-bracket-team-copy small,
.admin-bracket-team-copy em {
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-bracket-team-copy strong {
    display: block;
    color: #f8fafc;
    font-size: 0.86rem;
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}

.admin-bracket-team-copy small {
    display: block;
    color: rgba(224, 242, 254, 0.68);
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
}

.admin-bracket-team-copy em {
    display: block;
    color: rgba(224, 242, 254, 0.54);
    font-size: 0.61rem;
    font-style: normal;
    line-height: 1.15;
    white-space: nowrap;
}

.admin-bracket-edit {
    min-height: 34px;
    justify-content: center;
    padding: 7px 10px;
    border-color: rgba(217, 180, 95, 0.34);
    color: #082f49;
    background: linear-gradient(135deg, #fde68a, var(--worldcup-gold));
    font-size: 0.78rem;
}

.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.68);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    position: relative;
    width: min(620px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow-y: auto;
    padding: 26px;
    border: 1px solid rgba(217, 180, 95, 0.3);
    border-radius: 22px;
    color: var(--worldcup-white);
    background:
        radial-gradient(circle at 18% 0%, rgba(120, 200, 240, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(8, 47, 73, 0.98), rgba(4, 24, 39, 0.98));
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.48);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(120, 200, 240, 0.22);
    border-radius: 50%;
    color: rgba(234, 246, 255, 0.78);
    background: rgba(120, 200, 240, 0.12);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: #ffffff;
    border-color: rgba(217, 180, 95, 0.42);
}

.modal-heading {
    display: grid;
    gap: 8px;
    padding-right: 36px;
}

.modal-heading h2 {
    margin: 0;
    color: #ffffff;
}

.modal-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.modal-result-fields,
.modal-score-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.modal-score-grid {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(160px, 0.8fr);
}

.modal-placeholder-grid > div {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px dashed rgba(120, 200, 240, 0.28);
    border-radius: 13px;
    background: rgba(2, 6, 23, 0.2);
}

.modal-placeholder-label,
.modal-field label {
    color: rgba(224, 242, 254, 0.7);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.modal-placeholder-grid strong {
    color: #f8fafc;
    line-height: 1.35;
}

.modal-field {
    display: grid;
    gap: 8px;
}

.modal-score-grid .admin-number-input,
.modal-score-grid .admin-select {
    width: 100%;
}

.modal-penalties-field {
    margin-top: -2px;
}

.modal-team-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 56px;
    padding: 10px;
    border: 1px solid rgba(186, 230, 253, 0.16);
    border-radius: 13px;
    background: rgba(2, 6, 23, 0.22);
}

.modal-team-preview-flag {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
}

.modal-team-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-celeste-oscuro);
    background: linear-gradient(135deg, #ffffff, #dff5ff);
    font-size: 0.88rem;
    font-weight: 900;
}

.modal-team-preview-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.modal-team-preview-copy strong,
.modal-team-preview-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-team-preview-copy strong {
    color: #f8fafc;
    font-size: 0.92rem;
    line-height: 1.2;
}

.modal-team-preview-copy small {
    color: rgba(224, 242, 254, 0.68);
    font-size: 0.72rem;
    font-weight: 900;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.modal-card .admin-select,
.modal-card .admin-number-input {
    border-color: rgba(186, 230, 253, 0.34);
    color: #ffffff;
    background: rgba(2, 6, 23, 0.38);
}

.modal-card .admin-select option {
    color: var(--color-negro);
    background: #ffffff;
}

.modal-actions .btn {
    color: #082f49;
    background: linear-gradient(135deg, #fde68a, var(--worldcup-gold));
}

.modal-actions .btn-outline {
    border-color: rgba(120, 200, 240, 0.26);
    color: var(--worldcup-white);
    background: rgba(120, 200, 240, 0.12);
}

.auth-page .hero-lead {
    margin-bottom: 18px;
}

.auth-notice,
.alert {
    margin: 18px 0;
}

.auth-form {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.auth-form label,
.auth-form label span {
    display: grid;
    gap: 8px;
}

.auth-form label span,
.dashboard-meta span {
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"],
.auth-form input[type="file"],
.auth-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--color-borde);
    border-radius: 12px;
    padding: 0 14px;
    color: var(--color-negro);
    background: var(--color-blanco);
    font: inherit;
}

.auth-form input:focus {
    outline: 3px solid rgba(120, 200, 240, 0.35);
    border-color: var(--color-celeste-oscuro);
}

.auth-form textarea:focus {
    outline: 3px solid rgba(120, 200, 240, 0.35);
    border-color: var(--color-celeste-oscuro);
}

.auth-form textarea {
    min-height: 130px;
    padding: 12px 14px;
    resize: vertical;
}

.auth-form input[type="file"] {
    padding: 10px 14px;
}

.local-confirmation-card,
.aporte-card {
    display: grid;
    gap: 18px;
}

.local-confirmation-link {
    overflow-wrap: anywhere;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.checkbox-label {
    display: flex !important;
    grid-template-columns: none;
    align-items: flex-start;
    gap: 10px !important;
    color: var(--color-muted);
    line-height: 1.5;
}

.checkbox-label input {
    margin-top: 3px;
}

.form-note {
    margin: 0;
    color: var(--color-muted);
}

.alert {
    border-radius: 14px;
    padding: 14px 16px;
    line-height: 1.5;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 6px;
}

.alert-success {
    color: #14532d;
    background: #dcfce7;
}

.alert-info {
    color: #075985;
    background: #e0f2fe;
}

.alert-error {
    color: #7f1d1d;
    background: #fee2e2;
}

.dashboard-card {
    margin-top: 24px;
}

.dashboard-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.aporte-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.transfer-box {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px dashed rgba(12, 117, 168, 0.34);
    border-radius: 16px;
    background: rgba(120, 200, 240, 0.08);
}

.transfer-box h2 {
    margin: 0;
}

.transfer-details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.transfer-details div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
}

.transfer-details dt {
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.transfer-details dd {
    margin: 0;
    font-weight: 700;
}

.transfer-instructions {
    display: grid;
    gap: 6px;
}

.transfer-instructions strong {
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.transfer-instructions p {
    margin: 0;
    font-weight: 700;
}

.dashboard-meta div {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--color-borde);
    border-radius: 14px;
    background: rgba(120, 200, 240, 0.08);
}

.dashboard-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.dashboard-action-card {
    display: grid;
    gap: 6px;
    min-height: 108px;
    padding: 18px;
    border: 1px solid var(--color-borde);
    border-radius: 16px;
    color: var(--color-negro);
    background: linear-gradient(135deg, #ffffff 0%, #eef9ff 100%);
    text-decoration: none;
}

.dashboard-action-card:hover,
.dashboard-action-card:focus {
    border-color: rgba(12, 117, 168, 0.42);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.dashboard-action-card span {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-action-card strong {
    font-size: 1.06rem;
}

.admin-layout {
    display: grid;
    gap: 22px;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-summary-card {
    display: grid;
    gap: 8px;
}

.admin-summary-card span,
.admin-card-heading span:not(.badge) {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-summary-card strong {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
}

.admin-access-grid {
    margin-top: 18px;
}

.aporte-config-card {
    padding: 0;
    overflow: hidden;
}

.aporte-config-heading {
    padding-bottom: 0;
}

.aporte-config-form {
    padding: 0 24px 24px;
}

.admin-table-card {
    padding: 0;
    overflow: hidden;
}

.admin-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 0;
}

.admin-card-heading h2 {
    margin: 10px 0 0;
}

.admin-table-scroll {
    overflow-x: auto;
    padding: 20px 24px 24px;
}

.admin-table {
    width: 100%;
    min-width: 1420px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--color-borde);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--color-muted);
    background: rgba(120, 200, 240, 0.12);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-table tbody tr:hover {
    background: rgba(243, 248, 251, 0.82);
}

.admin-id {
    color: var(--color-muted);
    font-weight: 900;
}

.admin-select {
    width: 100%;
    min-width: 122px;
    min-height: 38px;
    border: 1px solid var(--color-borde);
    border-radius: 10px;
    padding: 0 10px;
    color: var(--color-negro);
    background: var(--color-blanco);
    font: inherit;
    font-weight: 700;
}

.admin-select:focus {
    outline: 3px solid rgba(120, 200, 240, 0.35);
    border-color: var(--color-celeste-oscuro);
}

.admin-number-input {
    width: 92px;
    min-height: 38px;
    border: 1px solid var(--color-borde);
    border-radius: 10px;
    padding: 0 10px;
    color: var(--color-negro);
    background: var(--color-blanco);
    font: inherit;
    font-weight: 900;
    text-align: center;
}

.admin-number-input:focus {
    outline: 3px solid rgba(120, 200, 240, 0.35);
    border-color: var(--color-celeste-oscuro);
}

.admin-empty-message {
    margin: 0;
    padding: 20px 24px 24px;
}

.results-table {
    min-width: 960px;
}

.results-table th,
.results-table td {
    white-space: normal;
    overflow-wrap: break-word;
}

.ranking-table {
    min-width: 920px;
}

.ranking-position,
.ranking-points {
    font-weight: 900;
}

.ranking-points {
    color: var(--color-celeste-oscuro);
    font-size: 1.05rem;
}

.users-table th,
.users-table td {
    white-space: normal;
    overflow-wrap: break-word;
}

.users-table td {
    min-width: 0;
}

.users-table td:nth-child(2),
.users-table td:nth-child(3),
.users-table td:nth-child(10) {
    word-break: break-word;
}

.users-table td:nth-child(3) a {
    overflow-wrap: anywhere;
}

.users-table .admin-file-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(217, 180, 95, 0.34);
    border-radius: 999px;
    background: rgba(217, 180, 95, 0.1);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}

.users-table .admin-select {
    min-width: 0;
}

.status-programado {
    color: #075985;
    background: #e0f2fe;
}

.status-en-juego {
    color: #7a5a17;
    background: rgba(217, 180, 95, 0.22);
}

.status-finalizado {
    color: #14532d;
    background: #dcfce7;
}

.status-suspendido {
    color: #7f1d1d;
    background: #fee2e2;
}

.admin-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.admin-inline-form .btn {
    min-height: 38px;
    white-space: nowrap;
}

.results-table .admin-select {
    min-width: 0;
}

.results-table .admin-number-input {
    width: 70px;
}

@media (min-width: 1024px) {
    .users-table-scroll {
        overflow-x: visible;
        overflow-y: auto;
        max-height: 600px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .users-table-scroll thead th {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .users-table {
        table-layout: fixed;
        min-width: 0;
        font-size: 0.8rem;
    }

    .users-table th,
    .users-table td {
        padding: 10px 7px;
    }

    /* col 1: ID */
    .users-table th:nth-child(1),
    .users-table td:nth-child(1) {
        width: 4%;
    }

    /* col 2: Nombre */
    .users-table th:nth-child(2),
    .users-table td:nth-child(2) {
        width: 12%;
    }

    /* col 3: Email */
    .users-table th:nth-child(3),
    .users-table td:nth-child(3) {
        width: 16%;
    }

    /* col 4: Telefono */
    .users-table th:nth-child(4),
    .users-table td:nth-child(4) {
        width: 7%;
    }

    /* col 5: Rol */
    .users-table th:nth-child(5),
    .users-table td:nth-child(5) {
        width: 7%;
        text-align: center;
    }

    /* col 6: Email confirmado */
    .users-table th:nth-child(6),
    .users-table td:nth-child(6) {
        width: 8%;
        text-align: center;
    }

    /* col 7: Estado de aporte */
    .users-table th:nth-child(7),
    .users-table td:nth-child(7) {
        width: 12%;
    }

    /* col 8: Comprobante */
    .users-table th:nth-child(8),
    .users-table td:nth-child(8) {
        width: 9%;
        text-align: center;
    }

    /* col 9: Activo */
    .users-table th:nth-child(9),
    .users-table td:nth-child(9) {
        width: 7%;
    }

    /* col 10: Fecha creación */
    .users-table th:nth-child(10),
    .users-table td:nth-child(10) {
        width: 9%;
        text-align: center;
    }

    /* col 11: Acciones */
    .users-table th:nth-child(11),
    .users-table td:nth-child(11) {
        width: 9%;
    }

    .users-table .status-badge {
        min-height: 22px;
        margin-bottom: 6px;
        padding: 0 7px;
        font-size: 0.66rem;
        line-height: 1.1;
    }

    .users-table .admin-select {
        min-width: 0;
        min-height: 32px;
        padding: 0 5px;
        font-size: 0.76rem;
    }

    .users-table .admin-inline-form {
        display: flex;
        width: 100%;
    }

    .users-table .admin-inline-form .btn {
        width: 100%;
        min-height: 32px;
        padding: 0 10px;
        border-radius: 14px;
        font-size: 0.74rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .results-table-scroll {
        overflow-x: visible;
        padding-right: 16px;
        padding-left: 16px;
    }

    .results-table {
        table-layout: fixed;
        min-width: 0;
        font-size: 0.84rem;
    }

    .results-table th,
    .results-table td {
        padding: 10px 6px;
    }

    .results-table th:nth-child(1),
    .results-table td:nth-child(1) {
        width: 4.5%;
    }

    .results-table th:nth-child(2),
    .results-table td:nth-child(2) {
        width: 10.5%;
    }

    .results-table th:nth-child(3),
    .results-table td:nth-child(3) {
        width: 7%;
    }

    .results-table th:nth-child(4),
    .results-table td:nth-child(4),
    .results-table th:nth-child(5),
    .results-table td:nth-child(5) {
        width: 15%;
    }

    .results-table th:nth-child(6),
    .results-table td:nth-child(6),
    .results-table th:nth-child(7),
    .results-table td:nth-child(7) {
        width: 7.5%;
        text-align: center;
    }

    .results-table th:nth-child(8),
    .results-table td:nth-child(8) {
        width: 15%;
    }

    .results-table th:nth-child(9),
    .results-table td:nth-child(9) {
        width: 18%;
    }

    .results-table .admin-number-input {
        width: min(100%, 58px);
        min-height: 34px;
        padding: 0 4px;
    }

    .results-table .admin-select {
        min-height: 34px;
        padding: 0 7px;
        font-size: 0.82rem;
    }

    .results-table .status-badge {
        padding: 0 7px;
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .results-table .admin-inline-form {
        display: flex;
        width: 100%;
    }

    .results-table .admin-inline-form .btn {
        width: 100%;
        min-height: 34px;
        padding: 0 10px;
        border-radius: 14px;
        font-size: 0.82rem;
        line-height: 1.1;
        white-space: normal;
    }
}

@media (max-width: 767px) {
    body .users-table-scroll,
    html.modo-movil body .users-table-scroll {
        overflow-x: visible;
        padding: 0 14px 18px;
    }

    .users-table {
        display: block;
        width: 100%;
        min-width: 0;
        font-size: 0.92rem;
    }

    .users-table thead {
        display: none;
    }

    .users-table tbody {
        display: grid;
        gap: 14px;
    }

    body .users-table tbody tr {
        display: block;
        overflow: hidden;
        border: 1px solid rgba(217, 180, 95, 0.28);
        border-radius: 18px;
        background:
            radial-gradient(circle at 0 0, rgba(120, 200, 240, 0.12), transparent 36%),
            linear-gradient(180deg, rgba(8, 47, 73, 0.88), rgba(4, 24, 39, 0.96));
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .users-table th,
    .users-table td {
        display: block;
        width: 100%;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
        text-align: left;
    }

    .users-table td:last-child {
        border-bottom: 0;
    }

    .users-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 7px;
        color: rgba(224, 242, 254, 0.62);
        font-size: 0.68rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .users-table td:nth-child(1) {
        color: #fde68a;
        font-size: 1.02rem;
    }

    .users-table td:nth-child(2) {
        color: #ffffff;
        font-weight: 900;
    }

    .users-table td:nth-child(3) a {
        display: inline-block;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .users-table .status-badge {
        min-height: 28px;
        margin: 0 0 8px;
        padding: 0 10px;
        font-size: 0.74rem;
    }

    .users-table .admin-select {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 0 12px;
        font-size: 0.95rem;
    }

    .users-table .admin-file-link,
    .users-table .admin-muted {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        width: 100%;
        text-align: center;
    }

    .users-table .admin-inline-form {
        display: flex;
        width: 100%;
    }

    .users-table .admin-inline-form .btn {
        width: 100%;
        min-height: 46px;
        border-radius: 14px;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    body .admin-users-search-bar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 0 18px 14px;
    }

    body .admin-search-input {
        max-width: none;
        width: 100%;
        height: 44px;
    }

    body .admin-search-count {
        white-space: normal;
    }

    body .admin-users-filters {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 18px 18px;
    }

    body .admin-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body .admin-filter-actions .btn {
        width: 100%;
        min-height: 44px;
        text-align: center;
    }
}

.admin-file-link {
    font-weight: 800;
    white-space: nowrap;
}

.admin-users-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 12px;
}

.admin-search-input {
    flex: 1;
    max-width: 420px;
    height: 38px;
    padding: 0 14px;
    border: 1.5px solid var(--color-borde);
    border-radius: 8px;
    background: var(--color-fondo);
    color: var(--color-texto);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s;
}

.admin-search-input:focus {
    border-color: var(--color-acento);
}

.admin-search-count {
    font-size: 0.82rem;
    color: var(--color-muted);
    white-space: nowrap;
}

.admin-users-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
    align-items: end;
    gap: 12px;
    padding: 0 24px 18px;
}

.admin-filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-filter-field span {
    color: rgba(224, 242, 254, 0.72);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-filter-field .admin-select {
    min-width: 0;
    width: 100%;
}

.admin-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.admin-filter-actions .btn {
    min-height: 38px;
    padding-inline: 14px;
    white-space: nowrap;
}

.admin-num-func {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.admin-muted {
    color: var(--color-muted);
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    margin-bottom: 8px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
}

.status-pendiente {
    color: #7a5a17;
    background: rgba(217, 180, 95, 0.22);
}

.status-pagado,
.status-active {
    color: #14532d;
    background: #dcfce7;
}

.status-rechazado,
.status-inactive {
    color: #7f1d1d;
    background: #fee2e2;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tema global AUFA Mundial */
body {
    color: var(--worldcup-white);
    background:
        radial-gradient(circle at 50% 0%, rgba(217, 180, 95, 0.2), transparent 22%),
        radial-gradient(circle at 14% 12%, rgba(56, 189, 248, 0.18), transparent 28%),
        radial-gradient(circle at 86% 8%, rgba(14, 165, 233, 0.14), transparent 30%),
        linear-gradient(180deg, var(--worldcup-navy) 0%, var(--worldcup-petrol) 44%, var(--worldcup-navy-deep) 100%);
    background-attachment: fixed;
}

main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

main::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

a {
    color: #7dd3fc;
}

.home-page,
.home-institutional-bg,
.section-soft {
    background: transparent;
}

.home-institutional-bg::before {
    opacity: 0.06;
}

.home-institutional-bg::after {
    background:
        radial-gradient(circle at 18% 0%, rgba(120, 200, 240, 0.14), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(217, 180, 95, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(6, 31, 54, 0.2), rgba(4, 24, 39, 0.34));
}

.hero-section,
.page-hero,
.section-block {
    background: transparent;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.card h1,
.card h2,
.card h3,
.admin-card-heading h2,
.standings-heading h2,
.phase-heading h2,
.fixture-empty h2 {
    color: #ffffff;
}

.hero-lead,
.hero-support,
.card p,
.steps-list,
.section-heading p,
.form-note,
.admin-muted,
.admin-empty-message,
.prizes-note,
.timeline-item span,
.standings-heading span,
.group-card-header strong,
.phase-heading span,
.match-meta span,
.team-info small,
.transfer-details dt,
.transfer-instructions strong,
.dashboard-meta span,
.admin-summary-card span,
.admin-card-heading span:not(.badge),
.closed-note {
    color: rgba(234, 246, 255, 0.68);
}

.eyebrow,
.prize-rank,
.prize-card strong,
.ranking-points,
.admin-file-link {
    color: #fde68a;
}

.card,
.hero-card,
.collaboration-card,
.torneo-card,
.placeholder-card,
.format-card,
.group-card,
.match-card,
.fixture-empty,
.standings-card,
.fixture-group-card,
.admin-table-card,
.admin-summary-card,
.aporte-card,
.local-confirmation-card,
.dashboard-card,
.aporte-config-card,
.prediction-card,
.prediction-card-closed {
    border-color: rgba(217, 180, 95, 0.24);
    color: var(--worldcup-white);
    background:
        radial-gradient(circle at 0 0, rgba(120, 200, 240, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(8, 47, 73, 0.78), rgba(4, 24, 39, 0.88));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-card::before,
.format-card::after {
    background: radial-gradient(circle, rgba(120, 200, 240, 0.22), transparent 64%);
}

.badge,
.score-pill,
.format-number {
    color: #082f49;
    background: linear-gradient(135deg, #fef3c7, var(--worldcup-gold));
    font-weight: 900;
}

.mini-stats span,
.timeline-item,
.team-row,
.transfer-box,
.dashboard-meta div,
.dashboard-action-card,
.prediction-details div {
    border-color: rgba(120, 200, 240, 0.2);
    color: var(--worldcup-white);
    background: rgba(2, 6, 23, 0.24);
}

.timeline-item strong,
.dashboard-action-card strong,
.transfer-details dd,
.transfer-instructions p,
.team-info strong,
.admin-summary-card strong {
    color: #ffffff;
}

.dashboard-action-card {
    text-decoration: none;
}

.dashboard-action-card:hover,
.dashboard-action-card:focus,
.card:hover:is(a),
a.card:hover,
a.card:focus {
    border-color: rgba(217, 180, 95, 0.44);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26), 0 0 28px rgba(217, 180, 95, 0.12);
}

.standings-scroll,
.fixture-table-scroll,
.admin-table-scroll,
.public-bracket-scroll {
    scrollbar-color: rgba(217, 180, 95, 0.9) rgba(255, 255, 255, 0.12);
}

.standings-table,
.fixture-table,
.admin-table,
.ranking-table {
    color: var(--worldcup-white);
}

.standings-table th,
.standings-table td,
.fixture-table th,
.fixture-table td,
.admin-table th,
.admin-table td {
    border-bottom-color: rgba(148, 163, 184, 0.22);
}

.standings-table th,
.fixture-table th,
.admin-table th {
    color: rgba(224, 242, 254, 0.72);
    background: rgba(14, 165, 233, 0.12);
}

.standings-table tbody tr,
.fixture-table tbody tr,
.admin-table tbody tr {
    background: rgba(2, 6, 23, 0.12);
}

.standings-table tbody tr:nth-child(even),
.fixture-table tbody tr:nth-child(even),
.admin-table tbody tr:nth-child(even) {
    background: rgba(120, 200, 240, 0.06);
}

.standings-table tbody tr:hover,
.fixture-table tbody tr:hover,
.admin-table tbody tr:hover {
    background: rgba(120, 200, 240, 0.12);
}

.team-cell strong,
.admin-table strong,
.ranking-position {
    color: #ffffff;
}

.admin-id,
.results-placeholder {
    color: rgba(234, 246, 255, 0.56);
}

.fixture-flag {
    border-color: rgba(255, 255, 255, 0.14);
}

.status-pill {
    background: rgba(14, 165, 233, 0.16);
    color: #7dd3fc;
}

.status-pill[data-estado="en_juego"] {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.status-pill[data-estado="finalizado"] {
    background: rgba(148, 163, 184, 0.14);
    color: rgba(234, 246, 255, 0.5);
}

.status-pill[data-estado="suspendido"] {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.bracket-board:not(.admin-bracket-board),
.public-bracket-board {
    border-color: rgba(217, 180, 95, 0.28);
    background:
        radial-gradient(circle at 50% 18%, rgba(217, 180, 95, 0.2), transparent 20%),
        linear-gradient(180deg, rgba(8, 47, 73, 0.7), rgba(2, 6, 23, 0.38));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 22px 52px rgba(0, 0, 0, 0.18);
}

.bracket-column h2,
.bracket-center h2,
.public-bracket-stage h2 {
    color: #fde68a;
}

.bracket-match-card,
.public-bracket-match,
.public-bracket-phase {
    border-color: rgba(148, 163, 184, 0.44);
    color: #e0f2fe;
    background: linear-gradient(180deg, rgba(15, 60, 93, 0.9), rgba(7, 40, 64, 0.94));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bracket-final-card,
.public-bracket-final {
    border-color: rgba(250, 204, 21, 0.84);
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.9), rgba(8, 47, 73, 0.96));
}

.bracket-third-place-card,
.public-bracket-third-place {
    background: linear-gradient(180deg, rgba(15, 60, 93, 0.76), rgba(7, 40, 64, 0.86));
}

.bracket-match-header span,
.bracket-match-header strong,
.public-bracket-match-header span,
.public-bracket-match-header strong,
.public-bracket-final .public-bracket-match-header span,
.public-bracket-final .public-bracket-match-header strong {
    color: rgba(224, 242, 254, 0.72);
}

.bracket-match-header strong,
.public-bracket-match-header strong {
    color: #fde68a;
}

.bracket-team-slot,
.public-bracket-team {
    border-color: rgba(186, 230, 253, 0.16);
    color: var(--worldcup-white);
    background: rgba(2, 6, 23, 0.22);
}

.bracket-team-slot-pending,
.public-bracket-team-pending {
    color: rgba(224, 242, 254, 0.68);
    background: rgba(15, 23, 42, 0.24);
}

.bracket-team-copy strong,
.public-bracket-team-name {
    color: #f8fafc;
}

.bracket-team-copy small,
.bracket-team-copy em,
.public-bracket-team-copy small,
.public-bracket-result {
    color: rgba(224, 242, 254, 0.66);
}

.bracket-versus,
.public-bracket-versus {
    color: rgba(224, 242, 254, 0.48);
}

.bracket-result-line,
.bracket-penalties-line,
.public-bracket-result strong {
    color: #fde68a;
}

.btn {
    color: #082f49;
    background: linear-gradient(135deg, #fde68a, var(--worldcup-gold));
    box-shadow: 0 10px 24px rgba(217, 180, 95, 0.18);
}

.btn-secondary {
    color: #082f49;
    background: linear-gradient(135deg, #dff6ff, var(--worldcup-celeste));
}

.btn-outline {
    border-color: rgba(120, 200, 240, 0.28);
    color: var(--worldcup-white);
    background: rgba(120, 200, 240, 0.1);
}

.btn:disabled,
.btn[disabled],
.admin-group-save:disabled {
    color: rgba(224, 242, 254, 0.54);
    background: rgba(15, 23, 42, 0.42);
    box-shadow: none;
    cursor: not-allowed;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"],
.auth-form input[type="file"],
.auth-form textarea,
.admin-select,
.admin-number-input,
.prediction-score-row input {
    border-color: rgba(186, 230, 253, 0.34);
    color: #ffffff;
    background: rgba(2, 6, 23, 0.38);
}

input::placeholder,
textarea::placeholder {
    color: rgba(224, 242, 254, 0.46);
}

input:focus,
select:focus,
textarea:focus,
.auth-form input:focus,
.auth-form textarea:focus,
.admin-select:focus,
.admin-number-input:focus,
.prediction-score-row input:focus {
    outline: 3px solid rgba(120, 200, 240, 0.32);
    border-color: #7dd3fc;
}

select option,
.admin-select option {
    color: var(--color-negro);
    background: #ffffff;
}

input:disabled,
select:disabled,
textarea:disabled,
.prediction-score-row input:disabled {
    color: rgba(224, 242, 254, 0.54);
    background: rgba(15, 23, 42, 0.42);
}

.auth-form label span,
.auth-form label,
.checkbox-label,
.modal-field label,
.form-note {
    color: rgba(224, 242, 254, 0.72);
}

.alert {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.alert-success {
    color: #dcfce7;
    background: rgba(20, 83, 45, 0.76);
}

.alert-info {
    color: #e0f2fe;
    background: rgba(7, 89, 133, 0.72);
}

.alert-error,
.closed-note {
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.72);
}

.legal-notice {
    border-color: var(--worldcup-gold);
    color: rgba(234, 246, 255, 0.78);
    background: rgba(217, 180, 95, 0.12);
}

.predictions-layout,
.predictions-list {
    display: grid;
    gap: 18px;
}

.prediction-card {
    display: grid;
    gap: 18px;
}

.prediction-card-closed {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.prediction-match-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.prediction-match-info h2 {
    margin-top: 10px;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.prediction-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.prediction-details div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--color-borde);
    border-radius: 12px;
    background: rgba(243, 248, 251, 0.68);
}

.prediction-details dt {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 900;
}

.prediction-details dd {
    margin: 0;
    font-weight: 700;
}

.prediction-form {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-top: 2px;
}

.prediction-score-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 12px;
    width: min(100%, 520px);
}

.prediction-score-row label {
    display: grid;
    gap: 8px;
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.prediction-score-row input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--color-borde);
    border-radius: 12px;
    padding: 0 12px;
    color: var(--color-negro);
    background: var(--color-blanco);
    font: inherit;
    font-size: 1.2rem;
    font-weight: 900;
    text-align: center;
}

.prediction-score-row input:focus {
    outline: 3px solid rgba(120, 200, 240, 0.35);
    border-color: var(--color-celeste-oscuro);
}

.prediction-score-row input:disabled {
    color: var(--color-muted);
    background: #f1f5f9;
}

.prediction-separator {
    padding-bottom: 12px;
    color: var(--color-dorado);
    font-size: 1.4rem;
    font-weight: 900;
}

.status-pill-closed,
.closed-note {
    color: #7f1d1d;
    background: #fee2e2;
}

.closed-note {
    min-height: 44px;
    margin: 0;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 900;
}

.prediction-worldcup {
    padding: 26px 0 10px;
}

.prediction-worldcup-container {
    width: min(1680px, calc(100% - 24px));
}

.prediction-worldcup-board {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 24px;
    padding: clamp(16px, 2.4vw, 30px);
    overflow: hidden;
    border: 1px solid rgba(217, 180, 95, 0.42);
    border-radius: 34px;
    color: #eaf6ff;
    background:
        radial-gradient(circle at 50% 9%, rgba(217, 180, 95, 0.24), transparent 20%),
        radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.2), transparent 28%),
        radial-gradient(circle at 82% 10%, rgba(14, 165, 233, 0.16), transparent 30%),
        linear-gradient(180deg, #061f36 0%, #063454 43%, #041827 100%);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28);
}

.prediction-worldcup-board::before,
.prediction-worldcup-board::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.prediction-worldcup-board::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 70%);
}

.prediction-worldcup-board::after {
    background:
        radial-gradient(ellipse at 50% 24%, rgba(255, 255, 255, 0.12), transparent 10%),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    opacity: 0.72;
}

.prediction-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(18px, 3vw, 30px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.24), transparent 24%),
        linear-gradient(135deg, rgba(12, 117, 168, 0.42), rgba(2, 6, 23, 0.24));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.prediction-hero::after {
    content: '2026';
    position: absolute;
    right: clamp(12px, 5vw, 58px);
    bottom: -24px;
    color: rgba(255, 255, 255, 0.045);
    font-size: clamp(5rem, 13vw, 11rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 0.8;
    pointer-events: none;
}

.prediction-hero-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.prediction-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border: 2px solid rgba(217, 180, 95, 0.76);
    border-radius: 28px;
    color: #083344;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.92));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), 0 0 28px rgba(217, 180, 95, 0.18);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.prediction-logo img {
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: contain;
}

.prediction-hero-copy {
    min-width: 0;
}

.prediction-kicker,
.prediction-group-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    color: #082f49;
    background: linear-gradient(135deg, #fef3c7, #d9b45f);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.prediction-hero h1 {
    max-width: 860px;
    margin: 10px 0 8px;
    color: #ffffff;
    font-size: clamp(2.35rem, 5.8vw, 5.4rem);
    line-height: 0.88;
    letter-spacing: -0.075em;
    text-transform: uppercase;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.prediction-hero p {
    margin: 0;
    color: rgba(234, 246, 255, 0.84);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    font-weight: 800;
}

.prediction-hero-status {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    max-width: 360px;
}

.prediction-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.prediction-status-ok,
.prediction-status-guardado {
    color: #052e16;
    background: #bbf7d0;
}

.prediction-status-warn,
.prediction-status-pendiente {
    color: #713f12;
    background: #fef3c7;
}

.prediction-status-locked,
.prediction-status-finalizado,
.prediction-status-cerrado {
    color: #7f1d1d;
    background: #fee2e2;
}

.prediction-lock-card {
    display: grid;
    gap: 12px;
    border-color: rgba(217, 180, 95, 0.46);
    border-left: 5px solid var(--color-dorado);
    background: rgba(255, 255, 255, 0.94);
}

.prediction-lock-card h2,
.prediction-panel-heading h2,
.prediction-group-head h3 {
    margin: 0;
    letter-spacing: -0.045em;
}

.prediction-lock-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.5;
}

.prediction-bracket-panel,
.prediction-groups-panel {
    display: grid;
    gap: 16px;
}

.prediction-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 0 6px;
}

.prediction-panel-heading h2 {
    margin-top: 10px;
    color: #ffffff;
    font-size: clamp(1.9rem, 4vw, 3.3rem);
    line-height: 1;
    text-transform: uppercase;
}

.prediction-panel-heading p {
    margin: 8px 0 0;
    color: rgba(234, 246, 255, 0.68);
    font-weight: 700;
}

.prediction-bracket-board {
    display: grid;
    grid-template-columns: minmax(570px, 1fr) minmax(200px, 0.35fr) minmax(570px, 1fr);
    align-items: stretch;
    gap: 12px;
    min-width: 1500px;
    overflow: visible;
    padding: 14px;
    border: 1px solid rgba(217, 180, 95, 0.28);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 18%, rgba(217, 180, 95, 0.24), transparent 20%),
        linear-gradient(180deg, rgba(8, 47, 73, 0.62), rgba(2, 6, 23, 0.28));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.prediction-bracket-panel {
    overflow-x: auto;
    padding-bottom: 6px;
    /* scrollbar siempre visible para indicar que hay scroll horizontal */
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 180, 95, 0.42) transparent;
}

.prediction-bracket-panel::-webkit-scrollbar {
    height: 5px;
}

.prediction-bracket-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(217, 180, 95, 0.38);
}

.prediction-bracket-side {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    min-width: 0;
}

.prediction-bracket-column {
    display: grid;
    grid-template-rows: 28px 1fr;
    gap: 10px;
    min-width: 0;
}

.prediction-bracket-column h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    margin: 0;
    color: #fde68a;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prediction-bracket-column-matches,
.prediction-final-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prediction-bracket-column-matches {
    justify-content: space-around;
    min-height: 1560px;
    height: 100%;
}

/* Semifinal: el único match debe centrarse en el track */
.prediction-semi-left .prediction-bracket-column-matches,
.prediction-semi-right .prediction-bracket-column-matches {
    justify-content: center;
}

.prediction-bracket-center {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto auto auto auto minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    justify-items: center;
    align-content: stretch;
    min-height: 100%;
    padding-top: 0;
}

.prediction-bracket-center::before,
.prediction-bracket-center::after {
    content: '';
}

.prediction-trophy {
    position: relative;
    display: grid;
    place-items: center;
    width: 148px;
    height: 148px;
    overflow: hidden;
    border: 2px solid rgba(217, 180, 95, 0.78);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.92), rgba(253, 230, 138, 0.92) 54%, rgba(180, 83, 9, 0.92));
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36), 0 0 54px rgba(217, 180, 95, 0.36);
}

.prediction-trophy::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(217, 180, 95, 0.28), transparent 64%);
    z-index: -1;
}

.prediction-trophy img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    object-position: center;
}

.prediction-trophy-fallback {
    color: #78350f;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prediction-center-title {
    display: grid;
    gap: 2px;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
}

.prediction-center-title span,
.prediction-champion > span {
    color: rgba(234, 246, 255, 0.72);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.prediction-center-title strong {
    color: #facc15;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
}

.prediction-champion {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(217, 180, 95, 0.7);
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.44), rgba(8, 47, 73, 0.76));
    text-align: center;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.prediction-champion-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.prediction-champion-team strong,
.prediction-champion > strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prediction-champion em {
    justify-self: center;
    padding: 4px 10px;
    border-radius: 999px;
    color: #082f49;
    background: #facc15;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prediction-champion-flag {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
}

.prediction-bracket-match {
    position: relative;
    display: grid;
    gap: 4px;
    align-content: start;
    width: 100%;
    min-height: 150px;
    height: auto;
    min-width: 0;
    overflow: hidden;
    padding: 7px;
    border: 1px solid rgba(148, 163, 184, 0.58);
    border-radius: 13px;
    color: #e0f2fe;
    background: linear-gradient(180deg, rgba(15, 60, 93, 0.92), rgba(7, 40, 64, 0.94));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.prediction-bracket-left .prediction-bracket-match::after,
.prediction-bracket-right .prediction-bracket-match::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 11px;
    height: 1px;
    background: rgba(226, 232, 240, 0.58);
    transform: translateY(-50%);
}

.prediction-bracket-left .prediction-bracket-match::after {
    right: -11px;
}

.prediction-bracket-right .prediction-bracket-match::before {
    left: -11px;
}

.prediction-final-match {
    border-color: rgba(250, 204, 21, 0.88);
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.92), rgba(8, 47, 73, 0.96));
}

.prediction-final-stack {
    width: 100%;
    justify-content: center;
}

.prediction-third-match {
    opacity: 0.88;
}

.prediction-bracket-match-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    color: rgba(224, 242, 254, 0.72);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.prediction-bracket-match-head strong {
    color: #fde68a;
}

.prediction-bracket-match-head span,
.prediction-bracket-match-head strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prediction-bracket-team {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    min-height: 32px;
    padding: 4px 6px;
    border: 1px solid rgba(186, 230, 253, 0.16);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.22);
}

.prediction-bracket-team-pending {
    border-style: dashed;
    color: rgba(224, 242, 254, 0.68);
    background: rgba(15, 23, 42, 0.24);
}

.prediction-bracket-team-winner {
    border-color: rgba(250, 204, 21, 0.84);
    background: rgba(217, 180, 95, 0.12);
    box-shadow: inset 3px 0 0 #facc15;
}

.prediction-bracket-flag,
.prediction-team-flag,
.prediction-table-flag {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
}

.prediction-bracket-flag {
    width: 26px;
    height: 26px;
}

.prediction-team-flag-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #075985;
    background: linear-gradient(135deg, #ffffff, #dff5ff);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.prediction-team-flag-placeholder[hidden] {
    display: none !important;
}

.prediction-bracket-team span {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.prediction-bracket-team strong,
.prediction-bracket-team small,
.prediction-team strong,
.prediction-table-team strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prediction-bracket-team strong {
    color: #f8fafc;
    font-size: 0.72rem;
}

.prediction-bracket-team small {
    color: rgba(224, 242, 254, 0.58);
    font-size: 0.56rem;
    font-weight: 800;
}

.prediction-bracket-score {
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 900;
}

.prediction-bracket-vs {
    justify-self: center;
    color: rgba(224, 242, 254, 0.48);
    font-size: 0.56rem;
    font-weight: 900;
    text-transform: uppercase;
}

.prediction-bracket-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 4px 7px;
    border-radius: 10px;
    color: #dff6ff;
    background: rgba(14, 165, 233, 0.12);
    font-size: 0.6rem;
    font-weight: 900;
}

.prediction-bracket-state {
    padding: 3px 7px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.prediction-bracket-result strong,
.prediction-bracket-penalties {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prediction-bracket-state-finished {
    color: #052e16;
    background: #bbf7d0;
}

.prediction-bracket-state-pending {
    color: #713f12;
    background: #fde68a;
}

.prediction-bracket-penalties {
    color: #fde68a;
    font-size: 0.62rem;
    font-weight: 800;
}

.prediction-bracket-form {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding-top: 2px;
}

.prediction-bracket-score-input {
    grid-template-columns: 34px 10px 34px;
    gap: 4px;
}

.prediction-bracket-score-input input {
    width: 34px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.82rem;
}

.prediction-penalty-label {
    overflow: hidden;
    color: rgba(224, 242, 254, 0.7);
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prediction-penalty-select {
    min-width: 0;
    min-height: 28px;
    height: 28px;
    padding-inline: 8px;
    font-size: 0.7rem;
}

.prediction-bracket-form .prediction-save {
    min-height: 30px;
    white-space: nowrap;
}

.prediction-bracket-match-locked,
.prediction-bracket-match-closed {
    grid-template-rows: auto minmax(0, 1fr);
    height: auto;
    min-height: 0;
}

.prediction-bracket-locked-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 0;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.34);
}

.prediction-bracket-locked-score {
    flex: 0 0 auto;
    color: #facc15;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.prediction-bracket-locked-badge {
    flex: 0 0 auto;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.18);
    color: #fde68a;
    font-size: 0.52rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1.3;
}

.prediction-bracket-closed-summary {
    justify-content: center;
}

.prediction-bracket-closed-badge {
    background: rgba(100, 116, 139, 0.28);
    color: #cbd5e1;
}

.prediction-groups-panel {
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid rgba(217, 180, 95, 0.24);
    border-radius: 28px;
    background: rgba(2, 20, 35, 0.42);
}

.prediction-filter-region {
    position: relative;
    display: grid;
    gap: 16px;
}

.prediction-filter-loading {
    opacity: 0.72;
    pointer-events: none;
}

.prediction-view-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(217, 180, 95, 0.28);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.2);
}

.prediction-view-controls label {
    display: grid;
    gap: 6px;
    min-width: 160px;
    color: rgba(234, 246, 255, 0.68);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prediction-view-toggle {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(120, 200, 240, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.prediction-view-button {
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: rgba(234, 246, 255, 0.72);
    background: transparent;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.prediction-view-button:hover,
.prediction-view-button:focus {
    color: #ffffff;
    background: rgba(120, 200, 240, 0.14);
}

.prediction-view-button-active {
    color: #082f49;
    background: linear-gradient(135deg, #fde68a, #d9b45f);
}

.prediction-filter-apply {
    min-height: 40px;
    padding-inline: 16px;
}

.prediction-filter-status {
    align-self: center;
    color: #fde68a;
    font-size: 0.82rem;
    font-weight: 900;
}

.prediction-date-list,
.prediction-date-group,
.prediction-date-matches {
    display: grid;
    gap: 16px;
}

.prediction-date-group {
    padding: 14px;
    border: 1px solid rgba(217, 180, 95, 0.3);
    border-radius: 20px;
    background: rgba(8, 47, 73, 0.56);
}

.prediction-date-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.prediction-date-heading h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.15rem, 2.6vw, 1.65rem);
    letter-spacing: -0.035em;
}

.prediction-date-heading span {
    color: rgba(224, 242, 254, 0.66);
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.prediction-date-matches {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.prediction-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
    gap: 16px;
}

.prediction-group-card {
    display: grid;
    gap: 13px;
    padding: 14px;
    overflow: hidden;
    border-color: rgba(217, 180, 95, 0.36);
    color: #eaf6ff;
    background: linear-gradient(180deg, rgba(8, 47, 73, 0.82), rgba(4, 24, 39, 0.9));
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.prediction-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.prediction-group-head h3 {
    margin-top: 7px;
    color: #ffffff;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    text-transform: uppercase;
}

.prediction-group-head > span {
    color: rgba(224, 242, 254, 0.66);
    font-size: 0.72rem;
    font-weight: 900;
}

.prediction-group-standings {
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.22);
}

.prediction-group-standings table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.prediction-group-standings th,
.prediction-group-standings td {
    padding: 7px 6px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    text-align: center;
    vertical-align: middle;
}

.prediction-group-standings tbody tr:last-child td {
    border-bottom: 0;
}

.prediction-group-standings th {
    color: rgba(224, 242, 254, 0.72);
    background: rgba(14, 165, 233, 0.12);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.prediction-group-standings th:nth-child(2),
.prediction-group-standings td:nth-child(2) {
    text-align: left;
}

.prediction-table-team,
.prediction-team,
.prediction-team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.prediction-group-fixtures {
    display: grid;
    gap: 9px;
}

.prediction-match-card {
    display: grid;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.prediction-match-locked {
    background: rgba(148, 163, 184, 0.1);
}

/* === Vista eliminatoria móvil — oculta en desktop === */
.prediction-mobile-elimination {
    display: none;
}

.pmob-phase {
    margin-bottom: 28px;
}

.pmob-phase-hidden {
    display: none !important;
}

/* Tabs de llaves.php: sin margen negativo (contexto diferente a mis_predicciones) */
.llave-phase-tabs {
    margin: 0;
    padding: 0 0 4px;
    background: transparent;
}

/* ── Tabs de fases eliminatorias ──────────────────────────── */
.pmob-phase-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 14px 14px 10px;
    margin: 0 -14px;
}

.pmob-phase-tabs::-webkit-scrollbar {
    display: none;
}

.pmob-tab-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1.5px solid rgba(120, 200, 240, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(224, 242, 254, 0.6);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    min-height: 36px;
}

.pmob-tab-btn:hover {
    background: rgba(120, 200, 240, 0.12);
    color: #e0f2fe;
    border-color: rgba(120, 200, 240, 0.45);
}

.pmob-tab-btn.pmob-tab-active {
    background: #0c75a8;
    color: #ffffff;
    border-color: #0c75a8;
    box-shadow: 0 2px 10px rgba(12, 117, 168, 0.38);
}

.pmob-phase:last-child {
    margin-bottom: 0;
}

.pmob-phase-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    padding: 2px 0;
    color: #fde68a;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.pmob-phase-title::before,
.pmob-phase-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(253, 230, 138, 0.28);
}

.pmob-phase-title span {
    flex-shrink: 0;
}

.pmob-phase-matches {
    display: grid;
    gap: 12px;
}

.prediction-match-meta,
.prediction-match-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.prediction-match-meta {
    color: rgba(224, 242, 254, 0.68);
    font-size: 0.72rem;
    font-weight: 800;
}

.prediction-match-card .prediction-form {
    display: grid;
    gap: 9px;
    padding: 0;
}

.prediction-match-main {
    display: grid;
    gap: 7px;
}

.prediction-team-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid rgba(186, 230, 253, 0.16);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.2);
}

.prediction-team-info strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prediction-score-box {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.prediction-score-box input {
    width: 52px;
    height: 38px;
    border: 1px solid rgba(186, 230, 253, 0.34);
    border-radius: 10px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.38);
    font-size: 1rem;
    font-weight: 900;
    text-align: center;
}

.prediction-score-box input:focus {
    outline: 3px solid rgba(120, 200, 240, 0.35);
    border-color: #7dd3fc;
}

.prediction-score-box input:disabled {
    color: rgba(224, 242, 254, 0.54);
    background: rgba(15, 23, 42, 0.42);
}

@media (max-width: 680px) {
    .prediction-team-row {
        gap: 8px;
        padding: 7px 8px;
    }

    .prediction-team-info {
        gap: 7px;
    }

    .prediction-team-info strong {
        font-size: 0.84rem;
    }

    .prediction-score-box input {
        width: 48px;
        height: 36px;
        font-size: 0.96rem;
    }
}

.prediction-team-visitor {
    justify-content: flex-end;
    text-align: right;
}

.prediction-score-input {
    display: grid;
    grid-template-columns: 42px 12px 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.prediction-score-input input {
    width: 42px;
    height: 40px;
    border: 1px solid rgba(186, 230, 253, 0.34);
    border-radius: 11px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.38);
    font-size: 0.98rem;
    font-weight: 900;
    text-align: center;
}

.prediction-score-input input:focus {
    outline: 3px solid rgba(120, 200, 240, 0.35);
    border-color: #7dd3fc;
}

.prediction-score-input input:disabled {
    color: rgba(224, 242, 254, 0.54);
    background: rgba(15, 23, 42, 0.42);
}

.prediction-score-input span {
    color: rgba(224, 242, 254, 0.56);
    font-weight: 900;
    text-align: center;
}

.prediction-result-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(224, 242, 254, 0.72);
    font-size: 0.74rem;
    font-weight: 800;
}

.prediction-result-info small {
    color: #fecaca;
    font-weight: 900;
}

.prediction-save {
    min-height: 36px;
    padding: 0 14px;
    color: #082f49;
    background: linear-gradient(135deg, #fde68a, #d9b45f);
    font-size: 0.76rem;
}

.prediction-bulk-form,
.prediction-bulk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(217, 180, 95, 0.34);
    border-radius: 18px;
    color: #eaf6ff;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.34), rgba(120, 53, 15, 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.prediction-bulk-copy {
    display: grid;
    gap: 6px;
}

.prediction-bulk-copy p {
    margin: 0;
    color: rgba(234, 246, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 800;
}

.prediction-bulk-save {
    flex: 0 0 auto;
    min-height: 42px;
    padding-inline: 18px;
    font-size: 0.82rem;
}

.prediction-bulk-save:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.prediction-bulk-footer {
    justify-content: center;
}

@media (max-width: 680px) {
    .prediction-bulk-form {
        align-items: stretch;
        flex-direction: column;
    }

    .prediction-bulk-save {
        width: 100%;
    }
}

/* Limpieza final del tema oscuro para componentes definidos despues del bloque global. */
.prediction-card-closed,
.prediction-lock-card {
    color: var(--worldcup-white);
    background:
        radial-gradient(circle at 0 0, rgba(120, 200, 240, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(8, 47, 73, 0.78), rgba(4, 24, 39, 0.88));
}

.prediction-lock-card p,
.prediction-details dt,
.prediction-score-row label {
    color: rgba(234, 246, 255, 0.68);
}

.prediction-details div {
    border-color: rgba(120, 200, 240, 0.2);
    background: rgba(2, 6, 23, 0.24);
}

.prediction-score-row input {
    border-color: rgba(186, 230, 253, 0.34);
    color: #ffffff;
    background: rgba(2, 6, 23, 0.38);
}

.prediction-score-row input:disabled {
    color: rgba(224, 242, 254, 0.54);
    background: rgba(15, 23, 42, 0.42);
}

.status-pill-closed,
.closed-note {
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.72);
}

.legal-notice {
    border-left: 4px solid var(--color-dorado);
    background: rgba(217, 180, 95, 0.12);
    padding: 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid rgba(217, 180, 95, 0.22);
    background:
        radial-gradient(circle at 8% 0%, rgba(120, 200, 240, 0.08), transparent 40%),
        linear-gradient(135deg, rgba(5, 25, 44, 0.98), rgba(3, 14, 26, 1));
    color: var(--color-blanco);
}

.footer-grid {
    display: grid;
    grid-template-columns: 160px 1fr 1.6fr;
    gap: 28px;
    align-items: center;
    padding: 22px 0 18px;
}

/* --- Columna marca ------------------------------------------ */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand-name {
    font-size: 1rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.footer-brand-sub {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(217, 180, 95, 0.82);
    margin: 0;
}

/* --- Columna navegación ------------------------------------- */
.footer-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 4px;
    align-items: center;
}

.footer-nav a {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(234, 246, 255, 0.66);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

/* --- Columna legal ------------------------------------------ */
.footer-legal p {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.55;
    color: rgba(234, 246, 255, 0.36);
}

/* --- Barra inferior ----------------------------------------- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom-inner span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.26);
}

.footer-bottom-inner span:last-child {
    color: rgba(217, 180, 95, 0.55);
    font-weight: 600;
}

.footer-notice {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
}

/* Pulido final: copa libre, banderas prolijas y sin superficies blancas. */
body .card,
body .rk-card,
body .hero-card,
body .collaboration-card,
body .torneo-card,
body .placeholder-card,
body .format-card,
body .group-card,
body .match-card,
body .fixture-empty,
body .standings-card,
body .fixture-group-card,
body .admin-table-card,
body .admin-summary-card,
body .aporte-card,
body .local-confirmation-card,
body .dashboard-card,
body .aporte-config-card,
body .prediction-lock-card,
body .prediction-card,
body .prediction-card-closed,
body .prizes-note,
body .timeline-item,
body .team-row,
body .transfer-box,
body .dashboard-meta div,
body .dashboard-action-card,
body .prediction-details div,
body .mini-stats span {
    border-color: rgba(217, 180, 95, 0.24);
    color: var(--worldcup-white);
    background:
        radial-gradient(circle at 0 0, rgba(120, 200, 240, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(8, 47, 73, 0.78), rgba(4, 24, 39, 0.88));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body .public-bracket-match,
body .bracket-match-card,
body .public-bracket-phase,
body .public-bracket-team,
body .bracket-team-slot,
body .admin-bracket-match,
body .admin-bracket-team,
body .prediction-bracket-match,
body .prediction-bracket-team,
body .prediction-match-card,
body .admin-group-match {
    border-color: rgba(148, 163, 184, 0.42);
    color: #e0f2fe;
    background: linear-gradient(180deg, rgba(15, 60, 93, 0.9), rgba(7, 40, 64, 0.94));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body .public-bracket-team-winner,
body .bracket-final-card,
body .public-bracket-final,
body .prediction-final-match,
body .admin-bracket-match.bracket-final-card {
    border-color: rgba(250, 204, 21, 0.84);
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.88), rgba(8, 47, 73, 0.96));
}

.public-bracket-trophy,
.prediction-trophy,
.admin-bracket-trophy {
    width: clamp(112px, 11vw, 172px);
    height: clamp(132px, 13vw, 206px);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.44)) drop-shadow(0 0 26px rgba(217, 180, 95, 0.46));
}

.public-bracket-trophy::before,
.public-bracket-trophy::after,
.prediction-trophy::before,
.prediction-trophy::after,
.admin-bracket-trophy::before,
.admin-bracket-trophy::after {
    display: none;
}

.public-bracket-trophy img,
.prediction-trophy img,
.admin-bracket-trophy img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
    transform-origin: center;
}

.public-bracket-board .public-bracket-center {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 18px;
}

.public-bracket-board .public-bracket-trophy {
    margin: 0 auto 2px;
}

.public-bracket-board .bracket-center-stack {
    min-height: 0;
    justify-content: flex-start;
    gap: 14px;
}

.admin-bracket-board .admin-bracket-stage.bracket-center {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
}

.admin-bracket-board .admin-bracket-stage.bracket-center h2 {
    order: 1;
}

.admin-bracket-board .admin-bracket-trophy {
    order: 2;
    align-self: center;
    margin: 0 auto 2px;
}

.admin-bracket-board .admin-bracket-stage.bracket-center .bracket-center-stack {
    order: 3;
    width: 100%;
    min-height: 0;
    height: auto;
    justify-content: flex-start;
    gap: 14px;
}

.prediction-trophy-fallback,
.admin-bracket-trophy span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(217, 180, 95, 0.42);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(217, 180, 95, 0.1);
}

.bracket-flag,
.public-bracket-flag,
.prediction-bracket-flag,
.prediction-team-flag,
.prediction-table-flag,
.prediction-champion-flag,
.admin-bracket-team-flag,
.admin-group-flag,
.team-flag,
.modal-team-preview-flag {
    width: 36px;
    height: 26px;
    overflow: hidden;
    border: 1px solid rgba(186, 230, 253, 0.24);
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    background: rgba(2, 6, 23, 0.16);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.prediction-bracket-flag,
.public-bracket-flag,
.admin-bracket-team-flag {
    width: 34px;
    height: 24px;
}

.prediction-champion-flag {
    width: 42px;
    height: 30px;
}

.bracket-flag-placeholder,
.public-bracket-flag-placeholder,
.prediction-team-flag-placeholder,
.admin-bracket-team-flag-placeholder,
.admin-group-flag-placeholder,
.team-flag-placeholder,
.modal-team-empty {
    color: #082f49;
    background: linear-gradient(135deg, #dff6ff, var(--worldcup-celeste));
    font-size: 0.58rem;
    font-weight: 900;
}

.public-bracket-team,
.prediction-bracket-team,
.admin-bracket-team {
    align-items: center;
}

.public-bracket-team {
    grid-template-columns: 34px minmax(0, 1fr);
}

.prediction-bracket-team {
    grid-template-columns: 34px minmax(0, 1fr) auto;
}

.admin-bracket-team {
    grid-template-columns: 40px minmax(0, 1fr) 34px;
}

body .legal-notice,
body .auth-notice,
body .footer-notice {
    border-color: rgba(217, 180, 95, 0.32);
    color: rgba(234, 246, 255, 0.78);
    background: rgba(217, 180, 95, 0.12);
}

/* Antiblanco definitivo: supera reglas historicas con mayor especificidad. */
body .home-page .card,
body .home-page .hero-card,
body .home-page .prize-card,
body .home-page .rule-card,
body .home-page .collaboration-card,
body .home-page .section-soft,
body .mundial-hero .torneo-card,
body .bracket-hero .bracket-summary-card,
body .fixture-empty,
body .format-card,
body .placeholder-card,
body .dashboard-card,
body .aporte-card,
body .admin-table-card,
body .auth-form.card,
body .local-confirmation-card,
body .group-card,
body .standings-card,
body .fixture-group-card,
body .public-bracket-phase,
body .public-bracket-team,
body .bracket-team-slot,
body .prediction-lock-card,
body .admin-group-card {
    border-color: rgba(217, 180, 95, 0.28) !important;
    color: var(--worldcup-white) !important;
    background:
        radial-gradient(circle at 0 0, rgba(120, 200, 240, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(8, 47, 73, 0.86), rgba(4, 24, 39, 0.94)) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body .home-page .card p,
body .home-page .card li,
body .home-page .card span:not(.badge):not(.score-pill):not(.prize-rank),
body .home-page .hero-lead,
body .home-page .hero-support,
body .home-page .prizes-note,
body .mundial-hero .torneo-card p,
body .bracket-hero .bracket-summary-card p,
body .admin-table-card p,
body .fixture-empty p,
body .group-card p,
body .standings-card p,
body .local-confirmation-card p,
body .aporte-card p,
body .dashboard-card p {
    color: rgba(234, 246, 255, 0.72) !important;
}

body .home-page .card h1,
body .home-page .card h2,
body .home-page .card h3,
body .mundial-hero .torneo-card h2,
body .bracket-hero .bracket-summary-card h2,
body .fixture-empty h2,
body .group-card h3,
body .standings-card h2,
body .admin-table-card h2,
body .dashboard-card h2,
body .aporte-card h2,
body .local-confirmation-card h2 {
    color: #ffffff !important;
}

body .home-page .prize-card strong,
body .home-page .score-pill,
body .admin-table-card .badge,
body .fixture-empty .badge,
body .group-card .badge,
body .standings-card .badge {
    color: #082f49;
}

body .home-page .prize-card strong,
body .home-page .prize-card .prize-amount {
    color: #facc15 !important;
    opacity: 1 !important;
    text-shadow: 0 0 18px rgba(217, 180, 95, 0.38);
}

body .home-page .prize-rank,
body .home-page .eyebrow,
body .card .eyebrow {
    color: #fde68a !important;
}

body .home-page .prize-card .prize-rank {
    color: #fde68a !important;
}

body .prizes-note,
body .legal-notice,
body .auth-notice {
    border-color: rgba(217, 180, 95, 0.32) !important;
    color: rgba(234, 246, 255, 0.78) !important;
    background: rgba(217, 180, 95, 0.12) !important;
}

@media (min-width: 1500px) {
    .admin-bracket-board .bracket-side {
        grid-template-columns: repeat(4, 250px);
    }
}

@media (max-width: 1200px) {
    .admin-bracket-wide.container {
        width: calc(100vw - 24px);
    }

    .admin-bracket-wide .bracket-board-scroll {
        overflow-x: hidden;
    }

    .admin-bracket-wide .admin-bracket-board {
        min-width: 1850px;
    }
}

@media (max-width: 900px) {
    .admin-worldcup-header,
    .admin-worldcup-brand,
    .admin-group-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-worldcup-side,
    .admin-group-progress {
        justify-items: start;
        text-align: left;
    }

    .admin-worldcup-actions {
        justify-content: flex-start;
    }

    .admin-groups-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .prediction-hero,
    .prediction-hero-brand,
    .prediction-group-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .prediction-hero-status {
        justify-content: flex-start;
        max-width: none;
    }

    .prediction-bracket-board {
        grid-template-columns: 1fr;
        min-width: 0;
        width: 100%;
        overflow-x: visible;
    }

    .prediction-bracket-side {
        grid-template-columns: 1fr;
    }

    .prediction-bracket-column {
        grid-template-rows: auto;
    }

    .prediction-bracket-column-matches {
        justify-content: flex-start;
        min-height: 0;
        height: auto;
    }

    .prediction-bracket-center {
        grid-template-rows: none;
    }

    .prediction-bracket-center::before,
    .prediction-bracket-center::after {
        display: none;
    }

    .prediction-bracket-match,
    .prediction-bracket-center {
        height: auto;
        width: 100%;
    }

    .prediction-bracket-match {
        min-height: 0;
        overflow: visible;
    }

    .prediction-bracket-left .prediction-bracket-match::after,
    .prediction-bracket-right .prediction-bracket-match::before {
        display: none;
    }

    .prediction-groups-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .bracket-layout {
        display: block;
        width: min(1120px, calc(100% - 20px));
    }

    .bracket-board-scroll {
        display: none;
    }

    .bracket-mobile-list {
        display: grid;
        gap: 20px;
    }

    .bracket-mobile-list .bracket-match-card {
        gap: 8px;
        padding: 12px;
        border-radius: 16px;
    }

    .bracket-mobile-list .bracket-match-header span {
        font-size: 0.74rem;
    }

    .bracket-mobile-list .bracket-match-header strong {
        font-size: 0.76rem;
    }

    .bracket-mobile-list .bracket-team-slot {
        gap: 10px;
        min-height: 58px;
        padding: 8px;
        border-radius: 13px;
    }

    .bracket-mobile-list .bracket-flag {
        width: 34px;
        height: 34px;
    }

    .bracket-mobile-list .bracket-team-copy strong {
        font-size: 0.9rem;
    }

    .bracket-mobile-list .bracket-team-copy small,
    .bracket-mobile-list .bracket-team-copy em {
        font-size: 0.72rem;
    }

    .admin-bracket .bracket-board-scroll {
        display: block;
        overflow-x: visible;
    }

    .admin-bracket-fit {
        height: auto !important;
        overflow: visible;
    }

    .admin-bracket-scale {
        width: 100%;
        transform: none !important;
    }

    .admin-bracket-board,
    .admin-bracket-wide .admin-bracket-board {
        grid-template-columns: 1fr;
        min-width: 0;
        width: 100%;
        padding: 16px;
    }

    .admin-bracket-board .bracket-side {
        grid-template-columns: 1fr;
    }

    .admin-bracket-board .bracket-center {
        width: 100%;
        grid-template-rows: auto;
    }

    .admin-bracket-trophy {
        width: 96px;
        height: 96px;
    }

    .admin-bracket-board .admin-bracket-match {
        width: 100%;
    }

    .admin-bracket-board .admin-bracket-team {
        grid-template-columns: 34px minmax(0, 1fr) 30px;
    }

    .admin-bracket-board .bracket-column-matches,
    .admin-bracket-board .bracket-center-stack {
        min-height: 0;
        padding-block: 0;
        justify-content: flex-start;
    }

    .admin-bracket-board .admin-bracket-match::before,
    .admin-bracket-board .admin-bracket-match::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 20px, 1120px);
    }

    .card {
        padding: 18px;
        border-radius: 14px;
    }

    .hero-section,
    .page-hero {
        padding-top: 44px;
    }

    .nav-wrap,
    .brand,
    .hero-actions {
        align-items: stretch;
    }

    .nav-wrap,
    .hero-grid,
    .bracket-layout,
    .rules-grid,
    .info-grid,
    .prizes-grid,
    .format-grid,
    .groups-grid,
    .fixture-grid,
    .form-grid,
    .dashboard-meta,
    .dashboard-actions-grid,
    .admin-summary-grid,
    .prediction-details,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 18px;
        padding: 18px 0 12px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .timeline-item,
    .standings-heading,
    .bracket-phase-heading,
    .bracket-match-header,
    .phase-heading,
    .match-meta,
    .prediction-match-info,
    .prediction-form {
        align-items: flex-start;
        flex-direction: column;
    }

    .prediction-score-row {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        width: 100%;
    }

    .prediction-form .btn,
    .closed-note {
        width: 100%;
    }

    .standings-scroll,
    .fixture-table-scroll,
    .admin-table-scroll {
        padding: 0 14px 18px;
    }

    .standings-heading,
    .bracket-phase-heading,
    .fixture-group-card .phase-heading,
    .admin-card-heading {
        padding: 18px 18px 0;
    }

    .admin-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-bracket {
        padding: 16px;
    }

    .modal-card {
        padding: 22px 18px;
    }

    .modal-placeholder-grid,
    .modal-result-fields,
    .modal-score-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions .btn {
        width: 100%;
    }

    .timeline-item span {
        text-align: left;
    }

    .match-teams {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .match-teams strong:first-child {
        text-align: left;
    }

    .match-details div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .transfer-details div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .nav-wrap {
        display: grid;
        gap: 10px;
        padding: 10px 0;
    }

    .brand {
        align-items: center;
        gap: 9px;
    }

    .brand-identity {
        border-right: 0;
        padding-right: 0;
    }

    .brand-aufa {
        font-size: 0.95rem;
    }

    .brand-organization {
        max-width: 220px;
        font-size: 0.66rem;
        line-height: 1.15;
        white-space: normal;
    }

    .brand-official,
    .brand-system {
        display: none;
    }

    .brand-subtitle {
        font-size: 0.62rem;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .nav-links a,
    .nav-actions a,
    .hero-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .nav-actions {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-left: 0;
        padding-top: 6px;
        margin-top: 2px;
        flex-wrap: wrap;
    }

    .admin-worldcup-header {
        border-radius: 22px;
    }

    .admin-worldcup-logo {
        width: 70px;
        height: 70px;
        border-radius: 20px;
    }

    .admin-worldcup-actions a,
    .admin-group-save {
        flex: 1 1 auto;
        width: 100%;
    }

    .admin-groups-grid {
        grid-template-columns: 1fr;
    }

    .admin-group-card {
        padding: 14px;
    }

    .admin-group-match-row {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .admin-group-team,
    .admin-group-team-visitor {
        justify-content: flex-start;
        text-align: left;
    }

    .admin-group-score {
        justify-content: stretch;
        grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
    }

    .admin-group-score input,
    .admin-group-score span {
        width: 100%;
    }

    .prediction-hero {
        border-radius: 22px;
    }

    .prediction-logo {
        width: 70px;
        height: 70px;
        border-radius: 20px;
    }

    .prediction-groups-grid {
        grid-template-columns: 1fr;
    }

    .prediction-group-card {
        padding: 14px;
    }

    .prediction-bracket-board {
        padding: 12px;
        border-radius: 20px;
    }

    .prediction-worldcup-board {
        border-radius: 24px;
        padding: 12px;
    }

    .prediction-trophy {
        width: 98px;
        height: 98px;
    }

    .prediction-trophy-fallback {
        font-size: 0.86rem;
    }

    .prediction-match-main {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .prediction-team,
    .prediction-team-visitor {
        justify-content: flex-start;
        text-align: left;
    }

    .prediction-score-input {
        justify-content: stretch;
        grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
    }

    .prediction-score-input input {
        width: 100%;
    }

    .prediction-save {
        width: 100%;
    }

    .home-institutional-bg::before {
        background-size: min(560px, 96vw) auto;
        opacity: 0.1;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .hero-grid,
    .bracket-layout,
    .rules-grid,
    .info-grid,
    .prizes-grid,
    .format-grid,
    .groups-grid,
    .fixture-grid,
    .admin-summary-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-institutional-bg::before {
        background-size: min(700px, 82vw) auto;
    }
}

@media (min-width: 901px) and (max-width: 1160px) {
    .groups-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Texto opcional en labels de formulario */
.form-optional {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--color-muted);
}

/* ============================================================
   MODO MÓVIL
   Todo lo de abajo solo aplica cuando el usuario activó
   el modo celular (clase modo-movil en <html>).
   El diseño de escritorio NO se ve afectado en ningún caso.
   ============================================================ */

/* --- Modal de activación ----------------------------------- */
.modal-movil-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 18, 36, 0.82);
    backdrop-filter: blur(8px);
}

.modal-movil-overlay[hidden] {
    display: none;
}

.modal-movil-card {
    width: 100%;
    max-width: 360px;
    padding: 32px 28px;
    border-radius: 24px;
    background: linear-gradient(160deg, #0a2540 0%, #041827 100%);
    border: 1px solid rgba(217, 180, 95, 0.32);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.52);
    text-align: center;
    animation: modal-movil-in 0.22s ease-out;
}

@keyframes modal-movil-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.modal-movil-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 20px;
    border: 2px solid rgba(217, 180, 95, 0.5);
    background: #fff;
    padding: 6px;
    margin-bottom: 18px;
}

.modal-movil-titulo {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.modal-movil-texto {
    margin: 0 0 24px;
    color: rgba(234, 246, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.55;
}

.modal-movil-acciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-movil-btn-si {
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #fde68a, #d9b45f);
    color: #082f49;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: opacity 0.15s;
}

.modal-movil-btn-si:hover {
    opacity: 0.88;
}

.modal-movil-btn-no {
    padding: 12px 20px;
    border: 1px solid rgba(120, 200, 240, 0.28);
    border-radius: 12px;
    background: rgba(120, 200, 240, 0.08);
    color: rgba(234, 246, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.modal-movil-btn-no:hover {
    background: rgba(120, 200, 240, 0.16);
}

/* --- Botón hamburguesa — oculto en escritorio -------------- */
.nav-toggle-btn {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(120, 200, 240, 0.28);
    border-radius: 10px;
    background: rgba(120, 200, 240, 0.1);
    cursor: pointer;
}

.nav-toggle-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(234, 246, 255, 0.86);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Botón "Escritorio" — oculto siempre excepto en modo móvil */
.nav-modo-escritorio {
    display: none;
}

/* --- Modo móvil activo -------------------------------------- */
html.modo-movil .nav-toggle-btn {
    display: flex;
    margin-left: auto; /* brand a la izquierda, toggle+escritorio agrupados a la derecha */
}

html.modo-movil .nav-modo-escritorio {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid rgba(120, 200, 240, 0.28);
    border-radius: 999px;
    background: rgba(120, 200, 240, 0.08);
    color: rgba(234, 246, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Reemplaza el grid que el @media 640px aplica al nav-wrap */
html.modo-movil .nav-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    min-height: 68px;
    padding: 0;
    gap: 8px;
}

html.modo-movil .brand {
    flex: 1 1 auto;
    gap: 8px;
}

html.modo-movil .brand-identity {
    border-right: 0;
    padding-right: 0;
}

html.modo-movil .brand-aufa {
    font-size: 0.92rem;
}

html.modo-movil .brand-organization {
    max-width: min(210px, 48vw);
    font-size: 0.62rem;
    line-height: 1.12;
    white-space: normal;
}

html.modo-movil .brand-official,
html.modo-movil .brand-system {
    display: none;
}

/* Ocultar marca-subtitle en celular para ganar espacio */
html.modo-movil .brand-subtitle {
    display: none;
}

html.modo-movil .brand-logo {
    width: 46px;
    height: 46px;
}

/* Menú colapsado por defecto en modo móvil */
html.modo-movil #nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(6, 31, 54, 0.99) 0%, rgba(4, 24, 39, 1) 100%);
    border-bottom: 1px solid rgba(217, 180, 95, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    max-height: 80vh;
    overflow-y: auto;
}

html.modo-movil #nav-menu.nav-open {
    display: flex;
}

html.modo-movil .site-header {
    position: sticky;
    top: 0;
}

/* Links informativos en columna */
html.modo-movil #nav-menu .nav-links {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: none;
    gap: 2px;
    width: 100%;
}

html.modo-movil #nav-menu .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    color: rgba(234, 246, 255, 0.8);
    width: 100%;
}

/* Zona usuario en columna con separador */
html.modo-movil #nav-menu .nav-actions {
    flex-direction: column;
    align-items: stretch;
    border-left: none;
    border-top: 1px solid rgba(120, 200, 240, 0.14);
    padding-left: 0;
    padding-top: 8px;
    gap: 4px;
    width: 100%;
    margin-top: 4px;
}

html.modo-movil #nav-menu .nav-actions a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: left;
    width: 100%;
}

html.modo-movil #nav-menu .nav-user-pill {
    display: flex !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    border: none;
    background: rgba(120, 200, 240, 0.10) !important;
}

html.modo-movil #nav-menu .nav-cta {
    text-align: center !important;
}

html.modo-movil #nav-menu .nav-logout {
    text-align: center;
}

/* --- Layout general en modo móvil -------------------------- */
html.modo-movil .container {
    width: min(100% - 20px, 1120px);
}

html.modo-movil .narrow-container {
    max-width: 100%;
}

html.modo-movil .hero-section,
html.modo-movil .page-hero {
    padding-top: 24px;
    padding-bottom: 10px;
}

html.modo-movil .section-block {
    padding-top: 10px;
    padding-bottom: 16px;
}

html.modo-movil .card {
    padding: 18px;
    border-radius: 16px;
}

html.modo-movil .hero-grid,
html.modo-movil .form-grid,
html.modo-movil .dashboard-meta,
html.modo-movil .dashboard-actions-grid,
html.modo-movil .groups-grid,
html.modo-movil .fixture-grid,
html.modo-movil .footer-grid,
html.modo-movil .rules-grid,
html.modo-movil .info-grid,
html.modo-movil .prizes-grid,
html.modo-movil .format-grid {
    grid-template-columns: 1fr;
}

html.modo-movil .hero-actions {
    flex-direction: column;
    align-items: stretch;
}

html.modo-movil .hero-actions .btn {
    text-align: center;
}

/* --- Tablas con scroll horizontal en modo móvil ------------ */
html.modo-movil .standings-scroll,
html.modo-movil .fixture-table-scroll,
html.modo-movil .admin-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
}

/* --- Predicciones en modo móvil ---------------------------- */
html.modo-movil .prediction-groups-grid {
    grid-template-columns: 1fr;
}

html.modo-movil .prediction-match-info,
html.modo-movil .prediction-form,
html.modo-movil .prediction-hero,
html.modo-movil .prediction-hero-brand,
html.modo-movil .prediction-group-head {
    flex-direction: column;
    align-items: flex-start;
}

html.modo-movil .prediction-score-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    width: 100%;
}

html.modo-movil .prediction-score-row input[type="number"] {
    min-height: 52px;
    font-size: 1.2rem;
    text-align: center;
}

html.modo-movil .prediction-form .btn,
html.modo-movil .closed-note {
    width: 100%;
}

/* --- Ranking: layout de tarjetas en móvil ----------------- */
@media (max-width: 640px) {
    .ranking-table {
        min-width: 0;
        display: block;
    }

    .ranking-table thead {
        display: none;
    }

    .ranking-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 4px 2px 12px;
    }

    .ranking-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-radius: 12px;
        padding: 14px 16px 10px;
        border: 1px solid rgba(120, 200, 240, 0.18);
        background: rgba(2, 6, 23, 0.22);
    }

    /* Fila cabecera: posición | nombre | puntos */
    .ranking-table td.ranking-position {
        flex: 0 0 auto;
        font-size: 1.2rem;
        padding: 0 12px 12px 0;
        border: none;
    }

    .ranking-table td:nth-child(2) {
        flex: 1 1 0;
        padding: 0 8px 12px 0;
        border: none;
        font-size: 0.95rem;
        align-self: center;
    }

    .ranking-table td.ranking-points {
        flex: 0 0 auto;
        font-size: 1.2rem;
        padding: 0 0 12px;
        border: none;
        text-align: right;
    }

    .ranking-table td.ranking-points::after {
        content: ' pts';
        font-size: 0.68rem;
        font-weight: 400;
        opacity: 0.65;
    }

    /* Filas de estadísticas: 50% cada una con etiqueta */
    .ranking-table td:nth-child(n+4) {
        flex: 0 0 50%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 4px;
        font-size: 0.86rem;
        border-top: 1px solid rgba(120, 200, 240, 0.1);
        border-bottom: none;
    }

    .ranking-table td:nth-child(4) {
        flex: 0 0 100%;
        border-top: 1px solid rgba(120, 200, 240, 0.18);
    }

    .ranking-table td:nth-child(n+4)::before {
        content: attr(data-label);
        color: rgba(224, 242, 254, 0.5);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    /* Aporte: ancho completo */
    .ranking-table td:last-child {
        flex: 0 0 100%;
    }
}

/* --- Ranking en modo móvil (toggle manual) ----------------- */
html.modo-movil .ranking-table {
    min-width: 0;
    display: block;
}

html.modo-movil .ranking-table thead {
    display: none;
}

html.modo-movil .ranking-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 2px 12px;
}

html.modo-movil .ranking-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 12px;
    padding: 14px 16px 10px;
    border: 1px solid rgba(120, 200, 240, 0.18);
    background: rgba(2, 6, 23, 0.22);
}

html.modo-movil .ranking-table td.ranking-position {
    flex: 0 0 auto;
    font-size: 1.2rem;
    padding: 0 12px 12px 0;
    border: none;
}

html.modo-movil .ranking-table td:nth-child(2) {
    flex: 1 1 0;
    padding: 0 8px 12px 0;
    border: none;
    font-size: 0.95rem;
    align-self: center;
}

html.modo-movil .ranking-table td.ranking-points {
    flex: 0 0 auto;
    font-size: 1.2rem;
    padding: 0 0 12px;
    border: none;
    text-align: right;
}

html.modo-movil .ranking-table td.ranking-points::after {
    content: ' pts';
    font-size: 0.68rem;
    font-weight: 400;
    opacity: 0.65;
}

html.modo-movil .ranking-table td:nth-child(n+4) {
    flex: 0 0 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 4px;
    font-size: 0.86rem;
    border-top: 1px solid rgba(120, 200, 240, 0.1);
    border-bottom: none;
}

html.modo-movil .ranking-table td:nth-child(4) {
    flex: 0 0 100%;
    border-top: 1px solid rgba(120, 200, 240, 0.18);
}

html.modo-movil .ranking-table td:nth-child(n+4)::before {
    content: attr(data-label);
    color: rgba(224, 242, 254, 0.5);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

html.modo-movil .ranking-table td:last-child {
    flex: 0 0 100%;
}

/* --- Fixture en modo móvil --------------------------------- */
html.modo-movil .match-teams {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 4px;
}

html.modo-movil .match-meta,
html.modo-movil .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* --- Bracket en modo móvil --------------------------------- */
html.modo-movil .prediction-bracket-board {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
}

html.modo-movil .prediction-bracket-side {
    grid-template-columns: 1fr;
}

html.modo-movil .prediction-bracket-match,
html.modo-movil .prediction-bracket-center {
    height: auto;
    width: 100%;
}

html.modo-movil .prediction-bracket-left .prediction-bracket-match::after,
html.modo-movil .prediction-bracket-right .prediction-bracket-match::before,
html.modo-movil .prediction-bracket-center::before,
html.modo-movil .prediction-bracket-center::after {
    display: none;
}

/* --- Bracket desktop: oculto en móvil --------------------- */
html.modo-movil .prediction-bracket-panel {
    display: none;
}

/* --- Vista eliminatoria móvil lineal ---------------------- */
html.modo-movil .prediction-mobile-elimination {
    display: block;
    padding: 16px 14px;
    border: 1px solid rgba(217, 180, 95, 0.24);
    border-radius: 24px;
    background: rgba(2, 20, 35, 0.42);
}

html.modo-movil .prediction-mobile-elimination .prediction-bracket-match {
    height: auto;
    min-height: 0;
    overflow: hidden;
    padding: 12px;
}

html.modo-movil .prediction-mobile-elimination .prediction-bracket-match::before,
html.modo-movil .prediction-mobile-elimination .prediction-bracket-match::after {
    display: none;
}

html.modo-movil .prediction-mobile-elimination .prediction-bracket-score-input,
html.modo-movil .prediction-mobile-elimination .prediction-score-input {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
    width: 100%;
    justify-content: stretch;
}

html.modo-movil .prediction-mobile-elimination .prediction-score-input input {
    width: 100%;
    height: 46px;
    font-size: 1.1rem;
}

html.modo-movil .prediction-mobile-elimination .prediction-bracket-form {
    display: grid;
    gap: 10px;
}

html.modo-movil .prediction-mobile-elimination .prediction-penalty-select,
html.modo-movil .prediction-mobile-elimination .prediction-save {
    width: 100%;
    min-height: 40px;
}

html.modo-movil .prediction-mobile-elimination .prediction-bracket-locked-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

html.modo-movil .pmob-phase-final {
    padding: 14px;
    border: 1px solid rgba(217, 180, 95, 0.34);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0, rgba(250, 204, 21, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(8, 47, 73, 0.72), rgba(2, 20, 35, 0.9));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.modo-movil .pmob-final-hero {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.34);
    border-radius: 20px;
    background:
        radial-gradient(circle at 16% 22%, rgba(253, 230, 138, 0.26), transparent 34%),
        linear-gradient(135deg, rgba(120, 53, 15, 0.82), rgba(8, 47, 73, 0.92));
}

html.modo-movil .pmob-final-trophy {
    display: grid;
    place-items: center;
    width: 86px;
    height: 104px;
    justify-self: center;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.36)) drop-shadow(0 0 18px rgba(250, 204, 21, 0.36));
}

html.modo-movil .pmob-final-trophy img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

html.modo-movil .pmob-final-trophy span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(250, 204, 21, 0.42);
    border-radius: 999px;
    color: #fde68a;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html.modo-movil .pmob-final-copy {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: #ffffff;
}

html.modo-movil .pmob-final-label {
    color: #facc15;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

html.modo-movil .pmob-final-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

html.modo-movil .pmob-final-team .prediction-champion-flag {
    flex: 0 0 auto;
}

html.modo-movil .pmob-final-team strong,
html.modo-movil .pmob-final-champion {
    color: #ffffff;
    font-size: clamp(1.18rem, 6vw, 1.55rem);
    font-weight: 900;
    line-height: 1.05;
}

html.modo-movil .pmob-final-note {
    color: rgba(234, 246, 255, 0.68);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.3;
}

html.modo-movil .prediction-mobile-elimination .pmob-final-match {
    border-color: rgba(250, 204, 21, 0.86);
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.9), rgba(8, 47, 73, 0.96));
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (max-width: 420px) {
    html.modo-movil .pmob-final-hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    html.modo-movil .pmob-final-copy {
        justify-items: center;
    }

    html.modo-movil .pmob-final-team {
        justify-content: center;
    }
}

/* --- Grupos en móvil: layout apilado ---------------------- */
html.modo-movil .prediction-groups-panel {
    padding: 14px;
}

html.modo-movil .prediction-group-card {
    padding: 12px;
}

html.modo-movil .prediction-group-standings {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

html.modo-movil .prediction-group-standings table {
    min-width: 220px;
    font-size: 0.76rem;
}

html.modo-movil .prediction-match-main {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: stretch;
}

html.modo-movil .prediction-team-visitor {
    justify-content: flex-start;
    text-align: left;
}

html.modo-movil .prediction-score-input,
html.modo-movil .prediction-bracket-score-input {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
    width: 100%;
    justify-content: stretch;
    gap: 6px;
}

html.modo-movil .prediction-score-input input,
html.modo-movil .prediction-bracket-score-input input {
    width: 100%;
    height: 46px;
    font-size: 1.1rem;
    border-radius: 8px;
}

html.modo-movil .prediction-match-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

html.modo-movil .prediction-save {
    width: 100%;
    min-height: 40px;
}

html.modo-movil .prediction-bulk-form,
html.modo-movil .prediction-bulk-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

html.modo-movil .prediction-bulk-save {
    width: 100%;
    min-height: 42px;
}

html.modo-movil .prediction-match-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 0.7rem;
}

html.modo-movil .prediction-result-info {
    font-size: 0.72rem;
    gap: 6px;
}

html.modo-movil .prediction-panel-heading {
    padding-bottom: 16px;
}

/* ═════════════════════════════════════════════════════════════
   GRUPOS · MODO MÓVIL  (html.modo-movil)
   Estilo deportivo premium — coherente con brand AUFA
   Desktop queda intacto.
═════════════════════════════════════════════════════════════ */

/* Grupos separados con gap oscuro — sensación de tarjetas
   sin el peso visual de cards individuales */
html.modo-movil .groups-table-layout {
    gap: 10px;
    background: #0c1929;
    border-radius: 0;
    padding-top: 2px;
    padding-bottom: 2px;
}

html.modo-movil .standings-card {
    background: transparent;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    padding: 0;
    gap: 0;
    overflow: hidden;
}

/* ── Encabezado de grupo ─────────────────────────────────── */
html.modo-movil .standings-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 10px 16px;
    background: linear-gradient(90deg, #061f36 0%, #0c3058 100%);
    border-left: 4px solid #d9b45f;
    border-radius: 0;
}

html.modo-movil .standings-heading h2 {
    font-size: 0.78rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

html.modo-movil .standings-heading span {
    display: none;
}

/* ── Scroll wrapper ──────────────────────────────────────── */
html.modo-movil .standings-scroll {
    padding: 0;
    overflow-x: hidden;
}

/* ── Tabla: layout fijo, alineación perfecta ─────────────── */
html.modo-movil .standings-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.8rem;
    line-height: 1;
}

/* ── Anchos de columna ───────────────────────────────────────
   Visible: #(1)  Selección(2)  PJ(3)  G(4)  E(5)  P(6)  Pts(10)
   Ocultos: GF(7) GC(8) DG(9) Resultados(11)
─────────────────────────────────────────────────────────── */
html.modo-movil .standings-table th:nth-child(1),
html.modo-movil .standings-table td:nth-child(1) {
    width: 30px;
    text-align: center;
    padding-left: 4px;
    padding-right: 0;
}

html.modo-movil .standings-table th:nth-child(2),
html.modo-movil .standings-table td:nth-child(2) {
    text-align: left;
    padding-left: 2px;
}

html.modo-movil .standings-table th:nth-child(3),
html.modo-movil .standings-table td:nth-child(3) {
    width: 30px;
    text-align: center;
}

html.modo-movil .standings-table th:nth-child(4),
html.modo-movil .standings-table td:nth-child(4),
html.modo-movil .standings-table th:nth-child(5),
html.modo-movil .standings-table td:nth-child(5),
html.modo-movil .standings-table th:nth-child(6),
html.modo-movil .standings-table td:nth-child(6) {
    width: 26px;
    text-align: center;
}

html.modo-movil .standings-table th:nth-child(10),
html.modo-movil .standings-table td:nth-child(10) {
    width: 38px;
    text-align: center;
    padding-right: 6px;
}

/* Ocultar columnas no esenciales en mobile */
html.modo-movil .standings-table th:nth-child(7),
html.modo-movil .standings-table td:nth-child(7),
html.modo-movil .standings-table th:nth-child(8),
html.modo-movil .standings-table td:nth-child(8),
html.modo-movil .standings-table th:nth-child(9),
html.modo-movil .standings-table td:nth-child(9),
html.modo-movil .standings-table th:nth-child(11),
html.modo-movil .standings-table td:nth-child(11) {
    display: none;
}

/* ── Encabezado de columnas ──────────────────────────────── */
html.modo-movil .standings-table thead {
    background: #0c2340;
}

html.modo-movil .standings-table th {
    background: #0c2340;
    color: rgba(120, 200, 240, 0.65);
    font-size: 0.6rem;
    font-weight: 800;
    padding-top: 5px;
    padding-bottom: 5px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Filas de datos ──────────────────────────────────────── */
html.modo-movil .standings-table td {
    background: #ffffff;
    color: #111827;
    padding-top: 9px;
    padding-bottom: 9px;
    border: none;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

html.modo-movil .standings-table tbody tr:last-child td {
    border-bottom: none;
}

/* Clasificados directo — fondo azul muy sutil */
html.modo-movil .standings-table tbody tr:nth-child(1) td,
html.modo-movil .standings-table tbody tr:nth-child(2) td {
    background: #f0f8ff;
}

/* Indicador lateral de zona de clasificación */
html.modo-movil .standings-table tbody tr:nth-child(1) td:first-child,
html.modo-movil .standings-table tbody tr:nth-child(2) td:first-child {
    box-shadow: inset 3px 0 0 #0c75a8;
}

html.modo-movil .standings-table tbody tr:nth-child(3) td:first-child {
    box-shadow: inset 3px 0 0 #94a3b8;
}

/* ── Número de posición ──────────────────────────────────── */
html.modo-movil .standings-table tbody tr:nth-child(1) td:first-child,
html.modo-movil .standings-table tbody tr:nth-child(2) td:first-child {
    color: #0c75a8;
    font-weight: 800;
    font-size: 0.82rem;
}

html.modo-movil .standings-table tbody tr:nth-child(3) td:first-child {
    color: #64748b;
    font-weight: 700;
}

html.modo-movil .standings-table tbody tr:nth-child(4) td:first-child {
    color: #94a3b8;
    font-weight: 600;
}

/* ── Columna Pts — badge dorado para el líder ────────────── */
html.modo-movil .standings-table td:nth-child(10) strong {
    display: inline-block;
    min-width: 24px;
    padding: 3px 5px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
    background: #f1f5f9;
    color: #0f172a;
}

html.modo-movil .standings-table tbody tr:nth-child(1) td:nth-child(10) strong {
    background: linear-gradient(135deg, #d9b45f 0%, #f0c96a 100%);
    color: #3d2800;
}

/* ── Celda de equipo ─────────────────────────────────────── */
html.modo-movil .standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding-left: 0;
}

html.modo-movil .standings-table .team-flag {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

html.modo-movil .standings-table .team-flag-placeholder {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    color: #1e293b;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    min-width: 24px;
}

html.modo-movil .standings-table .team-info {
    min-width: 0;
    flex: 1;
    display: block;
}

html.modo-movil .standings-table .team-info strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

html.modo-movil .standings-table .team-info small {
    display: none;
}

/* --- Modal admin en modo móvil ----------------------------- */
html.modo-movil .modal-card {
    padding: 22px 18px;
    margin: 16px;
    max-height: 90vh;
    overflow-y: auto;
}

html.modo-movil .modal-actions .btn {
    width: 100%;
}

html.modo-movil .modal-placeholder-grid,
html.modo-movil .modal-result-fields,
html.modo-movil .modal-score-grid {
    grid-template-columns: 1fr;
}

/* --- Admin panel en modo móvil ----------------------------- */
html.modo-movil .admin-worldcup-header,
html.modo-movil .admin-worldcup-brand,
html.modo-movil .admin-group-header {
    flex-direction: column;
    align-items: flex-start;
}

html.modo-movil .admin-groups-grid {
    grid-template-columns: 1fr;
}

html.modo-movil .admin-group-match-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
}

html.modo-movil .admin-worldcup-actions a,
html.modo-movil .admin-group-save {
    width: 100%;
}

html.modo-movil .admin-card-heading {
    flex-direction: column;
    align-items: flex-start;
}

html.modo-movil .admin-summary-grid {
    grid-template-columns: 1fr;
}

/* --- Bracket de llaves en modo móvil ----------------------- */
html.modo-movil .bracket-board-scroll {
    display: none;
}

html.modo-movil .bracket-mobile-list {
    display: grid;
    gap: 20px;
}

html.modo-movil .bracket-mobile-list .bracket-match-card {
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
}

html.modo-movil .bracket-mobile-list .bracket-match-header span {
    font-size: 0.74rem;
}

html.modo-movil .bracket-mobile-list .bracket-match-header strong {
    font-size: 0.76rem;
}

html.modo-movil .bracket-mobile-list .bracket-team-slot {
    gap: 10px;
    min-height: 58px;
    padding: 8px;
    border-radius: 13px;
}

html.modo-movil .bracket-mobile-list .bracket-flag {
    width: 34px;
    height: 34px;
}

html.modo-movil .bracket-mobile-list .bracket-team-copy strong {
    font-size: 0.9rem;
}

html.modo-movil .bracket-mobile-list .bracket-team-copy small,
html.modo-movil .bracket-mobile-list .bracket-team-copy em {
    font-size: 0.72rem;
}

/* --- Botón toggle modo móvil/escritorio en nav ------------- */
.nav-modo-movil {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid rgba(120, 200, 240, 0.28);
    border-radius: 999px;
    background: rgba(120, 200, 240, 0.08);
    color: rgba(234, 246, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

html.modo-movil .nav-modo-movil {
    display: none;
}

/* --- Modal selector de modo de visualización ---------------------- */
.modal-selector-card {
    max-width: 420px;
}

.modo-selector-opciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.modo-selector-opcion {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 2px solid rgba(120, 200, 240, 0.18);
    background: rgba(120, 200, 240, 0.06);
    color: rgba(234, 246, 255, 0.72);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
}

.modo-selector-opcion:hover {
    border-color: rgba(120, 200, 240, 0.38);
    background: rgba(120, 200, 240, 0.12);
}

.modo-selector-opcion-activa {
    border-color: var(--worldcup-gold) !important;
    background: rgba(217, 180, 95, 0.10) !important;
    color: rgba(234, 246, 255, 0.92) !important;
}

.modo-selector-icono {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.modo-selector-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.modo-selector-nombre {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.modo-selector-desc {
    font-size: 0.82rem;
    color: rgba(234, 246, 255, 0.48);
    font-weight: 400;
}

.modo-selector-opcion-activa .modo-selector-desc {
    color: rgba(234, 246, 255, 0.58);
}

/* --- Botón nav-modo-movil se estira en nav stacked (640px) -------- */
@media (max-width: 640px) {
    .nav-actions .nav-modo-movil {
        flex: 1 1 auto;
        text-align: center;
        justify-content: center;
        width: 100%;
    }
}

/* ============================================================
   INDEX HERO — ajustes exclusivos para móvil real (≤768px)
   Solo afecta .hero-section de index.php en pantallas chicas.
   NO toca desktop, NO toca otras secciones.
   ============================================================ */
@media (max-width: 768px) {
    /* Compactar padding del hero */
    .home-page .hero-section {
        padding-top: 18px;
        padding-bottom: 14px;
    }

    /* Grid en columna única, sin gap excesivo */
    .home-page .hero-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* La card baja debajo del texto cuando el hero se apila. */
    .home-page .hero-card {
        display: grid;
        margin-top: 0;
    }

    /* Compactar el bloque de copy */
    .home-page .hero-copy {
        gap: 10px;
    }

    /* Reducir tamaño del h1 en mobile */
    .home-page .hero-copy h1 {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
        margin-bottom: 6px;
    }

    /* Acortar margen del eyebrow */
    .home-page .hero-copy .eyebrow {
        margin-bottom: 4px;
    }

    /* Ocultar texto de apoyo redundante ("Registrate y empezá a jugar.") */
    .home-page .hero-copy .hero-support {
        display: none;
    }

    /* hero-lead más compacta */
    .home-page .hero-copy .hero-lead {
        font-size: 0.97rem;
        line-height: 1.5;
        margin-bottom: 4px;
    }

    /* Botones en columna, full-width, bien separados */
    .home-page .hero-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 4px;
    }

    .home-page .hero-actions .btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* ============================================================
   FIXTURE FASE DE GRUPOS — cards responsive en móvil (≤768px)
   Estrategia Opción C: cada <tr> se convierte en match card.
   Desktop (tabla + min-width:820px) NO se toca.

   Layout card con banderas (FIFA/Flashscore style):
     ┌──────────────────────────────────────────┐
     │                         [● Programado]   │  ← estado fila propia
     │  [🏴] México    VS    Sudáfrica [🏴]     │  ← local + sep + visitante
     │  🕐  12/06/2026  18:00                  │  ← fecha
     │  📍  Sede del partido                    │  ← estadio
     └──────────────────────────────────────────┘

   Grid 3-col: 1fr | 28px | 1fr
   "estado estado estado" / "local sep visitante" / "fecha fecha fecha" / "sede sede sede"
   tr::before ocupa el área "sep" y muestra "VS" sin tocar el HTML.
   ============================================================ */
@media (max-width: 768px) {

    /* Contenedor: sin scroll horizontal */
    .fixture-table-scroll {
        overflow-x: visible;
        padding: 0 10px 18px;
    }

    /* Tabla: eliminar min-width y display:table */
    .fixture-table {
        min-width: 0;
        width: 100%;
        display: block;
    }

    .fixture-table thead {
        display: none;
    }

    .fixture-table tbody {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* ---- CARD: una por partido ---- */
    .fixture-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
        grid-template-areas:
            "estado  estado  estado"
            "local   sep     visitante"
            "fecha   fecha   fecha"
            "sede    sede    sede";
        border: 1px solid rgba(120, 200, 240, 0.18);
        border-radius: 14px;
        padding: 0;
        gap: 0;
        background: linear-gradient(135deg, rgba(6, 31, 54, 0.82) 0%, rgba(10, 42, 74, 0.7) 100%);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
        overflow: hidden;
        transition: border-color 0.15s, box-shadow 0.15s;
    }

    .fixture-table tbody tr:hover {
        border-color: rgba(120, 200, 240, 0.38);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    /* Reset global celdas */
    .fixture-table td {
        padding: 0;
        border-bottom: none;
        text-align: left;
        vertical-align: middle;
    }

    /* ---- tr::before → área "sep" (el "VS" central) ----------
       Pseudo-elemento del grid container — no requiere HTML extra. */
    .fixture-table tbody tr::before {
        content: 'VS';
        grid-area: sep;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.6rem;
        font-weight: 900;
        letter-spacing: 0.1em;
        color: rgba(120, 200, 240, 0.45);
        padding: 0;
    }

    /* ---- td7: Estado → área "estado" (fila cabecera) --------- */
    .fixture-table td:nth-child(7) {
        grid-area: estado;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 8px 12px 7px;
        border-bottom: 1px solid rgba(120, 200, 240, 0.1);
    }
    .fixture-table td:nth-child(7) .status-pill {
        font-size: 0.67rem;
        padding: 0 8px;
        min-height: 20px;
    }

    /* ---- td2: Equipo local → col izq., fila equipos ---------- */
    .fixture-table td:nth-child(2) {
        grid-area: local;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 7px;
        padding: 12px 8px 12px 12px;
        font-size: 0.86rem;
        font-weight: 700;
        color: #fff;
        line-height: 1.25;
        text-align: right;
    }
    .fixture-table td:nth-child(2) .fixture-flag {
        margin-right: 0;
        order: -1;
        width: 22px;
        height: 14px;
        border-radius: 3px;
    }

    /* ---- td3: Equipo visitante → col der., fila equipos ------ */
    .fixture-table td:nth-child(3) {
        grid-area: visitante;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 7px;
        padding: 12px 12px 12px 8px;
        font-size: 0.86rem;
        font-weight: 700;
        color: #fff;
        line-height: 1.25;
        text-align: left;
    }
    .fixture-table td:nth-child(3) .fixture-flag {
        margin-right: 0;
        width: 22px;
        height: 14px;
        border-radius: 3px;
    }

    /* ---- td4: Grupo → ocultar (visible en heading de sección) */
    .fixture-table td:nth-child(4) {
        display: none;
    }

    /* ---- td1: Fecha/hora ------------------------------------- */
    .fixture-table td:nth-child(1) {
        grid-area: fecha;
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 7px 12px 4px;
        font-size: 0.78rem;
        font-weight: 600;
        color: rgba(120, 200, 240, 0.8);
        border-top: 1px solid rgba(120, 200, 240, 0.1);
    }
    .fixture-table td:nth-child(1)::before {
        content: '🕐';
        font-size: 0.76rem;
        flex-shrink: 0;
        line-height: 1;
    }

    /* ---- td5: Estadio ---------------------------------------- */
    .fixture-table td:nth-child(5) {
        grid-area: sede;
        display: flex;
        align-items: flex-start;
        gap: 5px;
        padding: 3px 12px 10px;
        font-size: 0.75rem;
        color: rgba(234, 246, 255, 0.48);
        line-height: 1.35;
    }
    .fixture-table td:nth-child(5)::before {
        content: '📍';
        font-size: 0.72rem;
        flex-shrink: 0;
        line-height: 1.5;
    }

    /* ---- td6: Ciudad → ocultar ------------------------------- */
    .fixture-table td:nth-child(6) {
        display: none;
    }

    /* Si modo-movil está activo en mobile, cards tienen prioridad */
    html.modo-movil .fixture-table-scroll {
        overflow-x: visible;
    }

    /* Heading del grupo: más compacto */
    .fixture-group-card .phase-heading {
        padding: 14px 14px 0;
    }
    .fixture-group-card .phase-heading h2 {
        font-size: 1.05rem;
    }

    .fixture-view-controls {
        justify-content: stretch;
    }

    .fixture-view-button {
        flex: 1 1 140px;
    }

    .fixture-date-group {
        padding: 12px;
        border-radius: 18px;
    }

    .fixture-date-match {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .fixture-date-time,
    .fixture-date-meta {
        grid-column: auto;
    }

    .fixture-date-time {
        justify-self: start;
        min-height: 34px;
        padding: 0 12px;
    }

    .fixture-date-teams {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .fixture-date-teams span,
    .fixture-date-teams span:last-child {
        justify-content: flex-start;
        text-align: left;
    }

    .fixture-date-teams em {
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .prediction-view-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .prediction-view-toggle {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        border-radius: 16px;
    }

    .prediction-view-controls label,
    .prediction-filter-apply {
        width: 100%;
    }

    .prediction-date-group {
        padding: 12px;
    }

    .prediction-date-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .prediction-date-matches {
        grid-template-columns: 1fr;
    }
}

html.modo-movil .prediction-view-controls,
html.modo-movil .prediction-date-matches,
html.modo-movil .fixture-date-list,
html.modo-movil .fixture-date-group,
html.modo-movil .fixture-date-matches {
    width: 100%;
    min-width: 0;
}

/* ================================================================
   RANKING REDISEÑADO — tabla limpia + modal detalle
   ================================================================ */

/* ── Cabecera de la card ── */
.rk-card {
    padding: 0;
    overflow: hidden;
}

.rk-card-head {
    padding: 26px 28px 18px;
    border-bottom: 1px solid rgba(120, 200, 240, 0.12);
}

.rk-card-head .badge {
    margin-bottom: 6px;
    display: inline-block;
}

.rk-card-head h2 {
    font-size: 1.2rem;
    margin: 4px 0 6px;
    color: #fff;
}

.rk-card-head p {
    font-size: 0.83rem;
    color: rgba(224, 242, 254, 0.45);
    margin: 0;
}

/* ── Tabla ── */
.rk-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.93rem;
    color: #e0f2fe;
}

.rk-table thead th {
    padding: 12px 20px;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(224, 242, 254, 0.45);
    border-bottom: 1px solid rgba(120, 200, 240, 0.14);
    white-space: nowrap;
    background: rgba(14, 165, 233, 0.06);
}

.rk-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(120, 200, 240, 0.07);
    vertical-align: middle;
}

.rk-table tbody tr:last-child td {
    border-bottom: none;
}

/* Filas clickeables */
.rk-row {
    cursor: pointer;
    transition: background 0.14s ease;
}

.rk-row:hover {
    background: rgba(56, 189, 248, 0.07);
}

.rk-row:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.6);
    outline-offset: -2px;
}

.rk-row--pendiente {
    opacity: 0.5;
}

/* Columnas opcionales */
.rk-col-func { color: rgba(224, 242, 254, 0.6); }
.rk-col-pts  { text-align: right; }

/* Posición */
.rk-pos-cell { width: 56px; text-align: center; }

.rk-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 900;
    color: #fff;
}

.rk-medal--oro    { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 2px 10px rgba(245,158,11,.5); }
.rk-medal--plata  { background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: 0 2px 10px rgba(100,116,139,.4); }
.rk-medal--bronce { background: linear-gradient(135deg, #cd7c3a, #9a6026); box-shadow: 0 2px 10px rgba(180,83,9,.4); }

.rk-pos-num {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(224, 242, 254, 0.45);
}

/* Nombre */
.rk-name-cell strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Puntos */
.rk-pts-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    font-size: 1rem;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    min-width: 44px;
    text-align: center;
}

.rk-no-data {
    color: rgba(224, 242, 254, 0.2);
}

.ranking-current-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    padding: 20px 22px;
    color: #f8fafc;
    border: 1px solid rgba(250, 204, 21, 0.46);
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 0, rgba(250, 204, 21, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(8, 47, 73, 0.92), rgba(2, 18, 32, 0.86));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22), 0 0 26px rgba(56, 189, 248, 0.1);
}

.ranking-current-summary-title {
    margin: 0 0 6px;
    color: #fde68a;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ranking-current-summary-rank {
    color: #ffffff;
    font-size: clamp(1.55rem, 4vw, 2.35rem);
    font-weight: 950;
    line-height: 1;
}

.ranking-current-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin: 9px 0 0;
    color: rgba(224, 242, 254, 0.72);
    font-size: 0.92rem;
}

.ranking-current-summary-meta strong {
    color: #ffffff;
}

.ranking-current-summary-meta span {
    color: #7dd3fc;
    font-weight: 800;
}

.ranking-jump-current {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(125, 211, 252, 0.4);
    border-radius: 999px;
    color: #082f49;
    background: linear-gradient(135deg, #e0f2fe, #fef3c7);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ranking-jump-current:hover,
.ranking-jump-current:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26), 0 0 20px rgba(250, 204, 21, 0.16);
}

.ranking-current-user {
    position: relative;
    opacity: 1;
    background:
        linear-gradient(90deg, rgba(250, 204, 21, 0.16), rgba(56, 189, 248, 0.1));
    box-shadow: inset 4px 0 0 #facc15, 0 14px 26px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.ranking-current-user:hover {
    background:
        linear-gradient(90deg, rgba(250, 204, 21, 0.2), rgba(56, 189, 248, 0.14));
}

.ranking-current-user td {
    border-top: 1px solid rgba(250, 204, 21, 0.38);
    border-bottom-color: rgba(250, 204, 21, 0.38);
}

.ranking-current-user td:first-child {
    border-left: 1px solid rgba(250, 204, 21, 0.38);
    border-radius: 14px 0 0 14px;
}

.ranking-current-user td:last-child {
    border-right: 1px solid rgba(250, 204, 21, 0.38);
    border-radius: 0 14px 14px 0;
}

.ranking-current-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 4px 9px;
    border: 1px solid rgba(250, 204, 21, 0.52);
    border-radius: 999px;
    color: #082f49;
    background: linear-gradient(135deg, #fde68a, #7dd3fc);
    font-size: 0.67rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.ranking-current-user-pulse {
    animation: ranking-current-pulse 1.5s ease;
}

@keyframes ranking-current-pulse {
    0%,
    100% {
        box-shadow: inset 4px 0 0 #facc15, 0 14px 26px rgba(0, 0, 0, 0.18);
    }

    45% {
        box-shadow: inset 4px 0 0 #facc15, 0 0 0 6px rgba(250, 204, 21, 0.2), 0 18px 34px rgba(0, 0, 0, 0.26);
    }
}

/* ── Modal / overlay ── */
.rk-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rk-overlay[hidden] { display: none; }

.rk-modal {
    background: linear-gradient(160deg, #0b1928 0%, #0e2040 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 22px;
    width: 100%;
    max-width: 460px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    padding: 30px 26px 26px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.04);
    animation: rk-fade-in 0.18s ease;
}

@keyframes rk-fade-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

/* Botón cerrar */
.rk-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.14s, color 0.14s;
    line-height: 1;
}

.rk-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* Loading */
.rk-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 0;
    color: rgba(224, 242, 254, 0.45);
    font-size: 0.9rem;
}

.rk-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(56, 189, 248, 0.25);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: rk-spin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes rk-spin { to { transform: rotate(360deg); } }

.rk-error {
    text-align: center;
    padding: 36px 0;
    color: rgba(252, 165, 165, 0.85);
    font-size: 0.9rem;
    margin: 0;
}

.rk-body-lock { overflow: hidden; }

/* ── Contenido detalle ── */
.rk-dh {
    margin-bottom: 24px;
    padding-right: 36px;
}

.rk-dh-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 7px;
}

.rk-dh-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.87rem;
    color: rgba(224, 242, 254, 0.55);
    margin-bottom: 16px;
}

.rk-dh-meta strong { color: rgba(224, 242, 254, 0.9); }

.rk-sep { color: rgba(224, 242, 254, 0.25); }

.rk-dh-pts {
    font-size: 2.2rem;
    font-weight: 900;
    color: #7dd3fc;
    line-height: 1;
}

.rk-dh-pts span {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(125, 211, 252, 0.6);
    margin-left: 5px;
}

/* Etiqueta de sección */
.rk-section-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(224, 242, 254, 0.35);
    margin: 22px 0 10px;
}

/* ── Tarjetas de puntaje ── */
.rk-score-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.rk-sc {
    border-radius: 14px;
    padding: 15px 10px 13px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.rk-sc--exacto     { background: rgba(245, 158, 11, 0.09); border-color: rgba(245,158,11,0.28); }
.rk-sc--ganador    { background: rgba(56, 189, 248, 0.07); border-color: rgba(56,189,248,0.22); }
.rk-sc--diferencia { background: rgba(52, 211, 153, 0.07); border-color: rgba(52,211,153,0.22); }

.rk-sc-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 7px;
}

.rk-sc--exacto     .rk-sc-label { color: #fbbf24; }
.rk-sc--ganador    .rk-sc-label { color: #38bdf8; }
.rk-sc--diferencia .rk-sc-label { color: #34d399; }

.rk-sc-unit {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    padding: 2px 7px;
    margin-bottom: 10px;
}

.rk-sc--exacto     .rk-sc-unit { background: rgba(245,158,11,0.18); color: #fbbf24; }
.rk-sc--ganador    .rk-sc-unit { background: rgba(56,189,248,0.14); color: #38bdf8; }
.rk-sc--diferencia .rk-sc-unit { background: rgba(52,211,153,0.14); color: #34d399; }

.rk-sc-count {
    font-size: 1.9rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.rk-sc-total {
    font-size: 0.78rem;
    color: rgba(224, 242, 254, 0.45);
}

/* ── Estadísticas ── */
.rk-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.rk-stat {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 11px;
    padding: 12px 14px;
}

.rk-stat-lbl {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(224, 242, 254, 0.38);
    margin-bottom: 5px;
}

.rk-stat-val {
    font-size: 1.18rem;
    font-weight: 800;
    color: #e0f2fe;
    line-height: 1;
}

/* ── Responsive: tabla + bottom sheet en móvil ── */
@media (max-width: 640px) {
    .ranking-current-summary {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 20px;
    }

    .ranking-current-summary-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .ranking-jump-current {
        width: 100%;
    }

    .ranking-current-badge {
        width: fit-content;
        margin: 7px 0 0;
    }

    .rk-card-head {
        padding: 20px 18px 14px;
    }

    /* Tabla: layout fijo con columnas controladas */
    .rk-table {
        table-layout: fixed;
    }

    .rk-table thead th,
    .rk-table td {
        padding: 12px 10px;
    }

    /* Columna # */
    .rk-pos-cell,
    .rk-table thead th:first-child {
        width: 42px;
        padding-left: 14px;
        padding-right: 4px;
    }

    /* Columna Funcionario: ancho justo para 4-5 dígitos */
    th.rk-col-func,
    td.rk-col-func {
        width: 54px;
        text-align: center;
        padding-left: 6px;
        padding-right: 6px;
    }

    /* Abreviar cabecera "FUNCIONARIO" → "Nº" para que entre */
    th.rk-col-func {
        font-size: 0;
    }
    th.rk-col-func::after {
        content: 'N\00BA';
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: rgba(224, 242, 254, 0.45);
    }

    /* Columna Puntos */
    th.rk-col-pts,
    td.rk-col-pts {
        width: 62px;
        padding-right: 14px;
    }

    /* Nombre: toma el espacio restante, no desborda */
    .rk-name-cell {
        overflow: hidden;
    }
    .rk-name-cell strong {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Badge de puntos: más compacto */
    .rk-pts-badge {
        padding: 4px 8px;
        font-size: 0.92rem;
        min-width: 0;
    }

    /* Modal: bottom sheet */
    .rk-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .rk-modal {
        border-radius: 22px 22px 0 0;
        max-height: 88vh;
        padding: 24px 18px 32px;
        max-width: 100%;
        animation: rk-slide-up 0.22s cubic-bezier(0.32, 0.72, 0, 1);
    }

    @keyframes rk-slide-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    .rk-score-grid { gap: 8px; }
    .rk-sc { padding: 12px 8px 11px; }
    .rk-sc-count { font-size: 1.6rem; }
    .rk-dh-pts { font-size: 1.85rem; }
    .rk-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* modo-movil: tabla + bottom sheet */
html.modo-movil .ranking-current-summary {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 20px;
}

html.modo-movil .ranking-current-summary-meta {
    flex-direction: column;
    align-items: flex-start;
}

html.modo-movil .ranking-jump-current { width: 100%; }
html.modo-movil .ranking-current-badge { width: fit-content; margin: 7px 0 0; }

html.modo-movil .rk-table           { table-layout: fixed; }

html.modo-movil .rk-table thead th,
html.modo-movil .rk-table td        { padding: 12px 10px; }

html.modo-movil .rk-pos-cell,
html.modo-movil .rk-table thead th:first-child { width: 42px; padding-left: 14px; padding-right: 4px; }

html.modo-movil th.rk-col-func,
html.modo-movil td.rk-col-func      { width: 54px; text-align: center; padding-left: 6px; padding-right: 6px; }

html.modo-movil th.rk-col-func      { font-size: 0; }
html.modo-movil th.rk-col-func::after {
    content: 'N\00BA';
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(224, 242, 254, 0.45);
}

html.modo-movil th.rk-col-pts,
html.modo-movil td.rk-col-pts       { width: 62px; padding-right: 14px; }

html.modo-movil .rk-name-cell       { overflow: hidden; }
html.modo-movil .rk-name-cell strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.modo-movil .rk-pts-badge       { padding: 4px 8px; font-size: 0.92rem; min-width: 0; }

html.modo-movil .rk-overlay         { align-items: flex-end; padding: 0; }
html.modo-movil .rk-modal {
    border-radius: 22px 22px 0 0;
    max-height: 88vh;
    padding: 24px 18px 32px;
    max-width: 100%;
}
