/* ==========================================================================
   Calculadora de Ahorro (unificada) — estilos de la maqueta v2 + mejoras v3.
   Prefijo .cu- para no colisionar con formulario.css / resultados.css.
   Paleta y tipografía tomadas de la maqueta de referencia.
   ========================================================================== */

:root {
    --cu-bg: #E7EAE2;
    --cu-surface: #F2F4EF;
    --cu-surface-2: #FAFBF8;
    --cu-surface-soft: #F5F6F2;

    --cu-green-900: #1E5631;   /* títulos / primario oscuro */
    --cu-green-700: #2A6B34;   /* labels / acentos */
    --cu-green-600: #2F7A3E;   /* CTA / botones */
    --cu-green-100: #DCE7DA;
    --cu-green-050: #F1F8F2;
    --cu-green-mint: #BEDBC4;
    /* Verde de "activo/seleccionado": interruptor "Con baterías" y opción de consumo elegida */
    --cu-on: var(--cu-green-600);
    --cu-on-soft: rgba(47, 122, 62, .08);
    --cu-on-ring: rgba(47, 122, 62, .25);

    --cu-ink: #2A332A;         /* texto principal */
    --cu-ink-2: #3E4B3E;
    --cu-ink-3: #4A554A;
    --cu-muted: #4D594D;       /* texto secundario (contraste >= 6:1 sobre las tarjetas) */
    --cu-muted-2: #566650;      /* notas / cursivas (>= 5:1) */
    --cu-muted-3: #5C685C;      /* rótulos pequeños y deshabilitados (>= 4,8:1) */

    --cu-border: #DCE1D6;
    --cu-border-2: #D9E0D2;
    --cu-border-3: #D5DBD2;

    --cu-accent: #F0954A;      /* naranja energía */

    --cu-warn-bg: #FDF8E4;
    --cu-warn-border: #E8CE6B;
    --cu-warn-ink: #6E540A;

    --cu-radius: 16px;
    --cu-radius-sm: 12px;
    --cu-shadow: 0 1px 3px rgba(31, 92, 46, .06), 0 6px 18px rgba(31, 92, 46, .06);
    --cu-shadow-cta: 0 2px 6px rgba(31, 92, 46, .28);
}

/* ---- Contenedor general ---------------------------------------------------- */
.cu-page {
    background: var(--cu-bg);
    min-height: 100%;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--cu-ink);
    padding: 28px 16px 64px;
}
.cu-wrap {
    max-width: 960px;
    margin: 0 auto;
}

/* ---- Encabezado ------------------------------------------------------------ */
.cu-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.cu-title {
    font-weight: 700;
    font-size: 28px;
    line-height: 1.15;
    color: var(--cu-green-900);
    margin: 0 0 8px;
}
.cu-subtitle {
    font-size: 16px;
    line-height: 1.45;
    color: var(--cu-muted);
    margin: 0;
    max-width: 620px;
}

/* ---- Tarjetas -------------------------------------------------------------- */
.cu-card {
    background: var(--cu-surface);
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius);
    box-shadow: var(--cu-shadow);
    padding: 22px 24px;
    margin-bottom: 18px;
}
/* Tarjeta de ubicación: mismo fondo que las demás tarjetas (antes era blanca). */
.cu-card--search { border-color: var(--cu-border); }
.cu-card--search .cu-card-note { margin-bottom: 14px; }
/* Separador "o" entre las dos opciones de ubicación (dirección / mapa). */
.cu-opt-sep {
    display: flex; align-items: center; gap: 12px;
    margin: 18px 0 14px; color: var(--cu-green-700); font-weight: 700; font-size: 22px; line-height: 1;
}
.cu-opt-sep::before, .cu-opt-sep::after { content: ""; flex: 1; height: 1px; background: var(--cu-border-2); }
/* Mapa como píldora: mismo alto, borde y fondo que el campo de dirección (.cu-search-input). */
.cu-acc.cu-acc--pill { border: 1.5px solid var(--cu-border-2); border-radius: 26px; background: var(--cu-surface-2); }
.cu-acc.cu-acc--pill > summary {
    box-sizing: border-box; min-height: 49px; padding: 0 18px; gap: 8px;
    justify-content: flex-start; font: 500 15px/1 'Public Sans', sans-serif; color: var(--cu-ink);
}
.cu-acc--pill .cu-pin { color: var(--cu-green-600); font-size: 16px; }
.cu-acc--pill .cu-pill-txt { flex: 1; padding: 0 0 0 8px; }
.cu-pill-caret::after { content: "▾"; color: var(--cu-green-700); font-size: 14px; }
.cu-acc--pill[open] { border-radius: var(--cu-radius); }
.cu-acc--pill[open] .cu-pill-caret::after { content: "▴"; }
.cu-acc--pill > summary:focus-visible { outline: 2px solid var(--cu-green-600); outline-offset: -2px; border-radius: 26px; }
.cu-acc--pill .cu-acc-body { padding-top: 12px; }
.cu-map-hint { font-size: 13.5px; color: var(--cu-muted); margin: 0 0 10px; }
/* Acordeón anidado dentro de una tarjeta: sin margen inferior. */
.cu-acc--inner { margin-bottom: 0; }
.cu-eyebrow {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cu-green-700);
    margin: 0 0 4px;
}
.cu-card-note {
    font-size: 14.5px;
    color: var(--cu-muted);
    margin: 0 0 16px;
}

/* ---- Barra de evaluación rápida ------------------------------------------- */
.cu-search-label {
    display: block;
    font-weight: 700;
    font-size: 15.5px;
    color: var(--cu-ink);
    margin-bottom: 10px;
}
.cu-search-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}
.cu-search-input {
    position: relative;
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    background: var(--cu-surface-2);
    border: 1.5px solid var(--cu-border-2);
    border-radius: 999px;
    padding: 0 16px;
}
.cu-search-input input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 15px 8px;
    font: 500 15px/1 'Public Sans', sans-serif;
    color: var(--cu-ink);
    outline: none;
}
/* Sin ancho mínimo intrínseco: en móvil el campo no sobrepasa la tarjeta y calza con la píldora del mapa. */
.cu-search-input, .cu-search-input input { min-width: 0; }
.cu-search-input .cu-pin { color: var(--cu-green-600); font-size: 16px; }
.cu-search-clear {
    border: 0;
    background: transparent;
    color: var(--cu-muted-3);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
}
.cu-hint {
    font-size: 14px;
    color: var(--cu-muted);
    margin: 12px 2px 0;
}

/* Mensaje bajo el buscador de dirección (dirección inválida / sin cobertura). */
/* Aviso de límite bajo un campo numérico (máximo / mínimo) */
.cu-field-msg {
    font-size: 14px;
    color: var(--cu-warn-ink);
    background: var(--cu-warn-bg);
    border: 1px solid var(--cu-warn-border);
    border-radius: var(--cu-radius-sm);
    padding: 6px 10px;
    margin: 8px 0 0;
}
.cu-field-msg[hidden] { display: none; }
.cu-search-msg {
    font-size: 14px;
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: var(--cu-radius-sm);
    padding: 8px 10px;
    margin: 10px 2px 0;
}

/* ---- Botón EVALUAR (CTA) --------------------------------------------------- */
.cu-btn-evaluar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cu-green-600);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 15px 40px;
    font: 700 15px/1 'Public Sans', sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    box-shadow: var(--cu-shadow-cta);
    cursor: pointer;
    transition: transform .06s ease, background .15s ease;
}
.cu-btn-evaluar:hover { background: #276a35; }
.cu-btn-evaluar:active { transform: translateY(1px); }
.cu-btn-evaluar:disabled {
    background: var(--cu-border-3);
    color: #fff;
    box-shadow: none;
    cursor: not-allowed;
}

/* ---- Campos de formulario -------------------------------------------------- */
.cu-field { margin-bottom: 16px; }
.cu-field:last-child { margin-bottom: 0; }
.cu-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--cu-ink);
    margin-bottom: 8px;
}
.cu-field-sub {
    font-size: 13.5px;
    color: var(--cu-muted);
    margin: 0 0 8px;
}
.cu-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cu-input,
.cu-select {
    width: 100%;
    background: var(--cu-surface-2);
    border: 1.5px solid var(--cu-border-2);
    border-radius: var(--cu-radius-sm);
    padding: 13px 14px;
    font: 500 15px/1.2 'Public Sans', sans-serif;
    color: var(--cu-ink);
    outline: none;
}
.cu-input:focus,
.cu-select:focus { border-color: var(--cu-green-600); }

/* Select nativo con la misma flecha, tamaño y posición que el desplegable propio (.cu-dd-btn) */
.cu-select-wrap { position: relative; }
.cu-select-wrap .cu-select {
    -webkit-appearance: none; appearance: none;
    padding-right: 34px; font-weight: 600; cursor: pointer; text-overflow: ellipsis;
}
.cu-select-wrap::after {
    content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: var(--cu-muted); font-size: 12px; pointer-events: none;
}

/* stepper número + unidad */
.cu-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cu-stepper .cu-input { max-width: 160px; text-align: right; }
.cu-unit { font-weight: 600; font-size: 14px; color: var(--cu-muted); }

/* Tooltip "?" */
.cu-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--cu-green-mint);
    color: var(--cu-green-900);
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    position: relative;
}
.cu-help[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: max-content;
    max-width: 260px;
    background: var(--cu-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    z-index: 20;
}

/* Valor calculado (superficie, horas E/P): rótulo arriba (.cu-field-label) y valor como texto, sin caja blanca */
.cu-calc-value {
    font-weight: 700;
    font-size: 18px;
    color: var(--cu-ink);
}
/* Precio estimado editable: caja blanca con borde sólido para indicar edición */
.cu-price-edit {
    background: #fff;
    border: 1.5px solid var(--cu-border-2);
    border-radius: var(--cu-radius-sm);
    padding: 12px 14px;
}
.cu-price-edit:focus-within { border-color: var(--cu-green-600); }
.cu-price-input-wrap {
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.cu-price-prefix {
    font-weight: 700;
    font-size: 18px;
    color: var(--cu-ink);
}
.cu-price-input {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
    font-size: 18px;
    color: var(--cu-ink);
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--cu-green-mint);
    padding: 0 0 2px;
    outline: none;
}
.cu-price-input:focus { border-bottom-color: var(--cu-green-600); }

/* ---- Acordeón avanzado ----------------------------------------------------- */
.cu-acc {
    background: var(--cu-surface-2);
    border: 1px solid var(--cu-border-2);
    border-radius: var(--cu-radius);
    margin-bottom: 18px;
    overflow: hidden;
}
.cu-acc > summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cu-acc > summary::-webkit-details-marker { display: none; }
.cu-acc-title { font-weight: 700; font-size: 15px; color: var(--cu-green-900); }
.cu-acc-desc { font-size: 13.5px; color: var(--cu-muted); margin-top: 3px; }
.cu-acc-toggle {
    flex: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .06em;
    color: var(--cu-green-700);
    background: #fff;
    border: 1px solid var(--cu-green-mint);
    border-radius: 999px;
    padding: 8px 16px;
    white-space: nowrap;
}
.cu-acc[open] .cu-acc-toggle::after { content: " ▴"; }
.cu-acc:not([open]) .cu-acc-toggle::after { content: " ▾"; }
/* Móvil: el botón "Ver detalle" baja bajo el texto para que la descripción use todo el ancho */
@media (max-width: 719px) {
    .cu-acc > summary { flex-wrap: wrap; align-items: flex-start; padding: 16px 18px; }
    .cu-acc > summary > div:first-child { flex: 1 1 100%; }
}
/* Interruptor de cabecera: "con / sin baterías" */
.cu-acc-switch {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.cu-acc-switch-label {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--cu-muted);
    white-space: nowrap;
}
.cu-acc[open] .cu-acc-switch-label { color: var(--cu-green-700); }
.cu-acc-body {
    padding: 4px 22px 22px;
    border-top: 1px solid var(--cu-border-2);
}
.cu-acc-body .cu-placeholder {
    font-size: 14px;
    color: var(--cu-muted);
    background: var(--cu-surface);
    border: 1px dashed var(--cu-border-2);
    border-radius: var(--cu-radius-sm);
    padding: 16px;
}

/* ---- Mapa ------------------------------------------------------------------ */
.cu-map {
    height: 320px;
    border-radius: var(--cu-radius-sm);
    border: 1px solid var(--cu-border-2);
    background:
        linear-gradient(135deg, #E9EDE4 0%, #DDE6D8 100%);
    position: relative;
    overflow: hidden;
}
.cu-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cu-muted-3);
    font-size: 14px;
    font-weight: 600;
}
.cu-refs {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
    font-size: 13.5px;
    color: var(--cu-muted);
}
.cu-refs .cu-ref { display: inline-flex; align-items: center; gap: 6px; }
.cu-dot { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }
.cu-dot--ubic { background: var(--cu-green-600); }
.cu-dot--transf { background: var(--cu-accent); }

/* ---- Toggle eólico --------------------------------------------------------- */
.cu-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--cu-ink-3);
}
.cu-switch {
    position: relative;
    width: 42px;
    height: 24px;
    background: var(--cu-border-3);
    border-radius: 999px;
    cursor: pointer;
    flex: none;
    transition: background .15s ease;
}
.cu-switch::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 999px;
    transition: transform .15s ease;
}
.cu-switch.is-on { background: var(--cu-on); }
.cu-switch.is-on::after { transform: translateX(18px); }

/* ---- Barra de navegación / pie -------------------------------------------- */
.cu-footbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 22px;
    flex-wrap: wrap;
}
/* Aviso: hay cambios sin reevaluar (tras "Ajustar datos") */
.cu-reeval-note {
    margin: 22px 0 0;
    padding: 10px 16px;
    background: var(--cu-warn-bg);
    border: 1px solid #EAD9A0;
    border-radius: 10px;
    color: #6E540A;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}
.cu-btn-ghost {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .04em;
    color: var(--cu-muted);
    background: transparent;
    border: 1px solid var(--cu-border-2);
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    text-decoration: none;
}
.cu-btn-ghost:hover { color: var(--cu-green-900); border-color: var(--cu-green-mint); }

/* ---- Nota de asistente (placeholder Fase 1) -------------------------------- */
.cu-note-soft {
    font-size: 13.5px;
    color: var(--cu-muted-2);
    font-style: italic;
    margin: 6px 0 0;
    padding: 0;
    text-align: left;
    text-indent: 0;
}
/* Notas al pie de la comparativa: misma sangría izquierda en pantalla y en el PDF. */
.cu-card > .cu-note-soft { margin-left: 0; padding-left: 0; }
.cu-note-soft .cu-help { margin-left: 6px; vertical-align: middle; font-style: normal; }
.cu-note-soft .cu-help[data-tip]:hover::after { left: auto; right: -8px; transform: none; }

/* ==========================================================================
   PANTALLA 2 — RESULTADOS
   ========================================================================== */

/* ---- Banner separador Formulario / Resultados ----------------------------- */
.cu-resultados-banner {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--cu-green-700);
    color: #fff;
    border-radius: var(--cu-radius);
    padding: 14px 22px;
    margin-bottom: 16px;
    box-shadow: var(--cu-shadow);
}
.cu-resultados-banner-eyebrow {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.cu-resultados-banner-sub {
    font-size: 14.5px;
    opacity: 1;
}

/* ---- Hero de ahorro / recuperación ---------------------------------------- */
.cu-hero {
    background: linear-gradient(135deg, #E9F3EA 0%, #DCE7DA 100%);
    border: 1px solid var(--cu-green-mint);
    border-radius: var(--cu-radius);
    box-shadow: var(--cu-shadow);
    padding: 26px 28px;
    margin-bottom: 18px;
}
.cu-hero-eyebrow {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cu-green-700);
    margin: 0 0 18px;
}
.cu-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
/* Solo la recuperación: el rango de ahorro pasó a la nota de la comparativa. */
.cu-hero-grid--solo { grid-template-columns: 1fr; }
.cu-hero-stat .cu-hero-cap {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cu-ink-3);
    margin: 0 0 6px;
}
.cu-hero-value {
    font-weight: 700;
    font-size: 24px; /* igual que .cu-opt-amount (montos de ahorro) */
    line-height: 1.2;
    color: var(--cu-green-900);
    margin: 0 0 8px;
}
.cu-hero-value--years { color: var(--cu-green-600); }
.cu-hero-range { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--cu-green-700); margin: 0 0 8px; }
.cu-hero-desc { font-size: 14px; color: var(--cu-muted); margin: 0; }
.cu-hero-foot {
    margin: 20px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--cu-green-mint);
    font-size: 13.5px;
    color: var(--cu-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.cu-link {
    font-weight: 600;
    color: var(--cu-green-700);
    text-decoration: none;
    cursor: pointer;
}
.cu-link:hover { text-decoration: underline; }

/* ---- Aviso sobredimensionado ---------------------------------------------- */
.cu-warn {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--cu-warn-bg);
    border: 1px solid var(--cu-warn-border);
    border-radius: var(--cu-radius);
    padding: 18px 20px;
    margin-bottom: 18px;
}
.cu-warn-icon {
    flex: none;
    width: 26px; height: 26px;
    border-radius: 999px;
    background: var(--cu-warn-border);
    color: #5B4708;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.cu-warn-body { font-size: 14px; color: var(--cu-warn-ink); line-height: 1.5; }
.cu-warn-body strong { color: #6E540A; }
.cu-warn .cu-btn-ghost { margin-top: 10px; border-color: var(--cu-warn-border); color: var(--cu-warn-ink); }

/* ---- Comparativa de 3 alternativas ---------------------------------------- */
.cu-compare-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.cu-seg {
    display: inline-flex;
    background: var(--cu-surface-2);
    border: 1px solid var(--cu-border-2);
    border-radius: 999px;
    padding: 3px;
}
.cu-seg button {
    border: 0; background: transparent; cursor: pointer;
    font: 600 13.5px/1 'Public Sans', sans-serif;
    color: var(--cu-muted);
    padding: 8px 16px; border-radius: 999px;
}
.cu-seg button.is-active { background: #fff; color: var(--cu-green-900); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.cu-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.cu-opt {
    background: var(--cu-surface-2);
    border: 1px solid var(--cu-border-2);
    border-radius: var(--cu-radius-sm);
    padding: 18px;
    display: flex; flex-direction: column;
}
.cu-opt--best { background: var(--cu-green-050); border-color: var(--cu-green-mint); }
.cu-opt-icons { display: flex; gap: 6px; margin-bottom: 12px; }
.cu-ic {
    width: 30px; height: 30px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.cu-ic--sol { background: #FCEBD5; }
.cu-ic--bat { background: #DCEBDD; }
.cu-ic--red { background: #E6E9E3; }
.cu-ic--bat { color: var(--cu-green-900); }
.cu-ic-svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cu-opt-title { font-weight: 700; font-size: 14.5px; color: var(--cu-ink); margin: 0 0 3px; }
.cu-opt-sub { font-size: 13px; color: var(--cu-muted); margin: 0 0 14px; }
.cu-opt-metric-cap { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--cu-muted-3); margin: 0 0 2px; }
.cu-opt-amount { font-weight: 700; font-size: 24px; color: var(--cu-green-900); margin: 0 0 12px; }
.cu-opt--muted .cu-opt-amount { color: var(--cu-muted); }
.cu-bar { height: 8px; border-radius: 999px; background: var(--cu-border-2); overflow: hidden; margin-top: auto; }
.cu-bar > span { display: block; height: 100%; border-radius: 999px; }
.cu-bar--green > span { background: #2F9E6E; }
.cu-bar--yellow > span { background: #E8D33C; }
.cu-bar--grey > span { background: #C0392B; }

/* ---- Grid de resultados generales ----------------------------------------- */
.cu-gg {
    display: grid;
    /* 2 columnas: en 3 no cabe el rótulo más largo con su unidad y el sello de IVA en una línea
       ("Precio sistema fotovoltaico y baterías [$] CON IVA"). */
    grid-template-columns: repeat(2, minmax(min-content, 1fr));
    /* Divisiones con bordes de celda y no con un gap de 1px sobre fondo: con algunos niveles de
       zoom el gap se redondea a 0 y la línea desaparece; un borde siempre se dibuja. */
    background: var(--cu-surface-2);
    border: 1px solid var(--cu-border-2);
    border-radius: var(--cu-radius-sm);
    overflow: hidden;
}
.cu-gg-cell {
    background: var(--cu-surface-2); padding: 14px 16px;
    border-right: 1px solid var(--cu-border-2); border-bottom: 1px solid var(--cu-border-2);
}
/* Sin borde derecho en la 2.ª columna ni en la celda final; sin borde inferior en la última fila. */
.cu-gg-cell:nth-child(2n), .cu-gg-cell:last-child { border-right: 0; }
.cu-gg-cell:last-child, .cu-gg-cell:nth-last-child(2):nth-child(2n+1) { border-bottom: 0; }
/* La última celda ocupa el hueco de la fila incompleta. */
.cu-gg-cell:last-child:nth-child(2n+1) { grid-column: span 2; }
/* Rótulo y unidad en una sola línea, con el sello de IVA a la derecha (sin mayúsculas: en
   mayúsculas no caben); el valor va debajo, grande. */
.cu-gg-cell .cu-gg-k { font-size: 13px; font-weight: 500; color: var(--cu-muted); margin: 0 0 6px; }
.cu-gg-cell .cu-gg-n { white-space: nowrap; }
.cu-gg-cell .cu-gg-k .cu-iva-tag { margin-left: 4px; white-space: nowrap; }
.cu-gg-cell .cu-gg-v { font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--cu-green-900); margin: 0; }
/* Aclaración bajo el valor (p. ej., instalación incluida en el precio). */
.cu-gg-cell .cu-gg-note { font-size: 12.5px; line-height: 1.35; color: var(--cu-muted); margin: 4px 0 0; }
/* Unidad del rótulo: nunca se separa de la última palabra. */
.cu-gg-u { white-space: nowrap; }

/* ---- Acordeón de detalle técnico (nivel resultados) ----------------------- */
.cu-tech-sub {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cu-green-700);
    margin: 22px 0 12px;
}
.cu-tech-sub:first-child { margin-top: 4px; }
.cu-kv {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    font-size: 14px;
}
.cu-kv .cu-kv-k { color: var(--cu-muted); padding: 6px 0; border-bottom: 1px solid var(--cu-border); }
.cu-kv .cu-kv-v { color: var(--cu-ink); font-weight: 600; text-align: right; padding: 6px 0; border-bottom: 1px solid var(--cu-border); }

.cu-eval-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cu-eval-cell {
    background: var(--cu-green-050);
    border: 1px solid var(--cu-green-mint);
    border-radius: var(--cu-radius-sm);
    padding: 16px;
}
.cu-eval-cell .cu-eval-k { font-size: 12.5px; color: var(--cu-green-700); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.cu-eval-cell .cu-eval-v { font-weight: 700; font-size: 20px; color: var(--cu-green-900); }

.cu-transf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cu-transf-card { background: var(--cu-surface-2); border: 1px solid var(--cu-border-2); border-radius: var(--cu-radius-sm); padding: 14px; }
.cu-transf-badge { display: inline-block; font-size: 12px; font-weight: 700; color: #1E5631; background: var(--cu-green-mint); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.cu-transf-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3px 0; }
.cu-transf-row .k { color: var(--cu-muted); }
.cu-transf-row .v { color: var(--cu-ink); font-weight: 600; }

.cu-chart-ph {
    height: 220px;
    background: var(--cu-surface-2);
    border: 1px dashed var(--cu-border-2);
    border-radius: var(--cu-radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--cu-muted-3); font-size: 14px; font-weight: 600;
    margin-bottom: 12px;
}
.cu-chart {
    height: 360px;
    background: var(--cu-surface-2);
    border: 1px solid var(--cu-border-2);
    border-radius: var(--cu-radius-sm);
    padding: 8px;
    margin-bottom: 12px;
}
.cu-chart-note { font-size: 13.5px; color: var(--cu-muted); margin: 0 0 8px; }

/* ---- "¿Cómo lo hago realidad?" (A3) --------------------------------------- */
.cu-nextsteps {
    background: linear-gradient(135deg, #F1F8F2 0%, #E6F2E8 100%);
    border: 1px solid var(--cu-green-mint);
    border-radius: var(--cu-radius);
    box-shadow: var(--cu-shadow);
    padding: 24px 26px;
    margin-bottom: 18px;
}
.cu-nextsteps-title {
    font-weight: 700; font-size: 20px; color: var(--cu-green-900); margin: 0 0 4px;
}
.cu-nextsteps-intro { font-size: 15px; color: var(--cu-ink-3); margin: 0 0 18px; }
.cu-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cu-step { display: flex; gap: 14px; align-items: flex-start; }
.cu-step-num {
    flex: none; width: 30px; height: 30px; border-radius: 999px;
    background: var(--cu-green-600); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
}
.cu-step-h { font-weight: 700; font-size: 15px; color: var(--cu-ink); margin-bottom: 2px; }
.cu-step-d { font-size: 14.5px; color: var(--cu-muted); line-height: 1.5; }
.cu-step-link {
    display: inline-block; margin-top: 6px;
    font-weight: 600; font-size: 14px; color: var(--cu-green-700); text-decoration: underline;
}
.cu-step-link:hover { text-decoration: underline; color: var(--cu-green-900); }
/* Segundo enlace de un mismo paso: en su propia línea, bajo el primero. */
.cu-step-link + .cu-step-link { display: table; }
.cu-nextsteps-foot {
    font-size: 13px; color: var(--cu-muted-2); font-style: italic;
    margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--cu-green-mint);
}

/* ==========================================================================
   Estilos del mapa/geocoder (portados de formulario.css, que la unificada no
   carga). Sin ellos, el buscador "por coordenadas" queda siempre visible/roto.
   ========================================================================== */

/* Pane propio del pin de ubicación (map_controller.js): los panes miden 0×0 y la regla
   general img { max-width: 100% } dejaría el ícono con ancho 0 (invisible e
   inclicable). Leaflet solo exime a sus panes estándar. */
.leaflet-container .leaflet-ubicacion-pane img { max-width: none !important; max-height: none !important; }

/* Búsqueda por coordenadas (dentro del control lupa): oculta salvo expandido. */
.geocoder-coord-box { display: none; }
.leaflet-control-geocoder-expanded .geocoder-coord-box {
    display: block;
    padding: 6px 8px 8px;
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
}
.geocoder-coord-title {
    font-size: 11px; font-weight: 600; color: #6b7280;
    text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px;
}
.geocoder-coord-input {
    display: block; width: 100%; box-sizing: border-box;
    margin-bottom: 4px; padding: 4px 6px;
    border: 1px solid #ced4da; border-radius: 4px; font-size: 12px;
}
.geocoder-coord-btn {
    width: 100%; padding: 4px 6px;
    background: var(--main-accent-color, var(--cu-green-600));
    color: #fff; border: none; border-radius: 4px; font-size: 12px; cursor: pointer;
}
.geocoder-coord-error { margin-top: 4px; color: #b91c1c; font-size: 11px; font-weight: 600; }

/* Simbología de marcadores del mapa */
.map-symbology {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 10px; border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    font-size: 12px; line-height: 1.4; color: #333;
}
.map-symbology-title {
    font-weight: 700; font-size: 11px; text-transform: uppercase;
    letter-spacing: .03em; margin-bottom: 4px; color: #555;
}
.map-symbology-item { display: flex; align-items: center; gap: 6px; }
.map-symbology .sym-dot {
    display: inline-block; width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); flex-shrink: 0;
}
.map-symbology .sym-selected { background: #2a81cb; }
.map-symbology .sym-green    { background: #22c55e; }
.map-symbology .sym-red      { background: #ef4444; }
.map-symbology .map-symbology-nota { font-style: italic; color: #6b7280; }

/* ---- Barra de navegación de resultados ------------------------------------ */
.cu-btn-pdf {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 13px; letter-spacing: .04em;
    color: #fff; background: var(--cu-green-600);
    border: 0; border-radius: 999px; padding: 12px 24px;
    box-shadow: var(--cu-shadow-cta); cursor: pointer;
}
.cu-btn-pdf:hover { background: #276a35; }

/* ---- Dropdown de tarifa (con badges de categoría) ------------------------- */
.cu-dd { position: relative; }
.cu-dd-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--cu-surface-2);
    border: 1.5px solid var(--cu-border-2);
    border-radius: var(--cu-radius-sm);
    padding: 13px 14px;
    font: 600 15px/1.2 'Public Sans', sans-serif;
    color: var(--cu-ink);
    cursor: pointer;
    text-align: left;
}
.cu-dd-btn:disabled { color: var(--cu-muted-3); cursor: not-allowed; }
.cu-dd.is-open .cu-dd-btn { border-color: var(--cu-green-600); }
.cu-dd-caret { color: var(--cu-muted); font-size: 12px; flex: none; }
.cu-dd-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px); left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--cu-border-2);
    border-radius: var(--cu-radius-sm);
    box-shadow: 0 8px 24px rgba(31, 92, 46, .12);
    padding: 6px;
    z-index: 30;
    max-height: 280px; overflow: auto;
}
.cu-dd.is-open .cu-dd-menu { display: block; }
.cu-tarifa-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
}
.cu-tarifa-item:hover { background: var(--cu-green-050); }
.cu-tarifa-item.is-sel { background: var(--cu-green-050); }
.cu-tarifa-id { font-weight: 700; font-size: 14px; color: var(--cu-green-900); }
.cu-badge {
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    border-radius: 999px; padding: 3px 10px;
}
/* Informe PDF: mientras se captura, el contenedor lleva .cu-pdf-mode. Se ocultan los
   controles y textos de interacción ([data-pdf-hide]) y se muestran los bloques que
   solo tienen sentido impresos (.cu-pdf-only). */
.cu-pdf-only { display: none; }
.cu-pdf-mode .cu-pdf-only { display: block; }
.cu-pdf-mode [data-pdf-hide] { display: none !important; }
/* Tabla clave-valor en dos pares por fila (bloque compacto del informe). */
.cu-kv--2col { grid-template-columns: 1fr auto 1fr auto; column-gap: 28px; margin-top: 10px; }
/* Informe PDF compacto: el detalle (VAN + configuración) + transformadores + mapa deben
   caber en la página 2. Solo aplica mientras se captura (.cu-pdf-mode). */
.cu-pdf-mode .cu-acc-body { padding: 0 18px 12px; }
.cu-pdf-mode .cu-tech-sub { margin: 12px 0 8px; }
.cu-pdf-mode .cu-kv { gap: 0 16px; font-size: 12.5px; }
.cu-pdf-mode .cu-kv .cu-kv-k, .cu-pdf-mode .cu-kv .cu-kv-v { padding: 3px 0; }
.cu-pdf-mode .cu-eval-grid { gap: 8px; }
.cu-pdf-mode .cu-eval-cell { padding: 8px 12px; }
.cu-pdf-mode .cu-transf-map { margin-top: 8px; }
.cu-pdf-mode .cu-transf-map img { max-width: 400px; }

/* Etiqueta "IVA incluido": acompaña a todo monto en pesos que lo incluye. */
.cu-iva-tag {
    display: inline-block; vertical-align: middle;
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    line-height: 1.4; white-space: nowrap;
    border-radius: 999px; padding: 2px 9px;
    background: #FBF1CF; color: #6E540A;
}
.cu-badge--residencial { background: #DCEBDD; color: #2A6B34; }
.cu-badge--comercial   { background: #FBF1CF; color: #6E540A; }
.cu-badge--industrial  { background: #F6DCDA; color: #A32222; }
.cu-badge--otra        { background: #E6E9E3; color: #4D594D; }

/* ---- Modal (nombre de proyecto antes del PDF) ----------------------------- */
.cu-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(30, 42, 30, .45);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.cu-modal[hidden] { display: none; }
.cu-modal-box {
    background: #fff;
    border-radius: var(--cu-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    padding: 24px 26px;
    width: 100%; max-width: 420px;
}
.cu-modal-title {
    font-weight: 700; font-size: 19px; color: var(--cu-green-900); margin: 0 0 6px;
}
.cu-modal-note { font-size: 14px; color: var(--cu-muted); margin: 0 0 14px; }
.cu-modal-actions {
    display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px;
}

/* ---- Responsivo ------------------------------------------------------------ */
/* Resultados generales: 1 columna cuando en 2 no cabe el rótulo más largo con su sello. */
@media (max-width: 860px) {
    .cu-gg { grid-template-columns: 1fr; }
    .cu-gg-cell:last-child:nth-child(n) { grid-column: auto; }
    .cu-gg-cell { border-right: 0; }
    .cu-gg-cell:nth-last-child(2):nth-child(2n+1) { border-bottom: 1px solid var(--cu-border-2); }
}
/* Celular: menos relleno para que el rótulo más largo quepa en una línea. */
@media (max-width: 480px) {
    .cu-card:has(> .cu-gg) { padding-left: 16px; padding-right: 16px; }
    .cu-gg-cell { padding: 12px; }
    .cu-gg-cell .cu-gg-k { font-size: 12.5px; }
    .cu-gg-cell .cu-gg-k .cu-iva-tag { font-size: 10px; padding: 1px 6px; letter-spacing: .02em; }
}
/* Celulares muy angostos: el rótulo puede partirse antes de salirse de la celda. */
@media (max-width: 389px) {
    .cu-gg-cell .cu-gg-n { white-space: normal; }
}
@media (max-width: 760px) {
    .cu-compare-grid, .cu-gg, .cu-eval-grid, .cu-transf { grid-template-columns: 1fr; }
    .cu-gg-cell:last-child:nth-child(n) { grid-column: auto; }
}
@media (max-width: 640px) {
    .cu-header { flex-direction: column; }
    .cu-grid-2 { grid-template-columns: 1fr; }
    .cu-hero-grid { grid-template-columns: 1fr; }
    .cu-title { font-size: 24px; }
    .cu-btn-evaluar { width: 100%; }
    .cu-hero-value { font-size: 24px; }
}

/* ==========================================================================
   Editor de perfiles de consumo (acordeón). Portado desde formulario.css
   (residencial avanzada) para reutilizar graphs_controller.js sin cambios.
   Usa las variables globales de styles.css (--main-accent-color, etc.).
   Clases sin prefijo cu- porque son las que espera el controlador compartido.
   ========================================================================== */

/* Botón "Aplicar" (reutiliza el estilo del botón principal) */
.boton_calcular, .btn.boton_calcular, button.boton_calcular {
  background: var(--main-accent-color) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  height: 46px !important;
  padding: 0 28px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(54, 123, 34, 0.25) !important;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition) !important;
  cursor: pointer;
}
.boton_calcular:hover, .btn.boton_calcular:hover, button.boton_calcular:hover {
  background: var(--accent-deep) !important;
  box-shadow: 0 4px 12px rgba(54, 123, 34, 0.35) !important;
  transform: translateY(-1px);
}

/* Selector de período: control segmentado tipo pill */
.selector-periodo {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: #f1f3f4;
}
.btn.boton_calcular.boton-periodo {
  background: transparent !important;
  color: #474d52 !important;
  border: none !important;
  box-shadow: none !important;
  height: auto !important;
  padding: 6px 16px !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  border-radius: 999px !important;
  transition: background .18s ease-in-out, color .18s ease-in-out, box-shadow .18s ease-in-out;
}
.btn.boton_calcular.boton-periodo:not(.periodo-disabled):not(.active):hover {
  background: transparent !important;
  color: var(--main-accent-color) !important;
  box-shadow: none !important;
  transform: none !important;
}
.btn.boton_calcular.boton-periodo.active {
  background: var(--main-accent-color) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(54,123,34,0.3) !important;
}
.btn.boton_calcular.boton-periodo.periodo-disabled,
.btn.boton_calcular.boton-periodo:disabled {
  background: transparent !important;
  color: #b5bcc2 !important;
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Input de promedio + unidad kWh */
.promedio-input-wrap { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.promedio-input-unidad { font-size: .9rem; color: #4d545a; }

/* Tarjeta que envuelve barra (switch + selector) + gráfico */
.consumo-card { border: 1px solid #e3e6ea; border-radius: 10px; overflow: hidden; }
.consumo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  gap: 16px;
  padding: 12px 16px;
  background: #fafbfc;
  border-bottom: 1px solid #eceff2;
}
.consumo-card-body { padding: 16px 16px 12px; }
/* Bajo el subtítulo de la opción 2: mismo tamaño y color de texto secundario que la opción 1 */
.consumo-modificar-hint { margin: 0 0 12px; font-size: 13.5px; line-height: 1.3; color: var(--cu-muted); }
.consumo-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.consumo-chart-titulo { margin: 0; font-size: .98rem; font-weight: 700; color: #1f2328; }
.consumo-chart-hint { font-size: .82rem; color: #596066; }
.graficos_consumo_formulario { width: 100%; min-height: 300px; }

/* Panel de ingreso manual de consumo mensual */
.consumo-mensual-panel {
  margin-top: 8px;
  padding: 20px 22px 22px;
  border: 1px solid #e4e7e1;
  border-radius: 12px;
  background: var(--surface, #fff);
  box-shadow: 0 2px 10px rgba(31,35,40,0.05);
  max-width: 560px;
}
.consumo-mensual-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.consumo-mensual-titulo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #1f2328);
  letter-spacing: 0.2px;
  text-transform: none;
}
.consumo-mensual-unidad { font-size: 13.5px; color: #444; }
.consumo-mensual-unidad-kwh { font-weight: 600; color: var(--main-accent-color); }
.consumo-mensual-tablas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}
.consumo-mensual-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.consumo-mensual-tabla th {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--main-accent-color);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 2px solid var(--main-accent-color);
  padding: 0 0 8px 10px;
  text-align: left;
}
.consumo-mensual-tabla th.col-kwh { text-align: right; padding: 0 10px 8px 0; }
.consumo-mensual-tabla tbody tr:nth-child(even) { background: rgb(250,251,249); }
.consumo-mensual-tabla td {
  padding: 9px 0 9px 10px;
  color: var(--text, #1f2328);
  font-weight: 500;
  border-bottom: 1px solid rgb(238,240,236);
}
.consumo-mensual-tabla td:last-child { padding: 6px 10px 6px 0; text-align: right; }
.consumo-mensual-tabla input.cm-input {
  width: 78px;
  text-align: right;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #1f2328);
  border: 1px solid #dce0d8;
  border-radius: 6px;
  padding: 5px 8px;
  outline: none;
  transition: border-color .15s;
}
.consumo-mensual-tabla input.cm-input:focus { border-color: var(--main-accent-color); }
.cm-input::-webkit-outer-spin-button,
.cm-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cm-input[type=number] { -moz-appearance: textfield; }
.consumo-mensual-total {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgb(238,240,236);
}
.consumo-mensual-total-label { font-size: 13.5px; color: #444; font-weight: 500; }
.consumo-mensual-total-valor { font-size: 16px; font-weight: 700; color: var(--text, #1f2328); }
.consumo-mensual-total-kwh { font-size: 12.5px; font-weight: 600; color: #444; }
.consumo-mensual-acciones { margin-top: 16px; text-align: right; }
@media (max-width: 480px) {
  .consumo-mensual-tablas { grid-template-columns: 1fr; }
}

/* Tarjeta + switch de modo de promedio */
.promedio-modo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  margin: 2px 0 14px;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  background: #fafbfa;
  transition: border-color .15s ease-in-out, background .15s ease-in-out;
}
/* Móvil: el campo de kWh baja a su propia línea para no desbordar la tarjeta. */
@media (max-width: 560px) {
  .promedio-modo-card { flex-wrap: wrap; }
  .promedio-modo-textos { flex: 1 1 0; min-width: 0; }
  .promedio-modo-card .promedio-input-wrap { flex-basis: 100%; margin-left: 0; }
}
.promedio-modo-card.activo,
.consumo-card:has(#toggle_opcion_mensual.activo) {
  border-color: var(--cu-on);
  background: var(--cu-on-soft);
}
.consumo-card { transition: border-color .15s ease-in-out, background .15s ease-in-out; }
.promedio-switch {
  position: relative;
  box-sizing: border-box;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #c7ccd1;
  border-radius: 24px;
  background: #e9ebed;
  cursor: pointer;
  transition: background .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.promedio-switch.activo {
  background: var(--cu-on);
  border-color: var(--cu-on);
  box-shadow: 0 0 0 3px var(--cu-on-ring);
}
.promedio-switch-thumb {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: left .15s ease-in-out;
}
.promedio-switch.activo .promedio-switch-thumb { left: 23px; }
.promedio-modo-textos { display: flex; flex-direction: column; gap: 3px; }
.promedio-modo-label {
  font-size: 14.4px;
  font-weight: 600;
  color: var(--text, #1f2328);
  cursor: pointer;
  text-transform: none;
}
.promedio-modo-hint-linea { font-size: 13.5px; color: #474d52; line-height: 1.3; }
.promedio-modo-card #load {
  width: 90px;
  height: 40px;
  flex: 0 0 auto;
  align-self: center;
  border: 1px solid #c7ccd1;
  border-radius: 8px;
  padding: 0 10px;
  text-align: right;
}
#load.promedio-derivado {
  background: #f1f3f4 !important;
  color: #474d52 !important;
  border-color: #dfe3e6 !important;
  text-align: center;
  cursor: not-allowed;
}

/* Botón de ayuda "?" */
button.boton_ayuda {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0 !important;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  color: var(--main-accent-color) !important;
  background: var(--accent-soft) !important;
  border: 1.5px solid var(--main-accent-color) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  cursor: help;
  flex-shrink: 0;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none !important;
}
.consumo-opcion2-subtitulo button.boton_ayuda {
  width: 18px;
  height: 18px;
  color: #4d545a !important;
  background: #f1f3f4 !important;
  border: none !important;
  font-size: .72rem;
}

/* Selector Opción 1 / Opción 2 */
.consumo-opcion-titulo {
  margin: 16px 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2328;
}
.consumo-opcion2-subtitulo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #444;
}
.consumo-opcion2-switch { display: flex; align-items: center; gap: 10px; }

/* Mini-mapa estático (ubicación + transformadores) en el detalle técnico y el PDF: centrado */
.cu-transf-map { margin-top: 16px; text-align: center; }
.cu-transf-map img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--cu-border, #DCE1D6);
  border-radius: var(--cu-radius-sm, 12px);
}
.cu-transf-map-cap {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--cu-muted, #4D594D);
  text-align: center;
}
.cu-transf-map-cap a { margin-left: 6px; color: var(--cu-green-700, #2A6B34); font-weight: 600; }

/* "No aplica…" en la tarjeta de baterías: letra menor que la cifra de ahorro */
.cu-opt-amount.cu-opt-amount--na {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cu-muted);
}

/* ---- Asterisco de nota (precio estimado, ahorro anual, precio del sistema) ---- */
.cu-ast { font-weight: 700; color: var(--cu-green-700); }

/* ---- Ayuda de la boleta (junto al consumo) y su diálogo ---------------------- */
.cu-stepper { flex-wrap: wrap; }
.cu-boleta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font: 700 13.5px/1 'Public Sans', sans-serif;
    color: var(--cu-green-700); background: transparent;
    border: 1.5px solid var(--cu-green-mint); border-radius: 999px;
    padding: 9px 14px; cursor: pointer;
}
/* "?" circular, igual que .cu-help */
.cu-boleta-q {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 18px; height: 18px; border-radius: 999px;
    background: var(--cu-green-mint); color: var(--cu-green-900);
    font-size: 11px; font-weight: 700; line-height: 1;
}
.cu-boleta-btn:hover { background: var(--cu-green-050); color: var(--cu-green-900); }
.cu-boleta-btn:focus-visible { outline: 2px solid var(--cu-green-600); outline-offset: 2px; }
.cu-dialog {
    max-width: min(720px, calc(100vw - 32px));
    border: 0; border-radius: var(--cu-radius);
    padding: 22px 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
    color: var(--cu-ink);
}
.cu-dialog::backdrop { background: rgba(30, 42, 30, .55); }
.cu-dialog-close { float: right; margin: 0 0 8px 12px; padding: 8px 18px; }
.cu-dialog-txt { font-size: 17px; line-height: 1.4; font-weight: 700; color: var(--cu-green-900); margin: 0 0 14px; }
.cu-dialog-img { display: block; width: 100%; height: auto; border: 1px solid var(--cu-border); border-radius: var(--cu-radius-sm); }
.cu-dialog-note { font-size: 14.5px; color: var(--cu-muted); margin: 14px 0 0; }

/* ---- "¿Cómo hago realidad?": invitación al Portal de los Exploradores -------- */
.cu-portal { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--cu-green-mint); }
.cu-portal-txt { font-size: 14.5px; color: var(--cu-ink-3); margin: 0 0 4px; }
.cu-portal .cu-step-link { margin-top: 0; }

/* ---- Desplegable "Descargar PDF" (Reporte / Reporte resumen) ------------------ */
.cu-pdf-menu { position: relative; display: inline-block; }
.cu-pdf-caret { font-size: 12px; }
.cu-pdf-menu-list {
    position: absolute; bottom: calc(100% + 8px); right: 0; left: auto; z-index: 40;
    min-width: 290px; max-width: calc(100vw - 32px); padding: 6px;
    background: #fff; border: 1px solid var(--cu-border-2);
    border-radius: var(--cu-radius-sm); box-shadow: 0 8px 24px rgba(31, 92, 46, .16);
}
.cu-pdf-menu-list[hidden] { display: none; }
.cu-pdf-opt {
    display: block; width: 100%; text-align: left;
    background: transparent; border: 0; border-radius: 10px;
    padding: 10px 12px; cursor: pointer; font-family: inherit;
}
.cu-pdf-opt:hover, .cu-pdf-opt:focus-visible { background: var(--cu-green-050); outline: none; }
.cu-pdf-opt:focus-visible { box-shadow: inset 0 0 0 2px var(--cu-green-600); }
.cu-pdf-opt-t { display: block; font-weight: 700; font-size: 15px; color: var(--cu-green-900); }
.cu-pdf-opt-d { display: block; font-size: 13.5px; color: var(--cu-muted); margin-top: 2px; }

/* ---- PDF: pie con el Portal de los Exploradores + QR (ambos reportes) -------- */
.cu-pdf-mode .cu-pdf-qr { display: flex; align-items: center; gap: 16px; margin: 14px 4px 0; }
.cu-pdf-qr img { width: 96px; height: 96px; flex: none; }
.cu-pdf-qr p { margin: 0; font-size: 14px; color: var(--cu-ink); line-height: 1.45; }
.cu-pdf-qr a { color: var(--cu-green-700); font-weight: 600; word-break: break-all; }
/* Reporte completo: el pie con QR ya lleva el enlace al Portal; se omite el bloque duplicado
   dentro de los pasos y se compacta el QR para que todo quepa en 2 paginas. */
.cu-pdf-mode:not(.cu-pdf-resumen) .cu-portal { display: none; }
.cu-pdf-mode:not(.cu-pdf-resumen) .cu-pdf-qr { margin-top: 10px; }
.cu-pdf-mode:not(.cu-pdf-resumen) .cu-pdf-qr img { width: 80px; height: 80px; }

/* ---- PDF "Reporte resumen" (una página, para la banca) ------------------------ */
.cu-pdf-solo-resumen { display: none; }
.cu-pdf-mode.cu-pdf-resumen .cu-pdf-solo-resumen { display: block; }
.cu-pdf-mode.cu-pdf-resumen [data-pdf-resumen-hide] { display: none !important; }
.cu-pdf-mode.cu-pdf-resumen .cu-hero { padding: 18px 24px; margin-bottom: 12px; }
.cu-pdf-mode.cu-pdf-resumen .cu-card { margin-bottom: 12px; padding: 16px 22px; }
.cu-pdf-mode.cu-pdf-resumen .cu-gg-cell { padding: 10px 14px; }
.cu-pdf-mode.cu-pdf-resumen .cu-pdf-qr { margin-top: 10px; }

/* ==========================================================================
   Asistente por pasos (5 pasos): línea de pasos, encabezado de paso, botonera,
   resumen y confirmación de ubicación. La línea y la botonera quedan fuera de
   #cuResultados, así que no entran en la captura del PDF.
   ========================================================================== */
.cu-paso[hidden],
.cu-stepbar[hidden],
.cu-stepbar [hidden],
.cu-bat-body[hidden],
.cu-loc-ok[hidden],
.cu-step-alert[hidden] { display: none !important; }

/* ---- Línea de pasos (sticky) ---- */
.cu-asist {
    position: sticky;
    top: 0;
    z-index: 20;
    /* Va bajo el encabezado (título y subtítulo); ocupa todo el ancho de .cu-page */
    margin: 0 -16px 22px;
    background: var(--cu-bg);
    border-bottom: 1px solid var(--cu-border-3);
    box-shadow: 0 6px 12px -10px rgba(31, 92, 46, .25);
}
.cu-steps-in { max-width: 960px; margin: 0 auto; padding: 14px 16px 12px; }
.cu-steps-wide { position: relative; display: none; }
.cu-steps-narrow { display: block; }
@media (min-width: 720px) {
    .cu-steps-wide { display: block; }
    .cu-steps-narrow { display: none; }
}
.cu-steps-track {
    position: absolute; top: 19px; left: 10%; right: 10%; height: 4px; border-radius: 2px;
    background: var(--cu-border-3);
}
/* El relleno vive dentro de la pista: su ancho es la fracción recorrida de ella */
.cu-steps-fill {
    --cu-prog: 0;
    height: 100%; border-radius: 2px;
    background: var(--cu-green-600);
    width: calc(var(--cu-prog) * 100%);
    transition: width .3s;
}
.cu-steps-list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; }
.cu-steps-list li { flex: 1; min-width: 0; }
.cu-step-btn {
    width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: none; border: 0; padding: 0 2px; border-radius: var(--cu-radius-sm);
    cursor: pointer; font-family: inherit;
}
.cu-step-btn:disabled { cursor: default; }
.cu-step-dot {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700; transition: all .2s;
    background: var(--cu-surface-2); color: var(--cu-muted-3); border: 2px solid var(--cu-border-3);
}
.cu-step-lbl { font-size: 14px; line-height: 1.25; text-align: center; font-weight: 500; color: var(--cu-muted-3); }
.cu-step-st { font-size: 12px; line-height: 1; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--cu-muted-3); }
.cu-step-btn.is-done .cu-step-dot { background: var(--cu-green-600); border-color: var(--cu-green-600); color: #fff; }
.cu-step-btn.is-done .cu-step-lbl { font-weight: 600; color: var(--cu-ink); }
.cu-step-btn.is-cur .cu-step-dot { background: var(--cu-green-900); border-color: var(--cu-green-900); color: #fff; box-shadow: 0 0 0 5px var(--cu-on-ring); }
.cu-step-btn.is-cur .cu-step-lbl { font-weight: 700; color: var(--cu-green-900); }
.cu-step-btn.is-cur .cu-step-st { color: var(--cu-green-700); }
/* Foco de teclado: contorno sólido y oscuro, distinto del halo permanente del paso actual */
.cu-step-btn:focus-visible, .cu-step-seg:focus-visible { outline: 3px solid var(--cu-green-900); outline-offset: 3px; box-shadow: none; }

/* Móvil: "Paso N de 5", nombre, siguiente y barra de 5 segmentos */
.cu-steps-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cu-steps-count { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cu-green-700); }
.cu-steps-next { font-size: 13px; color: var(--cu-muted); text-align: right; }
.cu-steps-cur { font-size: 18px; font-weight: 700; color: var(--cu-green-900); margin-top: 4px; }
/* Cada segmento es un botón de 28 px de alto (área táctil); la barra visual de 8 px la dibuja ::before */
.cu-steps-segs { display: flex; gap: 4px; margin-top: 0; }
.cu-step-seg { position: relative; flex: 1; height: 28px; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 6px; }
.cu-step-seg::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 8px; border-radius: 4px; background: var(--cu-border-3); }
.cu-step-seg:disabled { cursor: default; }
.cu-step-seg.is-done::before { background: var(--cu-green-600); }
.cu-step-seg.is-cur::before { background: var(--cu-green-900); }

/* ---- Encabezado de cada paso ---- */
.cu-step-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.cu-paso-num {
    flex: none; width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--cu-green-900); color: #fff; font-size: 24px; font-weight: 700;
}
.cu-paso-num--ok { background: var(--cu-green-600); }
.cu-step-head-txt { min-width: 0; }
.cu-step-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cu-green-700); }
.cu-step-title { font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; margin: 4px 0 6px; font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--cu-green-900); text-wrap: balance; }
.cu-step-title:focus { outline: none; }
.cu-step-lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--cu-muted); text-wrap: pretty; }

/* ---- Confirmación de ubicación ---- */
.cu-loc-ok {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--cu-green-050); border: 2px solid var(--cu-green-600);
    border-radius: var(--cu-radius); padding: 18px 20px; margin-bottom: 18px;
}
.cu-loc-ok-ic {
    flex: none; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--cu-green-600); color: #fff; font-weight: 700;
}
.cu-loc-ok-txt { margin: 0; font-size: 16px; line-height: 1.5; color: var(--cu-ink); overflow-wrap: anywhere; }
.cu-loc-ok-txt strong { color: var(--cu-green-900); }

/* ---- Bloques opcionales con interruptor: detalle de consumo (paso 2), baterías (paso 3), parámetros financieros (paso 4) ---- */
.cu-opt-head { margin: 28px 0 12px; }
.cu-opt-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cu-green-700); }
.cu-opt-lead { margin: 0; font-size: 16px; line-height: 1.5; color: var(--cu-muted); text-wrap: pretty; }
.cu-bat-head { display: flex; align-items: center; gap: 16px; }
.cu-switch--lg { width: 56px; height: 32px; }
.cu-switch--lg::after { top: 3px; left: 3px; width: 26px; height: 26px; }
.cu-switch--lg.is-on::after { transform: translateX(24px); }
.cu-switch:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--cu-on-ring); }
.cu-bat-head-txt { cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.cu-bat-head-title { font-size: 18px; font-weight: 700; color: var(--cu-green-900); }
.cu-bat-head-sub { font-size: 15px; color: var(--cu-muted); }
.cu-bat-body { margin-top: 4px; }

/* ---- Paso 4 · resumen ---- */
.cu-resumen {
    list-style: none; margin: 0 0 18px; padding: 8px 24px;
    background: var(--cu-surface); border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius); box-shadow: var(--cu-shadow);
}
.cu-resumen-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--cu-border); }
.cu-resumen-row:last-child { border-bottom: 0; }
.cu-resumen-n {
    flex: none; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--cu-green-600); color: #fff; font-size: 15px; font-weight: 700;
}
.cu-resumen-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cu-resumen-k { font-size: 14px; font-weight: 600; color: var(--cu-muted); }
.cu-resumen-v { font-size: 17px; font-weight: 600; color: var(--cu-ink); overflow-wrap: anywhere; }
/* Segunda línea de un dato del resumen (p. ej., el consumo bajo distribuidora y tarifa). */
.cu-resumen-v--sub { font-size: 15px; font-weight: 500; color: var(--cu-ink-2); }
/* Origen del consumo: gris si es el valor por defecto, verde si la persona lo modificó. */
.cu-origen-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: 1px; background: var(--cu-border); color: var(--cu-muted); }
.cu-origen-tag.is-mod { background: var(--cu-green-100); color: var(--cu-green-900); }
.cu-resumen-cambiar {
    flex: none; background: none; border: 1px solid var(--cu-green-700); border-radius: 999px;
    padding: 8px 16px; color: var(--cu-green-700); font: 600 15px/1 'Public Sans', sans-serif; cursor: pointer;
}
.cu-resumen-cambiar:disabled, .cu-btn-prev:disabled { opacity: .5; cursor: not-allowed; }
.cu-resumen-cambiar:hover { background: var(--cu-green-050); }
.cu-iva-note { margin: 0; font-size: 15px; line-height: 1.5; color: var(--cu-muted); }

/* ---- Botonera Anterior / Siguiente / Evaluar ---- */
.cu-stepbar { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.cu-stepbar .cu-reeval-note { margin: 0; text-align: left; }
.cu-step-alert {
    margin: 0; padding: 14px 18px; border-radius: var(--cu-radius-sm);
    background: var(--cu-warn-bg); border: 1px solid var(--cu-warn-border); color: var(--cu-warn-ink);
    font-size: 16px; font-weight: 600;
}
/* Sin wrap-reverse: invierte el eje transversal y "flex-start" alineaba "Anterior" por abajo.
   En móvil la fila pasa a columna (ver media query). */
.cu-stepbar-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cu-stepbar-next { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cu-btn-prev, .cu-btn-next {
    height: 54px; padding: 0 26px; border-radius: 999px; font: 700 17px/1 'Public Sans', sans-serif; cursor: pointer;
}
.cu-btn-prev { border: 2px solid var(--cu-green-700); background: transparent; color: var(--cu-green-700); }
.cu-btn-prev:hover { background: var(--cu-green-050); }
.cu-btn-next { border: 0; background: var(--cu-green-600); color: #fff; box-shadow: var(--cu-shadow-cta); height: 56px; padding: 0 30px; }
.cu-btn-next:hover { background: var(--cu-green-900); }
/* Deshabilitado (paso 1 sin ubicación): gris, sin sombra, texto legible que explica qué falta */
.cu-btn-next:disabled,
.cu-btn-next:disabled:hover { background: var(--cu-border-3); color: var(--cu-ink-2); box-shadow: none; cursor: not-allowed; }
.cu-btn-next[aria-busy="true"] { cursor: progress; }
.cu-stepbar .cu-btn-evaluar { height: 56px; padding: 0 34px; font-size: 17px; }
.cu-btn-prev:focus-visible, .cu-btn-next:focus-visible, .cu-btn-evaluar:focus-visible,
.cu-resumen-cambiar:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--cu-on-ring); }

@media (max-width: 719px) {
    .cu-step-head { gap: 12px; }
    .cu-paso-num { width: 44px; height: 44px; font-size: 20px; }
    .cu-step-title { font-size: 22px; }
    .cu-step-lead { font-size: 16px; }
    .cu-resumen { padding: 4px 16px; }
    .cu-resumen-row { gap: 10px; }
    .cu-resumen-n { width: 28px; height: 28px; font-size: 14px; }
    .cu-resumen-v { font-size: 16px; }
    .cu-resumen-cambiar { padding: 0 12px; min-height: 32px; font-size: 14px; }
    .cu-stepbar-row { flex-direction: column-reverse; align-items: stretch; }
    .cu-stepbar-next { margin-left: 0; align-items: stretch; }
    .cu-btn-prev, .cu-btn-next, .cu-stepbar .cu-btn-evaluar { width: 100%; }
}

/* ---- Móvil: menos relleno anidado (tarjeta + desplegable + tarjeta) para que mapa y gráficos aprovechen el ancho ---- */
@media (max-width: 719px) {
    .cu-steps-in { padding-bottom: 6px; }
    .cu-card { padding-left: 12px; padding-right: 12px; }
    .cu-acc-body { padding-left: 8px; padding-right: 8px; }
    .consumo-card-body { padding-left: 8px; padding-right: 8px; }
    .cu-map { height: 360px; }
    /* Leyendas del mapa más compactas para que no se tapen entre sí ni corten el texto */
    .map-symbology { padding: 5px 7px; font-size: 10.5px; line-height: 1.25; max-width: 160px; }
    .leaflet-bottom .map-symbology.leaflet-control { margin-bottom: 26px; }
    .map-symbology-title { font-size: 9.5px; margin-bottom: 1px; }
    .map-symbology-item { gap: 4px; white-space: nowrap; }
    .map-symbology .sym-dot { width: 10px; height: 10px; border-width: 1.5px; }
    .map-legend img { width: 84px !important; }
}

/* ---- Consumo en el Reporte completo (solo PDF; lo arma unificada.js) ---- */
.cu-consumo-pdf[hidden] { display: none !important; }
.cu-cons-origen { margin: 0 0 12px; font-size: 13px; color: var(--cu-ink-2); }
.cu-cons-chart { margin-bottom: 14px; }
.cu-cons-chart-t { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--cu-ink); }
.cu-cons-bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding-bottom: 16px; border-bottom: 1px solid var(--cu-border); }
.cu-cons-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.cu-cons-bar { width: 100%; background: var(--cu-green-600); border-radius: 2px 2px 0 0; }
.cu-cons-val { font-size: 9px; line-height: 1.2; color: var(--cu-ink-2); margin-bottom: 2px; white-space: nowrap; }
.cu-cons-lbl { position: absolute; bottom: -16px; font-size: 9px; color: var(--cu-muted); white-space: nowrap; }
.cu-cons-rango { margin: 4px 0 0; font-size: 10px; color: var(--cu-muted); }
.cu-cons-par { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.cu-cons-tabla { width: 100%; border-collapse: collapse; font-size: 12px; color: var(--cu-ink); margin-top: 4px; }
.cu-cons-tabla th, .cu-cons-tabla td { padding: 3px 8px; border-bottom: 1px solid var(--cu-border); text-align: left; }
.cu-cons-tabla th { color: var(--cu-muted); font-weight: 600; }
.cu-cons-tabla .cu-cons-num { text-align: right; }
.cu-cons-total td { font-weight: 700; border-top: 2px solid var(--cu-border-2); }
