
/* =========================================================
   NAVEGACIĂ“N PRINCIPAL RESPONSIVE
   Cuatro columnas en escritorio; se adapta a mĂˇs pestaĂ±as
   creando automĂˇticamente nuevas filas.
   ========================================================= */
.nav-tabs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
}

.nav-tabs-grid .nav-tab {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    min-height: 2.75rem;
}

@media (min-width: 640px) {
    .nav-tabs-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.625rem;
    }
}

@media (min-width: 1024px) {
    .nav-tabs-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

body { font-family: 'Inter', sans-serif; }
        .glass-panel {
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #0f172a;
        }
        ::-webkit-scrollbar-thumb {
            background: #334155;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #10b981;
        }
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }
        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        /* Grid Memory Matrix Cell Styles */
        .matrix-cell {
            transition: all 0.2s ease;
        }
        .matrix-cell.active {
            background-color: #10b981 !important;
            box-shadow: 0 0 15px #10b981;
        }
        .matrix-cell.wrong {
            background-color: #ef4444 !important;
            box-shadow: 0 0 15px #ef4444;
        }


/* UNIVERSO CHAPĂŤN â€” HEADER Y FOOTER RESPONSIVE. AĂ±adir al FINAL de style.css */
.uc-brand-row{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 0}
.uc-brand{display:flex;align-items:center;gap:.85rem;min-width:0;max-width:72%;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}
.uc-brand-logo{display:block;width:118px;height:74px;flex:0 0 auto;object-fit:contain;object-position:center;border-radius:.5rem;background:#fff}
.uc-brand-copy{display:flex;flex-direction:column;min-width:0;gap:.25rem}
.uc-brand-title{color:#f8fafc;font-size:clamp(1.05rem,2vw,1.45rem);line-height:1.15;font-weight:800;letter-spacing:-.035em;white-space:nowrap}
.uc-brand-tagline{color:#94a3b8;font-size:.64rem;line-height:1.45;font-weight:600;letter-spacing:.055em;text-transform:uppercase;max-width:440px}
.uc-brand-tagline b{color:#34d399;padding:0 .12rem}
.uc-user-controls{display:flex;align-items:center;justify-content:flex-end;gap:.55rem;flex:0 0 auto;min-width:0}
.nav-tabs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;align-items:stretch}
.nav-tabs-grid .nav-tab{width:100%;min-width:0;justify-content:center;text-align:center;white-space:normal;line-height:1.25;min-height:2.75rem;gap:.45rem}
.uc-footer-inner{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:1.25rem}
.uc-footer-brand{display:inline-flex;align-items:center;justify-content:center;gap:.75rem;color:inherit;text-decoration:none}
.uc-footer-logo{display:block;width:76px;height:58px;object-fit:contain;object-position:center;background:#fff;border-radius:.5rem;padding:.15rem}
.uc-footer-brand strong{display:block;color:#e2e8f0;font-size:.95rem;line-height:1.3}
.uc-footer-brand small{display:block;margin-top:.15rem;color:#94a3b8;font-size:.72rem}
.uc-footer-copy{max-width:540px;line-height:1.7;margin:0}
.uc-footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.9rem 1.25rem}
.uc-footer-links a{color:#94a3b8;text-decoration:none}
.uc-footer-links a:hover{color:#34d399}
@media(min-width:640px){
 .nav-tabs-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.625rem}
 .uc-footer-inner{grid-template-columns:auto 1fr;justify-items:start;text-align:left}
 .uc-footer-copy{justify-self:end;text-align:right}
 .uc-footer-links{grid-column:1/-1;justify-content:center;width:100%}
}
@media(min-width:1024px){
 .nav-tabs-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}
 .uc-footer-inner{grid-template-columns:auto 1fr auto;align-items:center}
 .uc-footer-copy{justify-self:center;text-align:center}
 .uc-footer-links{grid-column:auto;justify-content:flex-end;width:auto}
}
@media(max-width:639px){
 .uc-brand-row{align-items:center;gap:.5rem;min-height:0;padding:.7rem 0}
 .uc-brand{gap:.55rem;max-width:calc(100% - 112px)}
 .uc-brand-logo{width:76px;height:60px}
 .uc-brand-title{white-space:normal;font-size:1.05rem}
 .uc-brand-tagline{font-size:.52rem;letter-spacing:.025em;line-height:1.35}
 .uc-user-controls{gap:.35rem}
 .uc-user-controls #userPseudonymDisplay{max-width:62px}
 .uc-user-controls button{padding-left:.5rem;padding-right:.5rem}
 .nav-tabs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .uc-footer-inner{padding-top:.25rem}
 .uc-footer-copy{font-size:.7rem}
}
@media(max-width:360px){
 .uc-brand{max-width:calc(100% - 100px)}
 .uc-brand-logo{width:64px;height:54px}
 .uc-brand-title{font-size:.96rem}
 .uc-brand-tagline{font-size:.47rem}
}



/* =========================================================
   UNIVERSO CHAPÍN — GRÁFICO FINANCIERO TRADINGVIEW
   ========================================================= */

.market-chart-frame {
    width: 100%;
    height: 620px;
    min-height: 620px;
    background: #05070d;
}

.market-chart-widget,
.market-chart-container {
    width: 100%;
    height: 620px;
    min-height: 620px;
}

.market-chart-container iframe {
    display: block;
    width: 100% !important;
    height: 620px !important;
    border: 0;
}

@media (max-width: 640px) {
    .market-chart-frame,
    .market-chart-widget,
    .market-chart-container {
        height: 480px;
        min-height: 480px;
    }

    .market-chart-container iframe {
        height: 480px !important;
    }
}
