/* ==========================================================================
   views/hogar.css — Estilos exclusivos de Hogar y servicios (hogar.html)
   Prefijo de clases: hg-
   ========================================================================== */

/* Tarjeta del inmueble */
.hg-home {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 18px;
    border-radius: 22px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(140deg, #FB923C 0%, #EA580C 55%, #9A3412 100%);
    box-shadow: 0 24px 48px -20px rgba(234, 88, 12, .55);
}
.hg-home-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.hg-label { display: block; font-size: 12px; color: rgba(255, 255, 255, .78); }
.hg-home-name { font-size: 19px; font-weight: 700; color: var(--white); line-height: 1.2; margin: 2px 0 2px; }
.hg-home-top .ui-pill { white-space: nowrap; }

.hg-home-art {
    position: absolute;
    right: 8px;
    bottom: 58px;
    width: 150px;
    height: 112px;
    fill: none;
    stroke: rgba(255, 255, 255, .2);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hg-home-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 28px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
}
.hg-home-stats small { display: block; font-size: 11px; color: rgba(255, 255, 255, .75); }
.hg-home-stats b { display: block; font-size: 14px; font-weight: 700; color: var(--white); }

/* Gráfica de consumo de luz */
.hg-chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hg-chart-value { font-size: 22px; font-weight: 800; color: var(--primary-base); }
.hg-chart-value small { font-size: 12px; font-weight: 700; }

.hg-chart {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    align-items: end;
    height: 190px;
    margin-top: 16px;
    padding-bottom: 4px;
    background: repeating-linear-gradient(to top, var(--greyscale-100) 0 1px, transparent 1px 42px);
    background-position: 0 -22px;
}
.hg-bar {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.hg-bar i {
    display: block;
    width: 100%;
    max-width: 38px;
    border-radius: 10px 10px 6px 6px;
    background: linear-gradient(180deg, #FDBA74, #FED7AA);
    transform-origin: bottom;
    animation: hg-grow 1s var(--app-ease) both;
}
.hg-bar b { font-size: 11px; font-weight: 700; color: var(--greyscale-500); }
.hg-bar span { font-size: 10.5px; color: var(--greyscale-500); white-space: nowrap; }
.hg-bar.is-peak i { background: linear-gradient(180deg, #F87171, #FECACA); }
.hg-bar.is-current i { background: linear-gradient(180deg, #FB923C, #EA580C); box-shadow: 0 8px 18px -8px #EA580C; }
.hg-bar.is-current b,
.hg-bar.is-current span { color: var(--c-orange); }
.hg-bar:nth-child(2) i { animation-delay: .06s; }
.hg-bar:nth-child(3) i { animation-delay: .12s; }
.hg-bar:nth-child(4) i { animation-delay: .18s; }
.hg-bar:nth-child(5) i { animation-delay: .24s; }
.hg-bar:nth-child(6) i { animation-delay: .30s; }

@keyframes hg-grow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

.hg-chart-note {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12.5px;
    color: #9A3412;
    background: var(--c-orange-bg);
}
.hg-chart-note .ico { flex-shrink: 0; margin-top: 1px; }

/* Garantías */
.hg-bar-off i { background: var(--greyscale-300); }
