/* ===========================
   AQUALAB - Resultados generales (v4)
   Círculo ampliado y responsivo
   =========================== */

.result-section-title {
    color: #00a5df;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* === Tarjeta general === */
.hh-result {
    background-color: #eff8fd;
    border-radius: 1.5rem;
    border: 3px solid #e1edf5;
    /*border: 3px solid #02558b;*/
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem 1.5rem 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* === Círculo principal === */
.hh-result__circle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1.8rem;
    background: #eff8fd;

}

.hh-result__circle {
    --hh-result-color: #2e7d32;

    /* Tamaño grande y flexible */
    width: clamp(260px, 50vw, 400px);
    height: clamp(260px, 50vw, 400px);

    border-radius: 50%;
    border: 40px solid var(--hh-result-color);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: var(--hh-result-color);
    background: radial-gradient(circle at 35% 35%, #f7fbff 0, #ffffff 70%);

    transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.02);
}

/* Número y unidad dentro del círculo */
.hh-result__value {
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1;
}

.hh-result__unit {
    font-size: 1rem;
    margin-top: 0.3rem;
    color: #5f6b7b;
}

/* === Texto e información debajo === */
.hh-result__info {
    width: 100%;
    max-width: 480px;
    margin-top: 0.2rem;
}

.hh-result__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #02558b;
    margin-bottom: 1rem;
}

.hh-result__subtitle {
    font-size: 0.85rem;
    color: #5f6b7b;
    margin-bottom: 0.9rem;
}

.hh-result__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #02558b;
    margin-bottom: 0.6rem;
}

.hh-result__message {
    font-size: 1.2rem;
    font-weight: 400;
    color: #02558b;
    margin-bottom: 0.6rem;
}

b.hh-result__message {
    font-weight: 700;
}


/* === Leyenda debajo === */
.hh-result__legend {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    font-size: 0.8rem;
    color: #5f6b7b;
}

.hh-result__legend li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.hh-result__pill {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.hh-result__pill--green { background-color: #6bc970; }
.hh-result__pill--yellow { background-color: #fab340; }
.hh-result__pill--red { background-color: #ff6e6e; }

/* === Estados de color (controlados por JS) === */
.hh-result--state-green .hh-result__circle {
    --hh-result-color: #6bc970;
    /*box-shadow: 0 0 0 8px rgba(46, 125, 50, 0.15);*/
    background: #eff8fd;
}

.hh-result--state-yellow .hh-result__circle {
    --hh-result-color: #fab340;
    /*box-shadow: 0 0 0 8px rgba(249, 168, 37, 0.15);*/
    background: #eff8fd;
}

.hh-result--state-red .hh-result__circle {
    --hh-result-color: #ff6e6e;
    /*box-shadow: 0 0 0 8px rgba(198, 40, 40, 0.15);*/
    background: #eff8fd;
}

/* === Responsivo === */
@media (max-width: 768px) {
    .hh-result {
        padding: 1.8rem 1.2rem 1.8rem;
    }

    .hh-result__circle {
        width: clamp(220px, 65vw, 300px);
        height: clamp(220px, 65vw, 300px);
        border-width: 35px;
    }

    .hh-result__value {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .hh-result__legend {
        font-size: 0.75rem;
        gap: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    .hh-result__circle {
        width: clamp(190px, 70vw, 250px);
        height: clamp(190px, 70vw, 250px);
        border-width: 25px;
    }

    .hh-result__value {
        font-size: 2rem;
    }

    .hh-result__unit {
        font-size: 0.85rem;
    }
}



/* ===========================
   Bloque consumo directo / indirecto
   =========================== */

.hh-breakdown {
    margin-top: 1.5rem;
}

/* Tarjetas mini */
.hh-result-mini {
    background-color: #eff8fd;
    border-radius: 1.25rem;
    border: 3px solid #e1edf5;
    /*border: 3px solid #02558b;*/
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    padding: 1.2rem 1.2rem 1.4rem;
    text-align: center;
}

.hh-result-mini__title {
    /*font-size: 0.95rem;*/
    font-weight: 700;
    color: #02558b;
    margin-bottom: 0.8rem;
}

/* Círculos azules */
.hh-result-mini__circle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hh-result-mini__circle {
    position: relative;
    width: clamp(180px, 40vw, 230px);
    height: clamp(180px, 40vw, 230px);
}

/* Canvas ocupa todo el círculo */
.hh-result-mini__canvas {
    position: absolute;
    inset: 0;
}

/* Texto centrado sobre el donut */
.hh-result-mini__value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hh-result-mini__litros {
    font-size: 1.4rem;
    font-weight: 700;
    color: #02558b;
}

.hh-result-mini__unit {
    font-size: 0.8rem;
    color: #5f6b7b;
}

/* Responsivo */
@media (max-width: 576px) {
    .hh-result-mini {
        padding: 1rem 1rem 1.2rem;
    }

    .hh-result-mini__circle {
        width: clamp(160px, 55vw, 210px);
        height: clamp(160px, 55vw, 210px);
    }

    .hh-result-mini__litros {
        font-size: 1.25rem;
    }
}

