/*** AVISO «INSTALAR LA APP» (PWA) — ver web_layout_view::aviso_instalar_app() y js/instalar_app.js ***/

.instalar_app_franja[hidden],
.instalar_app_pasos[hidden],
.instalar_app_pie[hidden] {
    display: none !important;
}

/* Boton del pie, junto a Hable con nosotros / Quiero anunciar */
.contacto_footer .boton.instalar_app_pie {
    background-color: var(--color_layout_4);
}

.contacto_footer .boton.instalar_app_pie:hover {
    background-color: var(--color_layout_2_lighter);
}

/* Franja chica abajo (solo celular) */
.instalar_app_franja {
    align-items: center;
    background-color: #fff;
    bottom: 0;
    box-shadow: 0 -.2rem 1.2rem rgba(0, 0, 0, .18);
    box-sizing: border-box;
    color: var(--color_layout_2_darker);
    display: flex;
    gap: 1rem;
    left: 0;
    padding: 1rem 1.2rem calc(1rem + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 11;
}

.instalar_app_franja img {
    border-radius: .9rem;
    flex: 0 0 auto;
    height: 4rem;
    width: 4rem;
}

.instalar_app_franja .instalar_app_texto {
    flex: 1 1 auto;
    font-size: 1.35rem;
    line-height: 1.35;
}

.instalar_app_franja .instalar_app_boton {
    background-color: var(--color_layout_3_darker);
    border: 0;
    border-radius: 2rem;
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    padding: .9rem 1.6rem;
}

.instalar_app_cerrar {
    background: none;
    border: 0;
    color: var(--gris_layout_3, #888);
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 2.2rem;
    line-height: 1;
    padding: .4rem .6rem;
}

/* Con la franja visible, el WhatsApp flotante sube para no quedar tapado */
body.aviso_app_visible .boton_whatsapp_flotante,
body.aviso_app_visible.to_top_visible .boton_whatsapp_flotante {
    bottom: calc(7.8rem + env(safe-area-inset-bottom));
}

/* Deja lugar al final de la pagina para que la franja no tape el pie */
body.aviso_app_visible {
    padding-bottom: 6.4rem;
}

/* Pasos para iPhone/iPad */
.instalar_app_pasos {
    align-items: flex-end;
    background-color: rgba(0, 0, 0, .45);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}

.instalar_app_tarjeta {
    background-color: #fff;
    border-radius: 1.6rem 1.6rem 0 0;
    box-sizing: border-box;
    color: var(--color_layout_2_darker);
    max-width: 44rem;
    padding: 2rem 2rem calc(2rem + env(safe-area-inset-bottom));
    position: relative;
    width: 100%;
}

.instalar_app_tarjeta .instalar_app_cerrar {
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.instalar_app_tarjeta .instalar_app_cabecera {
    align-items: center;
    display: flex;
    gap: 1.2rem;
    margin: 0 3rem 1.6rem 0;
}

.instalar_app_tarjeta .instalar_app_cabecera img {
    border-radius: 1rem;
    height: 4.8rem;
    width: 4.8rem;
}

.instalar_app_tarjeta .instalar_app_titulo {
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.3;
}

.instalar_app_tarjeta ol {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.instalar_app_tarjeta li {
    align-items: center;
    border-top: 1px solid #eee;
    display: flex;
    font-size: 1.45rem;
    gap: 1.2rem;
    line-height: 1.4;
    padding: 1.2rem 0;
}

.instalar_app_tarjeta .instalar_app_numero {
    align-items: center;
    background-color: var(--color_layout_3_darker);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex: 0 0 2.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    height: 2.6rem;
    justify-content: center;
}

.instalar_app_tarjeta li .instalar_app_paso_texto {
    flex: 1 1 auto;
}

.instalar_app_tarjeta li svg {
    color: #007aff;
    flex: 0 0 auto;
    height: 2.6rem;
    width: 2.6rem;
}

.instalar_app_tarjeta .instalar_app_entendido {
    background-color: var(--color_layout_2);
    border: 0;
    border-radius: 2rem;
    color: #fff;
    cursor: pointer;
    display: block;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1.1rem;
    width: 100%;
}

@media (min-width: 769px) {
    .instalar_app_pasos {
        align-items: center;
    }

    .instalar_app_tarjeta {
        border-radius: 1.6rem;
    }
}
