/* Banner push — estilo alineado con islency-pwa-install-prompt */
:root {
    --islency-prompt-bg: #fff;
    --islency-prompt-border: rgba(0, 91, 150, 0.12);
    --islency-prompt-shadow: 0 8px 32px rgba(0, 35, 70, 0.18);
    --islency-prompt-text: #1a2b3c;
    --islency-prompt-muted: #5a6b7c;
    --islency-prompt-primary: #005b96;
    --islency-prompt-ghost-bg: #f0f4f8;
    --islency-prompt-ghost-text: #334455;
    --islency-prompt-icon-bg: #e8f4fc;
}

.islency-push-prompt {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(12px + env(safe-area-inset-top, 0px));
    z-index: 99997;
    padding: 0 12px;
    pointer-events: none;
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.islency-push-prompt__inner {
    pointer-events: auto;
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    background: var(--islency-prompt-bg);
    border-radius: 14px;
    box-shadow: var(--islency-prompt-shadow);
    border: 1px solid var(--islency-prompt-border);
    padding: 14px 40px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: islency-push-banner-in 0.25s ease-out;
}

@keyframes islency-push-banner-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.islency-push-prompt__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--islency-prompt-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.islency-push-prompt__close:hover,
.islency-push-prompt__close:focus-visible {
    background: var(--islency-prompt-ghost-bg);
    color: var(--islency-prompt-text);
    outline: none;
}

.islency-push-prompt__close:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 91, 150, 0.35);
}

.islency-push-prompt__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.islency-push-prompt__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--islency-prompt-icon-bg);
    color: var(--islency-prompt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.islency-push-prompt__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--islency-prompt-text);
    flex: 1;
    min-width: 0;
}

.islency-push-prompt__text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.islency-push-prompt__text span {
    color: var(--islency-prompt-muted);
    font-size: 0.85rem;
}

.islency-push-prompt__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.islency-push-prompt__btn {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.islency-push-prompt__btn--primary {
    background: var(--islency-prompt-primary);
    color: #fff;
}

.islency-push-prompt__btn--primary:disabled,
.islency-push-prompt__btn--loading {
    opacity: 0.72;
    cursor: wait;
}

.islency-push-prompt__btn--ghost {
    background: var(--islency-prompt-ghost-bg);
    color: var(--islency-prompt-ghost-text);
}

@media (min-width: 768px) {
    .islency-push-prompt {
        top: calc(12px + env(safe-area-inset-top, 0px));
    }

    .islency-push-prompt__inner {
        max-width: 520px;
    }
}

/* Toast de feedback */
.islency-push-toast {
    position: fixed;
    left: 50%;
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(12px);
    z-index: 100001;
    max-width: min(92vw, 420px);
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--islency-prompt-primary, #005b96);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 35, 70, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.islency-push-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.islency-push-toast--error {
    background: #8b3a3a;
}

.islency-capacitor-app .islency-push-toast {
    bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}

/* CTA en Mi perfil → Notificaciones (fallback si no carga SCSS portal) */
.islency-notifications-activate {
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    background: rgba(180, 83, 9, 0.08);
    border: 1px solid rgba(180, 83, 9, 0.22);
}

.islency-notifications-activate__hint {
    font-size: 0.8125rem;
    color: #6c757d;
    line-height: 1.45;
}

.islency-notifications-activate__btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

