html, body {
    font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
    background: #334155;
    margin: 0;
    padding: 0;
    color: #F9FAFB;
}

#app {
    min-height: 100vh;
}

:root {
    --ms-header-height: 120px;
    --ms-sidebar-width: 240px;
}

/* LOGIN */
.ms-login-shell {
    min-height: 100vh;
    background: linear-gradient(180deg, #374151 0%, #334155 100%);
}

.ms-login-header {
    height: var(--ms-header-height);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 24px;
    background: rgba(5, 13, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ms-login-header__brand {
    display: flex;
    align-items: center;
}

.ms-login-header__logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transform: scale(1.25);
    transform-origin: center center;
    mix-blend-mode: lighten;
}

.ms-login-main {
    min-height: calc(100vh - var(--ms-header-height));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 24px;
}

/* APP */
.ms-app-shell {
    min-height: 100vh;
    background: linear-gradient(180deg, #374151 0%, #334155 100%);
}

.ms-app-header {
    height: var(--ms-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(5, 13, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ms-app-header__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ms-app-header__right {
    display: flex;
    align-items: center;
}

.ms-app-header__logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transform: scale(1.25);
    transform-origin: left center;
    mix-blend-mode: lighten;
}

.ms-app-body {
    display: flex;
    min-height: calc(100vh - var(--ms-header-height));
}

.ms-app-sidebar {
    width: var(--ms-sidebar-width);
    min-width: var(--ms-sidebar-width);
    background: #0b1220;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ms-app-content {
    flex: 1;
    padding: 24px;
    overflow-x: auto;
}

.ms-dashboard-title {
    color: #F9FAFB;
    font-weight: 700;
}

.ms-dashboard-subtitle {
    color: #D1D5DB;
}

.ms-card-link {
    height: 100%;
}

    .ms-card-link .mud-card {
        height: 100%;
    }

/* =========================================================
   PROGRAMACION - ESTILO COMPACTO
   Solo afecta la pantalla que use .ms-compact-ui
   ========================================================= */

.ms-compact-ui {
    font-family: Tahoma, Arial, sans-serif;
}

/* títulos */
.ms-compact-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    margin-bottom: 2px !important;
}

.ms-compact-subtitle {
    font-size: 11px !important;
    font-weight: 400 !important;
    opacity: .92;
    line-height: 1.2 !important;
}

.ms-compact-section-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

/* tabs */
.ms-compact-ui .mud-tab {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 11px !important;
    min-height: 34px !important;
    padding: 4px 10px !important;
    text-transform: uppercase;
    letter-spacing: .2px;
}

/* labels e inputs */
.ms-compact-ui .mud-input-label {
    font-size: 10px !important;
    font-weight: 400 !important;
    opacity: .90;
    font-family: Tahoma, Arial, sans-serif !important;
}

.ms-compact-ui .mud-input-slot,
.ms-compact-ui .mud-select-input,
.ms-compact-ui input,
.ms-compact-ui textarea {
    font-size: 11px !important;
    font-weight: 400 !important;
    font-family: Tahoma, Arial, sans-serif !important;
}

.ms-compact-ui .mud-input-slot {
    min-height: 30px !important;
    line-height: 1.1 !important;
}

/* botones */
.ms-compact-ui .mud-button-root {
    min-height: 28px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    padding: 3px 10px !important;
    font-family: Tahoma, Arial, sans-serif !important;
    text-transform: uppercase;
}

.ms-compact-ui .mud-button-label {
    font-size: 10px !important;
    font-weight: 500 !important;
}

.ms-compact-ui .mud-icon-button {
    width: 24px !important;
    height: 24px !important;
    padding: 2px !important;
}

.ms-compact-ui .mud-icon-root {
    font-size: 15px !important;
}

/* tablas / grillas */
.ms-grid-compact .mud-table-root,
.ms-grid-compact table {
    font-family: Tahoma, Arial, sans-serif !important;
}

/* encabezados */
.ms-grid-compact .mud-table-head .mud-table-cell {
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: .2px !important;
    opacity: .88;
    padding: 4px 6px !important;
    white-space: nowrap;
}

/* datos */
.ms-grid-compact .mud-table-body .mud-table-cell {
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    padding: 4px 6px !important;
    vertical-align: middle !important;
}

/* altura de filas */
.ms-grid-compact .mud-table-body tr {
    height: 24px !important;
}

/* links dentro de tablas */
.ms-grid-compact .mud-link {
    font-size: 10px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

/* labels responsivos de MudTable */
.ms-grid-compact .mud-table-cell::before {
    font-size: 9px !important;
    font-weight: 600 !important;
    opacity: .8 !important;
}

/* textos generales dentro de programación */
.ms-compact-ui .mud-typography-body1 {
    font-size: 11px !important;
    font-weight: 400 !important;
}

.ms-compact-ui .mud-typography-body2 {
    font-size: 10px !important;
    font-weight: 400 !important;
}

.ms-compact-ui .mud-typography-caption {
    font-size: 9px !important;
    font-weight: 400 !important;
}

.ms-compact-ui .mud-typography-subtitle1 {
    font-size: 12px !important;
    font-weight: 600 !important;
}

.ms-compact-ui .mud-typography-subtitle2 {
    font-size: 10px !important;
    font-weight: 500 !important;
}

/* responsive */
@media (max-width: 960px) {
    .ms-compact-ui .mud-tab {
        font-size: 10px !important;
        min-height: 32px !important;
        padding: 4px 8px !important;
    }

    .ms-compact-ui .mud-button-root {
        font-size: 9px !important;
        min-height: 28px !important;
    }

    .ms-grid-compact .mud-table-head .mud-table-cell {
        font-size: 9px !important;
    }

    .ms-grid-compact .mud-table-body .mud-table-cell {
        font-size: 9px !important;
    }

    .ms-grid-compact .mud-link {
        font-size: 9px !important;
    }
}
/* PUBLICO */
.ms-public-hero {
    border-radius: 18px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.ms-public-hero-title {
    font-weight: 700;
    letter-spacing: .2px;
}

.ms-public-hero-subtitle {
    opacity: .92;
}

.ms-public-card {
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .ms-public-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(0,0,0,.22);
    }

.ms-public-logo-box,
.ms-public-org-logo-wrap {
    min-height: 88px;
    min-width: 88px;
    border-radius: 16px;
    background: rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.ms-public-logo {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.ms-public-org-logo {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}

.ms-public-description {
    opacity: .95;
    line-height: 1.35;
}

.ms-public-org-header {
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.ms-public-org-title {
    font-weight: 700;
    letter-spacing: .2px;
}

.ms-public-org-subtitle {
    opacity: .95;
}

.ms-public-tabs .mud-tabs-tabbar {
    border-radius: 14px;
}

.ms-public-section-card {
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

.ms-public-table .mud-table-head .mud-table-cell {
    font-size: 11px !important;
    font-weight: 600 !important;
}

.ms-public-table .mud-table-body .mud-table-cell {
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

@media (max-width: 768px) {
    .ms-public-hero-title,
    .ms-public-org-title {
        font-size: 1.7rem !important;
    }

    .ms-public-card,
    .ms-public-org-header,
    .ms-public-section-card {
        border-radius: 14px;
    }
}
.hero-publico {
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,193,7,0.18), rgba(255,255,255,0.04)), linear-gradient(180deg, rgba(7,18,36,0.78), rgba(11,24,46,0.62));
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
}
.kpi-card,
.org-card,
.footer-publico {
    background: rgba(7, 18, 36, 0.86);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
}

.hero-panel {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
}

/* ================================================================
   PORTAL PÚBLICO v2 — Diseño Premium
   Estos estilos aplican SOLO al portal público (/publico/...)
   No afectan al panel de administración
   ================================================================ */

:root {
    --pub-bg:              #050d1a;
    --pub-bg-2:            #0a1628;
    --pub-card-bg:         rgba(255, 255, 255, 0.04);
    --pub-card-border:     rgba(255, 255, 255, 0.09);
    --pub-card-border-hover: rgba(245, 158, 11, 0.35);
    --pub-accent:          #f59e0b;
    --pub-accent-dim:      rgba(245, 158, 11, 0.14);
    --pub-accent-glow:     rgba(245, 158, 11, 0.28);
    --pub-text:            #f1f5f9;
    --pub-text-muted:      #94a3b8;
    --pub-text-dim:        #4b5563;
    --pub-radius-xl:       24px;
    --pub-radius-lg:       18px;
    --pub-radius-md:       12px;
    --pub-radius-sm:       8px;
    --pub-shadow:          0 12px 40px rgba(0, 0, 0, 0.45);
    --pub-shadow-glow:     0 0 28px rgba(245, 158, 11, 0.18);
    --pub-glass-bg:        rgba(255, 255, 255, 0.05);
    --pub-glass-border:    rgba(255, 255, 255, 0.10);
}

/* ---- LAYOUT RAÍZ ---- */
.pub-layout-root {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--pub-bg) 0%, var(--pub-bg-2) 55%, #0d1b2f 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

/* ---- NAVBAR ---- */
.pub-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 13, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--pub-glass-border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    padding: 0 28px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.pub-navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}
.pub-navbar-brand:hover { opacity: 0.88; }

.pub-navbar-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    transform: scale(1.25);
    transform-origin: left center;
    mix-blend-mode: lighten;
}

/* Evitar outline blanco molesto cuando Blazor hace FocusOnNavigate */
h1:focus,
[tabindex="-1"]:focus {
    outline: none !important;
}

.pub-navbar-brand-text {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--pub-text);
    letter-spacing: -0.5px;
    line-height: 1;
}
.pub-navbar-brand-text .accent { color: var(--pub-accent); }

.pub-navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-btn-ghost {
    background: transparent;
    border: 1px solid var(--pub-accent);
    color: var(--pub-accent);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
    font-family: inherit;
}
.pub-btn-ghost:hover { background: rgba(251, 146, 60, 0.1); color: var(--pub-accent); }

.pub-btn-accent {
    background: var(--pub-accent);
    border: none;
    color: #0a0a0a;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 14px rgba(245, 158, 11, 0.4);
    font-family: inherit;
}
.pub-btn-accent:hover {
    background: #fbbf24;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.55);
}

.pub-main { flex: 1; }

/* ---- FOOTER ---- */
.pub-footer {
    background: rgba(0,0,0,0.45);
    border-top: 1px solid var(--pub-card-border);
    padding: 22px 28px;
    text-align: center;
    color: var(--pub-text-dim);
    font-size: 0.78rem;
}
.pub-footer a { color: var(--pub-accent); text-decoration: none; }
.pub-footer a:hover { text-decoration: underline; }

/* ---- HERO ---- */
.pub-hero {
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pub-hero::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(245,158,11,0.10) 0%, transparent 68%);
    pointer-events: none;
}

.pub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--pub-accent-dim);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pub-accent);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.pub-hero-ball {
    font-size: 4.5rem;
    display: block;
    margin-bottom: 20px;
    animation: pub-float 3.2s ease-in-out infinite;
    filter: drop-shadow(0 0 22px rgba(245,158,11,0.35));
}
@keyframes pub-float {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50%       { transform: translateY(-14px) rotate(6deg); }
}

.pub-hero-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
    color: var(--pub-text);
    line-height: 1.08;
    margin-bottom: 14px;
    letter-spacing: -1.5px;
}
.pub-hero-title .accent {
    background: linear-gradient(130deg, #f59e0b 0%, #fbbf24 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pub-hero-subtitle {
    font-size: 1.05rem;
    color: var(--pub-text-muted);
    max-width: 500px;
    margin: 0 auto 44px;
    line-height: 1.65;
}

/* ---- ORG CARDS GRID ---- */
.pub-org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(308px, 1fr));
    gap: 22px;
    padding: 0 28px 72px;
    max-width: 1280px;
    margin: 0 auto;
}

.pub-org-card {
    background: var(--pub-card-bg);
    border: 1px solid var(--pub-card-border);
    border-radius: var(--pub-radius-xl);
    padding: 26px;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.25s ease,
                border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.pub-org-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pub-accent), #f97316);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.pub-org-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--pub-shadow), var(--pub-shadow-glow);
    border-color: var(--pub-card-border-hover);
}
.pub-org-card:hover::before { opacity: 1; }

.pub-org-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pub-org-logo-wrap {
    width: 70px; height: 70px; min-width: 70px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--pub-glass-border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 8px;
    flex-shrink: 0;
}
.pub-org-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.pub-org-logo-icon { font-size: 1.8rem; }

.pub-org-card-name {
    font-size: 1.1rem; font-weight: 800;
    color: var(--pub-text); line-height: 1.2;
}
.pub-org-card-slug {
    font-size: 0.72rem; color: var(--pub-text-dim);
    margin-top: 3px; font-family: monospace;
}

.pub-org-card-desc {
    font-size: 0.855rem; color: var(--pub-text-muted);
    line-height: 1.55; flex: 1;
}

.pub-org-features {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.pub-feature-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--pub-accent-dim);
    border: 1px solid rgba(245,158,11,0.22);
    border-radius: 50px; padding: 3px 10px;
    font-size: 0.68rem; font-weight: 700;
    color: var(--pub-accent); letter-spacing: 0.3px;
}

.pub-org-cta {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(245,158,11,0.10);
    border: 1px solid rgba(245,158,11,0.18);
    border-radius: var(--pub-radius-md);
    padding: 12px 16px;
    color: var(--pub-accent); font-weight: 700; font-size: 0.875rem;
    transition: background 0.2s; margin-top: auto;
}
.pub-org-card:hover .pub-org-cta { background: rgba(245,158,11,0.18); }
.pub-cta-arrow { transition: transform 0.2s; font-size: 1.1rem; }
.pub-org-card:hover .pub-cta-arrow { transform: translateX(5px); }

/* ---- SKELETON ---- */
.pub-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(308px, 1fr));
    gap: 22px; padding: 0 28px 72px;
    max-width: 1280px; margin: 0 auto;
}
.pub-skeleton-card {
    background: var(--pub-card-bg);
    border: 1px solid var(--pub-card-border);
    border-radius: var(--pub-radius-xl);
    padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.pub-skeleton-line {
    border-radius: 6px; height: 14px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: pub-shimmer 1.5s infinite;
}
.pub-skeleton-circle {
    width: 70px; height: 70px; border-radius: 16px;
    background: rgba(255,255,255,0.06);
    animation: pub-shimmer 1.5s infinite;
    background-size: 200% 100%;
    background-image: linear-gradient(90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 75%);
}
@keyframes pub-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- BREADCRUMB ---- */
.pub-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    max-width: 1280px; margin: 0 auto;
    padding: 20px 28px 0;
    font-size: 0.8rem; color: var(--pub-text-dim);
    flex-wrap: wrap;
}
.pub-breadcrumb-btn {
    background: none; border: none; cursor: pointer;
    color: var(--pub-text-muted); font-size: 0.8rem;
    padding: 0; display: flex; align-items: center; gap: 5px;
    transition: color 0.2s; font-family: inherit;
}
.pub-breadcrumb-btn:hover { color: var(--pub-accent); }
.pub-breadcrumb-sep { color: var(--pub-text-dim); }
.pub-breadcrumb-current { color: var(--pub-text); font-weight: 600; }

/* ---- ORG BANNER ---- */
.pub-org-banner {
    width: 100%; padding: 72px 28px 54px;
    position: relative; overflow: hidden;
}
.pub-org-banner::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5,13,26,0.82) 100%);
    pointer-events: none;
}
.pub-org-banner-content {
    max-width: 1280px; margin: 0 auto;
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.pub-org-banner-logo-wrap {
    width: 120px; height: 120px; min-width: 120px;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.22);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 10px;
    backdrop-filter: blur(8px);
}
.pub-org-banner-logo { max-width: 100%; max-height: 100%; object-fit: contain; }

.pub-org-banner-name {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 900; color: white; line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.pub-org-banner-desc {
    font-size: 0.95rem; color: rgba(255,255,255,0.78);
    margin-top: 7px; line-height: 1.5;
}
.pub-org-banner-chips {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.pub-org-banner-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 50px; padding: 4px 13px;
    font-size: 0.72rem; font-weight: 700; color: white;
    backdrop-filter: blur(4px);
}

/* ---- SECTION HEADER ---- */
.pub-section-header {
    max-width: 1280px; margin: 30px auto 18px;
    padding: 0 28px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.pub-section-title {
    font-size: 1.4rem; font-weight: 800; color: var(--pub-text); letter-spacing: -0.3px;
}
.pub-count-badge {
    background: var(--pub-accent-dim);
    border: 1px solid rgba(245,158,11,0.22);
    border-radius: 50px; padding: 4px 14px;
    font-size: 0.8rem; font-weight: 700; color: var(--pub-accent);
}

/* ---- TOURNAMENT CARDS (en perfil org) ---- */
.pub-tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 18px; max-width: 1280px; margin: 0 auto; padding: 0 28px 72px;
}
.pub-tournament-card {
    border-radius: var(--pub-radius-lg); overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--pub-card-border);
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex; flex-direction: column;
}
.pub-tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pub-shadow), var(--pub-shadow-glow);
    border-color: var(--pub-card-border-hover);
}
.pub-tournament-card-top {
    padding: 22px 20px 18px; position: relative; min-height: 90px;
}
.pub-tournament-year-badge {
    position: absolute; top: 14px; right: 14px;
    background: rgba(0,0,0,0.38);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px; padding: 3px 10px;
    font-size: 0.72rem; font-weight: 800; color: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
}
.pub-tournament-name {
    font-size: 1.05rem; font-weight: 800; color: white;
    line-height: 1.25; text-shadow: 0 1px 6px rgba(0,0,0,0.35);
    padding-right: 62px;
}
.pub-tournament-card-body {
    padding: 14px 20px; flex: 1;
    display: flex; flex-direction: column; gap: 12px;
    background: var(--pub-card-bg); backdrop-filter: blur(8px);
}
.pub-tournament-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.pub-tournament-meta-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.78rem; color: var(--pub-text-muted);
}
.pub-tournament-meta-value { font-weight: 700; color: var(--pub-text); }
.pub-tournament-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-tournament-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 6px; padding: 3px 9px;
    font-size: 0.68rem; font-weight: 600; color: var(--pub-text-muted);
}
.pub-tournament-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px;
    background: rgba(245,158,11,0.11);
    border-top: 1px solid rgba(245,158,11,0.15);
    color: var(--pub-accent); font-weight: 700; font-size: 0.855rem;
    transition: background 0.2s;
}
.pub-tournament-card:hover .pub-tournament-cta { background: rgba(245,158,11,0.22); }
.pub-cta-arrow-t { transition: transform 0.2s; }
.pub-tournament-card:hover .pub-cta-arrow-t { transform: translateX(4px); }

/* ---- TORNEO WRAPPER ---- */
.pub-torneo-wrapper {
    max-width: 1280px; margin: 0 auto; padding: 0 28px 72px;
}

/* ---- TABS DEPORTIVOS ---- */
.pub-tabs-bar {
    display: flex; gap: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--pub-card-border);
    border-radius: 50px; padding: 4px;
    width: fit-content; margin-bottom: 26px;
    overflow-x: auto; scrollbar-width: none;
}
.pub-tabs-bar::-webkit-scrollbar { display: none; }

.pub-tab-btn {
    display: flex; align-items: center; gap: 7px;
    background: transparent; border: none;
    color: var(--pub-text-muted);
    font-size: 0.875rem; font-weight: 600;
    padding: 9px 22px; border-radius: 50px;
    cursor: pointer; transition: all 0.2s;
    white-space: nowrap; font-family: inherit;
}
.pub-tab-btn:hover { color: var(--pub-text); background: rgba(255,255,255,0.06); }
.pub-tab-btn.active { background: var(--pub-accent); color: #0a0a0a; }
.pub-tab-icon { font-size: 1rem; }

/* ---- FIXTURE: FECHA HEADER ---- */
.pub-fecha-block { margin-bottom: 32px; }
.pub-fecha-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding: 0 2px; flex-wrap: wrap; gap: 10px;
}
.pub-fecha-number { display: flex; align-items: center; gap: 12px; }
.pub-fecha-num-circle {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--pub-accent), #f97316);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; font-weight: 900; color: #0a0a0a;
    box-shadow: 0 4px 14px rgba(245,158,11,0.45); flex-shrink: 0;
}
.pub-fecha-label { font-size: 1.05rem; font-weight: 700; color: var(--pub-text); }
.pub-fecha-label small {
    font-size: 0.73rem; font-weight: 400; color: var(--pub-text-muted); display: block;
}
.pub-fecha-count {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--pub-card-border);
    border-radius: 50px; padding: 4px 14px;
    font-size: 0.75rem; font-weight: 600; color: var(--pub-text-muted);
}

/* ---- MATCH CARD ---- */
.pub-match-card {
    background: var(--pub-card-bg);
    border: 1px solid var(--pub-card-border);
    border-left: 3px solid var(--pub-card-border);
    border-radius: var(--pub-radius-lg);
    padding: 16px 20px; margin-bottom: 10px;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
}
.pub-match-card:hover { background: rgba(255,255,255,0.055); }
.pub-match-card.mc-played   { border-left-color: #22c55e; }
.pub-match-card.mc-walkover { border-left-color: #ef4444; }
.pub-match-card.mc-pending  { border-left-color: #334155; }

.pub-match-teams {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 12px; margin-bottom: 12px;
}
.pub-match-team { display: flex; align-items: center; gap: 10px; }
.pub-match-team.t-local     { flex-direction: row; }
.pub-match-team.t-visitante { flex-direction: row-reverse; text-align: right; }

.pub-match-team-name {
    font-size: 0.98rem; font-weight: 800; color: #ffffff; line-height: 1.2; letter-spacing: 0.2px;
}

.pub-match-score-center {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 72px;
}
.pub-match-score {
    font-size: 1.7rem; font-weight: 900; color: var(--pub-text);
    letter-spacing: 2px; line-height: 1;
}
.pub-match-score.no-result {
    font-size: 0.85rem; color: var(--pub-text-muted); opacity: 0.45;
    letter-spacing: normal; font-weight: 600; text-transform: lowercase; font-style: italic;
}
.pub-match-vs-label {
    font-size: 0.65rem; font-weight: 700; color: var(--pub-text-dim);
    text-transform: uppercase; letter-spacing: 1px;
}

.pub-match-footer {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
    padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06);
}
.pub-match-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.pub-match-meta-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.73rem; color: var(--pub-text-muted);
}
.pub-match-meta-icon { font-size: 0.82rem; opacity: 0.65; }
.pub-match-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.pub-zone-badge {
    background: rgba(148,163,184,0.09);
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 6px; padding: 2px 9px;
    font-size: 0.68rem; font-weight: 600; color: var(--pub-text-muted);
}
.pub-status-badge {
    border-radius: 6px; padding: 2px 9px;
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.pub-status-badge.sb-jugado {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.26);
    color: #4ade80;
}
.pub-status-badge.sb-pendiente {
    background: rgba(100,116,139,0.10);
    border: 1px solid rgba(100,116,139,0.22);
    color: var(--pub-text-dim);
}
.pub-status-badge.sb-walkover {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.26);
    color: #f87171;
}
.pub-status-badge.sb-programado {
    background: rgba(59,130,246,0.10);
    border: 1px solid rgba(59,130,246,0.22);
    color: #60a5fa;
}

/* ---- TABLA DE POSICIONES ---- */
.pub-zona-section { margin-bottom: 32px; }
.pub-zona-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.pub-zona-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--pub-accent); flex-shrink: 0;
    box-shadow: 0 0 8px rgba(245,158,11,0.5);
}
.pub-zona-name { font-size: 1.05rem; font-weight: 700; color: var(--pub-text); }

.pub-standings-wrap {
    background: var(--pub-card-bg);
    border: 1px solid var(--pub-card-border);
    border-radius: var(--pub-radius-lg);
    overflow: hidden; overflow-x: auto;
}
.pub-standings-table {
    width: 100%; border-collapse: collapse;
    min-width: 440px;
}
.pub-standings-table thead th {
    padding: 10px 12px;
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--pub-text-dim);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-align: center; white-space: nowrap;
    background: rgba(255,255,255,0.02);
}
.pub-standings-table thead th:nth-child(2) { text-align: left; }
.pub-standings-table tbody td {
    padding: 11px 12px;
    font-size: 0.875rem; color: var(--pub-text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-align: center; transition: background 0.15s;
}
.pub-standings-table tbody td:nth-child(2) {
    text-align: left; font-weight: 600; color: var(--pub-text);
}
.pub-standings-table tbody tr:hover td { background: rgba(255,255,255,0.035); }
.pub-standings-table tbody tr:last-child td { border-bottom: none; }

.pub-standings-pos { font-weight: 800; font-size: 0.92rem; }
.pub-standings-pts { font-weight: 900 !important; font-size: 1rem !important; color: var(--pub-text) !important; }

.pub-standings-table tbody tr:nth-child(1) .pub-standings-pos { color: #f59e0b; }
.pub-standings-table tbody tr:nth-child(2) .pub-standings-pos { color: #94a3b8; }
.pub-standings-table tbody tr:nth-child(3) .pub-standings-pos { color: #b87333; }

.pub-dg-pos { color: #4ade80; font-weight: 600; }
.pub-dg-neg { color: #f87171; font-weight: 600; }

/* ---- PODIO ---- */
.pub-podium {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 16px; padding: 28px 0 20px; flex-wrap: wrap;
}
.pub-podium-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    flex: 1; max-width: 180px; min-width: 100px;
}
.pub-podium-medal { font-size: 1.8rem; line-height: 1; }

.pub-podium-avatar {
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 900; border: 3px solid;
}
.pub-podium-item.p-first .pub-podium-avatar {
    width: 76px; height: 76px; font-size: 1.9rem;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-color: #f59e0b;
    box-shadow: 0 0 28px rgba(245,158,11,0.55);
    color: #0a0a0a;
}
.pub-podium-item.p-second .pub-podium-avatar {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #94a3b8, #cbd5e1);
    border-color: #94a3b8; color: #1e293b;
    box-shadow: 0 0 16px rgba(148,163,184,0.35);
}
.pub-podium-item.p-third .pub-podium-avatar {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #b87333, #d4956a);
    border-color: #b87333; color: #0a0a0a;
    box-shadow: 0 0 14px rgba(184,115,51,0.35);
}
.pub-podium-name {
    font-size: 0.85rem; font-weight: 700; color: var(--pub-text);
    text-align: center; line-height: 1.25;
}
.pub-podium-team { font-size: 0.7rem; color: var(--pub-text-muted); text-align: center; }
.pub-podium-stat { font-size: 1.1rem; font-weight: 900; color: var(--pub-accent); }
.pub-podium-stat-label {
    font-size: 0.62rem; color: var(--pub-text-dim);
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* ---- SCORERS / VALLA TABLE ---- */
.pub-scorers-wrap {
    background: var(--pub-card-bg);
    border: 1px solid var(--pub-card-border);
    border-radius: var(--pub-radius-lg);
    overflow: hidden; overflow-x: auto; margin-top: 16px;
}
.pub-scorers-table { width: 100%; border-collapse: collapse; min-width: 340px; }
.pub-scorers-table thead th {
    padding: 10px 12px; font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; color: var(--pub-text-dim);
    border-bottom: 1px solid rgba(255,255,255,0.07); text-align: center;
    background: rgba(255,255,255,0.02);
}
.pub-scorers-table thead th:nth-child(2),
.pub-scorers-table thead th:nth-child(3) { text-align: left; }
.pub-scorers-table tbody td {
    padding: 11px 12px; font-size: 0.875rem; color: var(--pub-text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.04); text-align: center;
}
.pub-scorers-table tbody td:nth-child(2) {
    text-align: left; font-weight: 600; color: var(--pub-text);
}
.pub-scorers-table tbody td:nth-child(3) { text-align: left; }
.pub-scorers-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.pub-scorers-table tbody tr:last-child td { border-bottom: none; }
.pub-scorers-stat { font-weight: 900 !important; font-size: 1rem !important; color: var(--pub-accent) !important; }
.pub-scorers-pos { font-weight: 800; font-size: 0.9rem; }

/* ---- EMPTY STATE ---- */
.pub-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 64px 24px; text-align: center; gap: 10px;
}
.pub-empty-icon { font-size: 3.2rem; opacity: 0.45; }
.pub-empty-title { font-size: 1.05rem; font-weight: 700; color: var(--pub-text-muted); }
.pub-empty-desc { font-size: 0.855rem; color: var(--pub-text-dim); max-width: 300px; line-height: 1.5; }

/* ---- GLASS CARD GENÉRICO ---- */
.pub-glass-card {
    background: var(--pub-card-bg);
    border: 1px solid var(--pub-card-border);
    border-radius: var(--pub-radius-lg);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

/* ---- TORNEO BANNER ---- */
.pub-torneo-banner {
    width: 100%; padding: 68px 28px 48px; position: relative; overflow: hidden;
}
.pub-torneo-banner::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(5,13,26,0.85) 100%);
    pointer-events: none;
}
.pub-torneo-banner-content {
    max-width: 1280px; margin: 0 auto;
    position: relative; z-index: 1;
}
.pub-torneo-banner-name {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 900; color: white; line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.pub-torneo-banner-sub {
    font-size: 0.9rem; color: rgba(255,255,255,0.72); margin-top: 7px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .pub-navbar   { padding: 0 16px; height: 60px; }
    .pub-navbar-logo { height: 36px; }
    .pub-navbar-brand-text { font-size: 1rem; }
    .pub-btn-ghost { display: none; }

    .pub-hero { padding: 52px 16px 44px; }
    .pub-hero-ball { font-size: 3.5rem; }

    .pub-org-grid, .pub-skeleton-grid { grid-template-columns: 1fr; padding: 0 16px 48px; }
    .pub-tournament-grid { grid-template-columns: 1fr; padding: 0 16px 48px; }
    .pub-torneo-wrapper { padding: 0 16px 48px; }
    .pub-section-header { padding: 0 16px; }
    .pub-breadcrumb { padding: 14px 16px 0; }
    .pub-org-banner { padding: 32px 16px 26px; }
    .pub-torneo-banner { padding: 32px 16px 26px; }
    .pub-footer { padding: 18px 16px; }

    .pub-match-team-name { font-size: 0.82rem; }
    .pub-match-score { font-size: 1.4rem; }

    .pub-tabs-bar { width: 100%; }
    .pub-podium { gap: 8px; padding: 20px 0 12px; }
    .pub-podium-item { max-width: 130px; min-width: 80px; }
    .pub-podium-item.p-first .pub-podium-avatar { width: 62px; height: 62px; font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .pub-tab-btn { padding: 7px 13px; font-size: 0.78rem; }
    .pub-tab-icon { display: none; }
    .pub-match-teams { gap: 6px; }
    .pub-match-score { font-size: 1.25rem; }
    .pub-match-team-name { font-size: 0.76rem; }
}

/* ---- PUBLIC PROGRAMACION TIME CARDS ---- */
.pub-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.pub-time-card {
    background: var(--pub-card-bg);
    border: 1px solid var(--pub-card-border);
    border-radius: var(--pub-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.pub-time-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.pub-time-card-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--pub-card-border);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pub-time-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFD54F;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pub-time-card-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pub-slot-row {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.pub-slot-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.pub-slot-cancha {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pub-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.pub-slot-teams {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
}
.pub-slot-vs {
    color: var(--pub-text-muted);
    opacity: 0.45;
    font-weight: 500;
    margin: 0 5px;
    font-style: italic;
    text-transform: lowercase;
}
.pub-slot-category {
    font-size: 0.7rem;
    font-weight: 500;
    color: #3b82f6;
    margin-top: 2px;
}
.pub-slot-libre {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pub-text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}
.pub-time-card-date-badge {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--pub-card-border);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pub-text-muted);
}

/* Soccer Ball Loader styling from MagnusProde */
@keyframes spin-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float-ball {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-shadow {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(0.7); opacity: 0.15; }
}

.soccer-ball-loader-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90px;
    width: 90px;
    margin-bottom: 8px;
}

.soccer-ball-floating-wrapper {
    animation: float-ball 2.2s ease-in-out infinite;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.soccer-ball-loader-img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    animation: spin-loader 4s linear infinite;
}

.soccer-ball-loader-shadow {
    position: absolute;
    bottom: -6px;
    width: 50px;
    height: 5px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    filter: blur(3px);
    animation: pulse-shadow 2.2s ease-in-out infinite;
    z-index: 1;
}

/* =========================================================
   RESPONSIVE OVERLAY SIDEBAR & MOBILE LAYOUT OPTIMIZATIONS
   ========================================================= */

@media (max-width: 959.98px) {
    .ms-app-body {
        position: relative;
    }

    .ms-app-sidebar {
        position: fixed;
        top: var(--ms-header-height);
        left: 0;
        bottom: 0;
        z-index: 1000;
        width: 280px !important;
        min-width: 280px !important;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.5);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .ms-drawer-backdrop {
        position: fixed;
        top: var(--ms-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 999;
    }

    .ms-app-content {
        padding: 12px !important; /* Maximizar espacio en celular */
    }

    .ms-app-header__logo {
        height: 42px !important;
        transform: scale(1.05) !important;
    }
}

/* =========================================================
   PUBLIC PORTAL MOBILE FIXTURE ROW & STICKY BOTTOM TABS
   ========================================================= */

@media (max-width: 767.98px) {
    .pub-tabs-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: #0d1624 !important;
        display: flex;
        justify-content: space-around;
        padding: 6px 0 !important;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
    }

    .pub-tab-btn {
        flex-direction: column;
        align-items: center;
        gap: 3px !important;
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
        border-radius: 6px !important;
        color: rgba(255, 255, 255, 0.6) !important;
        background: transparent !important;
        flex: 1;
    }

    .pub-tab-btn.active {
        color: #ffb300 !important; /* Elegant gold highlight */
        font-weight: 700;
    }

    .pub-tab-icon {
        font-size: 1.2rem !important;
    }

    .pub-torneo-wrapper {
        padding-bottom: 90px !important; /* Evita solapamiento del bottom sticky bar */
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

.pub-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
}
.pub-match-row:last-child {
    border-bottom: none;
}

.pub-match-col-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}

.pub-match-col-team.local {
    justify-content: flex-end;
    text-align: right;
}

.pub-match-col-team.visitante {
    justify-content: flex-start;
    text-align: left;
}

.pub-team-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pub-team-logo-container {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    flex-shrink: 0;
    padding: 2px;
}

.pub-team-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pub-team-logo-placeholder {
    font-size: 0.95rem;
}

.pub-match-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    flex-shrink: 0;
    text-align: center;
    padding: 0 4px;
}

.pub-match-status-label {
    font-size: 0.58rem;
    font-weight: 800;
    color: #4caf50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.pub-match-score-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
}

.pub-score-val {
    min-width: 16px;
}

.pub-score-divider {
    color: rgba(255, 255, 255, 0.3);
}

.pub-match-date {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
}

.pub-match-time {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
}

.pub-match-vs {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
}

/* Buscador de ligas en Home */
.ms-search-input {
    background: rgba(255, 255, 255, 0.025);
    border-radius: 16px !important;
}
.ms-search-input fieldset {
    border-radius: 16px !important;
}
