:root {
    --brand-primary: #80cbc4;
    --brand-primary-strong: #4db6ac;
    --brand-bg-overlay: rgba(0, 0, 0, 0.88);
    --brand-text-soft: rgba(255, 255, 255, 0.78);
    --brand-border-soft: rgba(255, 255, 255, 0.08);
    --brand-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.22);
    --brand-panel-radius: 24px;
}

body.auth-page {
    background:
        linear-gradient(135deg, rgba(2, 14, 19, 0.88), rgba(14, 34, 41, 0.72)),
        url('../images/fondo.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.login-container {
    background: var(--brand-bg-overlay);
    border-radius: 18px;
    padding: 32px 28px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.login-container h1 {
    color: var(--brand-primary);
    font-size: 1.9rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

.login-container p {
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 24px;
}

.login-logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 150px;
}

.login-label {
    color: var(--brand-primary);
    font-weight: 600;
}

.btn-login {
    background-color: #000;
    border-color: #000;
    color: #fff;
    font-weight: 700;
}

.btn-login:hover {
    background-color: #222;
    border-color: #222;
    color: #fff;
}

.login-links {
    margin-top: 18px;
    text-align: center;
}

.login-links a {
    color: var(--brand-primary);
    text-decoration: none;
}

.login-links a:hover {
    color: var(--brand-primary-strong);
}

body.dashboard-page {
    background:
        linear-gradient(135deg, rgba(2, 14, 19, 0.92), rgba(14, 34, 41, 0.72)),
        url('../images/fondo.png') no-repeat center center fixed;
    background-size: cover;
    color: #f8f9fa;
    min-height: 100vh;
}

.dashboard-shell {
    padding: 110px 18px 40px;
}

.hero-card,
.panel-card {
    background: rgba(8, 15, 21, 0.82);
    border: 1px solid var(--brand-border-soft);
    border-radius: var(--brand-panel-radius);
    box-shadow: var(--brand-shadow-lg);
}

.hero-card {
    padding: 28px;
}

.logo-tile {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
}

.eyebrow {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(128, 203, 196, 0.92);
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-copy,
.muted-copy {
    color: var(--brand-text-soft);
}

.hero-copy {
    max-width: 700px;
}

.stat-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 16px 18px;
    height: 100%;
}

.stat-chip strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-chip strong.stat-value-wrap {
    font-size: 1.2rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.panel-card {
    padding: 24px;
    height: 100%;
}

.quick-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 22px;
    height: 100%;
}

.quick-card p {
    color: var(--brand-text-soft);
}

.progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.12);
}

.progress-bar {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-strong));
}

.list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.next-step {
    background: rgba(255, 193, 7, 0.11);
    border: 1px solid rgba(255, 193, 7, 0.28);
    color: #ffe9a9;
    border-radius: 18px;
    padding: 16px 18px;
}

.chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

.chart-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 20px;
    height: 100%;
}

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

.chart-card p {
    color: var(--brand-text-soft);
    margin-bottom: 18px;
}

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

.chart-summary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 16px;
}

.chart-summary-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.chart-summary strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1.1;
}

.quarter-chart {
    display: grid;
    gap: 14px;
}

.quarter-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 110px;
    gap: 12px;
    align-items: center;
}

.quarter-label {
    font-weight: 700;
    color: #fff;
}

.quarter-bar-shell {
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.quarter-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-strong));
    box-shadow: 0 10px 22px rgba(77, 182, 172, 0.3);
}

.quarter-value {
    text-align: right;
    font-weight: 700;
    color: #fff;
}

.quarter-meta {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

@media (max-width: 1199px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767px) {
    .chart-summary-grid {
        grid-template-columns: 1fr;
    }

    .quarter-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .quarter-value {
        text-align: left;
    }
}
