/* ============================================================
   Capa de instalación PWA — GastroPlayas (aditiva y aislada)
   Reutiliza las variables del tema (style.css) y no modifica
   ningún otro archivo. Clases con prefijo `gp-install-`.
   ============================================================ */

.gp-install-cta {
    position: fixed;
    left: 50%;
    bottom: max(0.9rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: max-content;
    max-width: calc(100vw - 2rem);
    padding: 0.45rem 0.5rem 0.45rem 0.6rem;
    border-radius: 999px;
    background: var(--card-bg, #2A2828);
    border: 1px solid var(--border-color, rgba(114, 115, 118, 0.3));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 900;
    font-family: inherit;
    animation: gp-install-rise 0.25s ease-out;
}

@keyframes gp-install-rise {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .gp-install-cta { animation: none; }
}

.gp-install-btn {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background: var(--primary, #ED3237);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.gp-install-btn:hover {
    background: var(--primary-hover, #C9282C);
}

.gp-install-btn:active {
    transform: scale(0.98);
}

.gp-install-dismiss {
    border: none;
    background: transparent;
    color: var(--text-muted, #727376);
    font-size: 1.2rem;
    line-height: 1;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.gp-install-dismiss:hover {
    color: var(--text-main, #FEFEFE);
    background: rgba(255, 255, 255, 0.08);
}

/* Modal de instrucciones manuales */
.gp-install-modal {
    position: fixed;
    inset: 0;
    z-index: 1350;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: inherit;
}

.gp-install-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    animation: gp-install-fade 0.2s ease-out;
}

@keyframes gp-install-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gp-install-modal-box {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: var(--card-bg, #2A2828);
    border: 1px solid var(--border-color, rgba(114, 115, 118, 0.3));
    border-radius: 16px;
    padding: 1.25rem;
    color: var(--text-main, #FEFEFE);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: gp-install-fade 0.2s ease-out;
}

.gp-install-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.gp-install-modal-head h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary, #ED3237);
}

.gp-install-steps {
    margin: 0 0 0.8rem 0;
    padding-left: 1.25rem;
    line-height: 1.6;
    font-size: 0.92rem;
}

.gp-install-steps li {
    margin-bottom: 0.5rem;
}

.gp-install-note {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted, #727376);
}