body { overflow-x: hidden; }

.embalse-page {
    --embalse-ink: #12324a;
    --embalse-muted: #5c7180;
    --embalse-blue: #087ea4;
    --embalse-aqua: #36bfd1;
    --embalse-pale: #eaf7f8;
    --embalse-line: rgba(17, 66, 91, .14);
    background: transparent;
    color: var(--embalse-ink);
    padding: 0;
}

.embalse-page *, .embalse-page *::before, .embalse-page *::after { box-sizing: border-box; }

.embalse-grid,
.embalse-notes,
.embalse-alert {
    margin-left: auto;
    margin-right: auto;
    max-width: 1120px;
}

.embalse-page-title {
    align-items: center;
    background-position: center 70%;
    display: flex;
    justify-content: center;
    min-height: clamp(240px, 27vw, 430px);
}

@media (min-width: 768px) and (max-width: 1199px) {
    .embalse-page-title .page-title-text { transform: translateY(54px); }
}
.embalse-intro { margin: 0 auto 36px; max-width: 760px; }
.embalse-eyebrow { color: var(--embalse-blue); font-size: 12px; font-weight: 700; letter-spacing: .16em; margin: 0 0 10px; text-transform: uppercase; }
.embalse-page .embalse-intro h3 { color: var(--embalse-ink) !important; margin-bottom: 14px; }
.embalse-lead { color: var(--embalse-muted); font-size: 16px; line-height: 1.65; margin: 0 auto; max-width: 650px; }
.embalse-intro__level { align-items: baseline; border-bottom: 1px solid var(--embalse-line); border-top: 1px solid var(--embalse-line); display: inline-flex; gap: 9px; margin-top: 24px; padding: 13px 28px; }
.embalse-intro__level strong { color: var(--embalse-blue); font-family: Montserrat, sans-serif; font-size: 30px; line-height: 1; }
.embalse-intro__level span { color: var(--embalse-muted); font-size: 13px; }

.embalse-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 28px; }
.embalse-card { background: #fff; border: 1px solid var(--embalse-line); border-radius: 20px; box-shadow: 0 10px 30px rgba(24, 70, 91, .07); min-width: 0; padding: 30px; }
.embalse-card--primary { background: linear-gradient(145deg, #fff, var(--embalse-pale)); }
.embalse-card--context { grid-column: 1 / -1; }
.embalse-card__heading { align-items: center; color: var(--embalse-muted); display: flex; font-size: 12px; font-weight: 700; justify-content: space-between; letter-spacing: .06em; text-transform: uppercase; }
.embalse-status { align-items: center; color: #087a6c; display: inline-flex; gap: 8px; }
.embalse-status i { background: #10b59d; border-radius: 50%; box-shadow: 0 0 0 5px rgba(16,181,157,.13); height: 8px; width: 8px; }
.embalse-card__number { color: var(--embalse-ink); font-family: Montserrat, sans-serif; font-size: clamp(42px, 6vw, 68px); font-weight: 700; letter-spacing: -.055em; line-height: 1; margin: 32px 0 8px; }
.embalse-card__number small { font-size: .36em; letter-spacing: 0; }
.embalse-card__caption { color: var(--embalse-muted); margin: 0 0 25px; }
.embalse-card__date { border-top: 1px solid var(--embalse-line); color: var(--embalse-muted); font-size: 12px; margin: 24px 0 0; padding-top: 16px; }
.embalse-progress { background: #dcecef; border-radius: 999px; height: 12px; overflow: hidden; }
.embalse-progress span { background: linear-gradient(90deg, var(--embalse-blue), var(--embalse-aqua)); border-radius: inherit; display: block; height: 100%; }
.embalse-weekly { align-items: baseline; background: #f3f7f8; border-radius: 12px; display: flex; gap: 8px; padding: 14px 16px; }
.embalse-weekly.is-up { color: #087a55; }
.embalse-weekly.is-down { color: #a54c35; }
.embalse-weekly small { color: var(--embalse-muted); }
.embalse-card__kicker { color: var(--embalse-blue); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.embalse-page .embalse-card h2 { color: var(--embalse-ink) !important; font-size: 24px; margin: 8px 0 20px; }
.embalse-card dl { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); margin: 0; }
.embalse-card dl div { border-left: 3px solid var(--embalse-aqua); padding-left: 16px; }
.embalse-card dt { font-weight: 700; margin-bottom: 5px; }
.embalse-card dd { color: var(--embalse-muted); line-height: 1.55; margin: 0; }

.embalse-alert { align-items: flex-start; background: #fff; border: 1px solid var(--embalse-line); border-radius: 18px; display: flex; gap: 18px; margin-top: 28px; padding: 28px; }
.embalse-alert > span { align-items: center; background: var(--embalse-pale); border-radius: 50%; color: var(--embalse-blue); display: flex; flex: 0 0 38px; font-weight: 700; height: 38px; justify-content: center; }
.embalse-page .embalse-alert h2 { color: var(--embalse-ink) !important; font-size: 20px; margin: 0 0 5px; }
.embalse-alert p { color: var(--embalse-muted); margin: 0; }

.embalse-notes { align-items: end; border-top: 1px solid var(--embalse-line); display: grid; gap: 30px; grid-template-columns: 1fr auto; margin-top: 38px; padding-top: 28px; }
.embalse-page .embalse-notes h2 { color: var(--embalse-ink) !important; font-size: 18px; margin: 0 0 8px; }
.embalse-notes p { color: var(--embalse-muted); font-size: 13px; line-height: 1.65; margin: 0; }
.embalse-notes a { color: var(--embalse-blue); text-decoration: underline; }
.embalse-consulted { white-space: nowrap; }

.embalse-history {
    margin: 54px auto 0;
    max-width: 1120px;
}

.embalse-daily {
    margin: 54px auto 0;
    max-width: 1120px;
}

.embalse-daily__summary { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; }
.embalse-daily__summary article { background: #fff; border: 1px solid var(--embalse-line); border-radius: 14px; padding: 18px; }
.embalse-daily__summary span { color: var(--embalse-muted); display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; margin-bottom: 7px; text-transform: uppercase; }
.embalse-daily__summary strong { color: var(--embalse-ink); font-family: Montserrat, sans-serif; font-size: 18px; }
.embalse-daily__summary strong.is-up { color: #087a55; }
.embalse-daily__summary strong.is-down { color: #a54c35; }

.embalse-history__heading {
    align-items: end;
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.embalse-page .embalse-history__heading h2 {
    color: var(--embalse-ink) !important;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -.035em;
    margin: 5px 0 8px;
}

.embalse-history__heading p { color: var(--embalse-muted); margin: 0; }
.embalse-history__metrics { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.embalse-history__metrics span { align-items: center; background: #fff; border: 1px solid var(--embalse-line); border-radius: 999px; color: var(--embalse-muted); display: inline-flex; font-size: 12px; gap: 6px; padding: 8px 12px; white-space: nowrap; }
.embalse-history__metrics strong { color: var(--embalse-ink); }
.embalse-history__metrics i { border-radius: 50%; display: inline-block; height: 8px; width: 8px; }
.embalse-history__metrics .is-current { background: #11a9bd; }
.embalse-history__metrics .is-previous { background: #607d8b; }
.embalse-history__metrics .is-average { background: #e1a340; }

.embalse-charts { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr); }
.embalse-charts--daily { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.embalse-chart-card { background: #fff; border: 1px solid var(--embalse-line); border-radius: 20px; box-shadow: 0 10px 30px rgba(24, 70, 91, .07); min-width: 0; padding: 26px; }
.embalse-chart-card__heading { align-items: start; display: flex; gap: 20px; justify-content: space-between; }
.embalse-page .embalse-chart-card h3 { color: var(--embalse-ink) !important; font-size: 18px; margin: 0 0 5px; }
.embalse-chart-card__heading p { color: var(--embalse-muted); font-size: 12px; line-height: 1.45; margin: 0; }
.embalse-chart-card__unit { background: var(--embalse-pale); border-radius: 8px; color: var(--embalse-blue); flex: none; font-size: 11px; font-weight: 700; padding: 7px 9px; }
.embalse-chart-wrap { height: 340px; margin-top: 24px; position: relative; }
.embalse-chart-wrap--bars { height: 340px; }
.embalse-chart-wrap--daily { height: 320px; }
.embalse-history__metrics .is-up strong { color: #087a55; }
.embalse-history__metrics .is-down strong { color: #a54c35; }

@media (max-width: 760px) {
    .embalse-section { padding-left: 2px; padding-right: 2px; }
    .embalse-intro { margin-bottom: 28px; }
    .embalse-grid { grid-template-columns: 1fr; }
    .embalse-card--context { grid-column: auto; }
    .embalse-card dl, .embalse-notes { grid-template-columns: 1fr; }
    .embalse-history__heading { align-items: start; flex-direction: column; }
    .embalse-history__metrics { justify-content: flex-start; }
    .embalse-charts { grid-template-columns: 1fr; }
    .embalse-daily__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .embalse-chart-card { padding: 20px 16px; }
    .embalse-chart-wrap, .embalse-chart-wrap--bars, .embalse-chart-wrap--daily { height: 300px; }
    .embalse-card { padding: 24px; }
    .embalse-consulted { white-space: normal; }
}

@media (prefers-color-scheme: dark) {
    .embalse-page { --embalse-ink: #e7f5f7; --embalse-muted: #a9bdc4; --embalse-line: rgba(190, 228, 235, .15); background: #0f181d; }
    .embalse-card, .embalse-alert { background: #16252c; }
    .embalse-card--primary { background: linear-gradient(145deg, #16252c, #11333c); }
    .embalse-weekly { background: #102128; }
    .embalse-history__metrics span, .embalse-chart-card, .embalse-daily__summary article { background: #16252c; }
}

@media (max-width: 430px) {
    .embalse-daily__summary { grid-template-columns: 1fr; }
}
