.welcome-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; color: #0a3f8f; }
.welcome-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; }
.welcome-title { font-size: 2rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.welcome-sub { margin: 0; font-size: 1.18rem; color: #1f4f9d; }
.welcome-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.range-chip-wrapper { position: relative; }
.range-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #e7e7ea; color: #0a3f8f; font-weight: 700; font-size: .95rem; cursor: pointer; user-select: none; transition: background .2s ease; }
.range-chip:hover { background: #d7d7da; }
.range-menu { position: absolute; top: calc(100% + 8px); left: 0; background: white; border: 1px solid #b7b7bd; border-radius: 8px; display: none; flex-direction: column; min-width: 200px; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 10; }
.range-menu.active { display: flex; }
.range-option { padding: 10px 16px; text-decoration: none; color: #0a3f8f; font-size: .95rem; font-weight: 600; transition: background .15s ease; display: block; }
.range-option:hover { background: #f3f3f5; }
.range-option.active { background: #e7e7ea; color: #0a3f8f; font-weight: 700; }

.date-chip { color: #1f4f9d; font-size: .95rem; font-weight: 600; }

.inicio-grid { display: grid; grid-template-columns: 2.35fr .95fr; gap: 18px; align-items: stretch; }
.status-card { padding: 24px 24px; border-radius: 12px; background: #f3f3f5; border: 1px solid #b7b7bd; }
.status-card h2 { color: #0a3f8f; font-size: 2rem; margin: 0 0 14px; font-weight: 700; }
.status-layout { display: grid; grid-template-columns: 290px 1fr; gap: 20px; align-items: center; }
.status-donut {
    width: 216px;
    height: 216px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #0a3f8f;
    background: transparent;
    position: relative;
    padding: 12px;
}
.status-donut-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.status-donut-track {
    fill: none;
    stroke: #7f7f84;
    stroke-width: 8;
}
.status-donut-segment {
    fill: none;
    stroke-width: 8;
    stroke-linecap: butt;
    transition: stroke-width .15s ease;
}
.status-donut-segment:hover {
    stroke-width: 10;
}
.status-donut::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #fafafa;
}
.status-donut > div {
    position: relative;
    z-index: 1;
}
.status-donut .box { font-size: 2.1rem; line-height: 1; margin-bottom: 4px; }
.status-donut .num { font-size: 3.7rem; font-weight: 800; line-height: .95; }
.status-donut .txt { font-size: .9rem; line-height: 1.2; }
.status-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.status-item { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: start; background: transparent; border-radius: 9px; padding: 8px 12px; border: 1px solid transparent; }
.status-item.active { background: #ececee; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }
.status-item b { display: block; color: #1b3f7c; font-size: .92rem; line-height: 1.1; }
.status-item span { color: #334f83; font-size: .8rem; }
.status-item .qty { color: #1b3f7c; font-size: 1.5rem; line-height: 1; padding-left: 8px; }

.goal-card {
    padding: 22px 18px 18px;
    border-radius: 12px;
    background: #f3f3f5;
    text-align: center;
    border: 1px solid #b7b7bd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    overflow: hidden;
}
.goal-gauge {
    --gauge-w: 176px;
    --gauge-h: 152px;
    --face-size: 98px;
    --gauge-cx: 88px;
    --gauge-cy: 82px;
    width: 176px;
    height: 152px;
    position: relative;
    margin: 0 auto 4px;
    color: #d62828;
    overflow: visible;
}
.goal-gauge-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.goal-gauge-track {
    fill: none;
    stroke: #7f7f84;
    stroke-width: 7;
    stroke-linecap: round;
}
.goal-gauge-progress {
    fill: none;
    stroke: currentColor;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: var(--sat) 100;
    stroke-dashoffset: var(--sat);
    animation: gauge-fill .85s ease-out .1s forwards;
}
.goal-face {
    width: var(--face-size);
    height: var(--face-size);
    border: 2px solid #7f7f84;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5e5e62;
    font-size: 3.1rem;
    line-height: 1;
    background: #fff;
    animation: face-pop .45s ease-out both;
    position: absolute;
    left: calc(var(--gauge-cx) - (var(--face-size) / 2));
    top: calc(var(--gauge-cy) - (var(--face-size) / 2));
    transform: none;
}
.goal-gauge.mood-red,
.goal-mood-label.mood-red,
.goal-metric .n.mood-red { color: #d62828; }
.goal-gauge.mood-orange,
.goal-mood-label.mood-orange,
.goal-metric .n.mood-orange { color: #ef8e00; }
.goal-gauge.mood-green,
.goal-mood-label.mood-green,
.goal-metric .n.mood-green { color: #1b9e3e; }
.goal-title {
    color: #0a3f8f;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -.01em;
    line-height: 1.05;
    max-width: 210px;
    white-space: normal;
}
.goal-mood-label {
    margin: 0;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.goal-metric { display: flex; align-items: baseline; justify-content: center; gap: 9px; color: #1f4f9d; margin-top: 0; flex-wrap: nowrap; }
.goal-metric .n { font-size: 2.8rem; line-height: .9; font-weight: 800; }
.goal-metric .n small { font-size: 1.35rem; }
.goal-metric .t { text-align: left; max-width: none; font-size: .88rem; line-height: 1.2; white-space: nowrap; }

@keyframes gauge-fill {
    from { stroke-dashoffset: var(--sat); }
    to { stroke-dashoffset: 0; }
}

@keyframes face-pop {
    from { transform: scale(.78); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .goal-face,
    .goal-gauge-progress {
        animation: none;
        stroke-dashoffset: 0;
    }
}

.inicio-alert { background: #fff4e5; border: 1px solid #f0a840; color: #7a4800; padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; }
