/*
 * iStar Home - Ajuste mobile Solución integral v1
 * Cargar DESPUÉS de home-redesign.css.
 * Objetivo: evitar superposición del panel y las píldoras en mobile,
 * ordenar chips en flujo vertical y bajar radios para una estética más técnica.
 */

/* Radio más sobrio también en desktop, para dialogar con iStar Live */
.istar-home .istar-hero-panel {
    border-radius: 20px;
}

.istar-home .istar-panel-list div {
    border-radius: 14px;
}

.istar-home .istar-panel-meter,
.istar-home .istar-panel-meter span {
    border-radius: 6px;
}

.istar-home .istar-hero-chip {
    border-radius: 18px;
}

@media (max-width: 760px) {
    .istar-home .istar-hero-video {
        min-height: auto;
        justify-content: flex-start;
        padding: 92px 0 36px;
    }

    .istar-home .istar-hero-inner {
        padding-top: 0;
        padding-bottom: 0;
        gap: 28px;
    }

    .istar-home .istar-hero-panel {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        padding: 22px;
        border-radius: 18px;
    }

    .istar-home .istar-panel-header {
        margin-bottom: 18px;
    }

    .istar-home .istar-panel-meter {
        height: 7px;
        margin-bottom: 18px;
    }

    .istar-home .istar-panel-list {
        gap: 12px;
    }

    .istar-home .istar-panel-list div {
        min-height: 64px;
        padding: 13px 16px;
        border-radius: 14px;
    }

    .istar-home .istar-panel-list .istar-icon {
        width: 22px;
        height: 22px;
    }

    /* Las píldoras dejan de flotar sobre el panel: entran debajo, en flujo normal */
    .istar-home .istar-hero-bottom {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: 520px;
        margin: 22px auto 0;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        z-index: 4;
    }

    .istar-home .istar-hero-bottom .istar-hero-chip {
        min-height: 56px;
        padding: 12px 16px;
        border-radius: 16px;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
        font-size: .95rem;
        line-height: 1.15;
    }

    /* Off grid, On grid e Híbridos con baterías a ancho completo */
    .istar-home .istar-hero-bottom .istar-hero-chip:nth-child(-n + 3) {
        flex: 0 0 100%;
    }

    /* Bombeo solar y Carga vehicular mitad y mitad */
    .istar-home .istar-hero-bottom .istar-hero-chip:nth-child(n + 4) {
        flex: 0 0 calc(50% - 6px);
    }

    .istar-home .istar-hero-bottom .istar-hero-chip .istar-icon {
        width: 22px;
        height: 22px;
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .istar-home .istar-hero-video {
        min-height: auto;
        padding: 86px 0 30px;
    }

    .istar-home .istar-hero-inner,
    .istar-home .istar-hero-bottom {
        width: calc(100% - 28px);
    }

    .istar-home .istar-hero-panel {
        padding: 20px;
        border-radius: 16px;
    }

    .istar-home .istar-panel-list div {
        min-height: 60px;
        padding: 12px 15px;
        border-radius: 13px;
    }

    .istar-home .istar-hero-bottom {
        gap: 10px;
        margin-top: 20px;
    }

    .istar-home .istar-hero-bottom .istar-hero-chip {
        min-height: 54px;
        border-radius: 15px;
        padding: 11px 12px;
        font-size: .88rem;
    }

    .istar-home .istar-hero-bottom .istar-hero-chip:nth-child(-n + 3) {
        flex-basis: 100%;
    }

    .istar-home .istar-hero-bottom .istar-hero-chip:nth-child(n + 4) {
        flex-basis: calc(50% - 5px);
    }

    .istar-home .istar-hero-bottom .istar-hero-chip .istar-icon {
        width: 20px;
        height: 20px;
    }
}
