/**
 * Estilos para PWA
 * Banner de instalación y componentes PWA
 */

/* Banner de instalación PWA */
.pwa-install-banner {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: all 0.3s ease;
    display: none;
}

.pwa-install-banner.show {
    bottom: 0;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-banner-icon img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
    /* Permite que el texto se trunque si es necesario */
}

.pwa-banner-text strong {
    display: block;
    font-size: 1rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-banner-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.2;
}

.pwa-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pwa-btn-install {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.pwa-btn-install:hover {
    background: #0b5ed7;
}

.pwa-btn-close {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Responsive para móviles */
@media (max-width: 576px) {
    .pwa-banner-content {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .pwa-banner-icon img {
        width: 40px;
        height: 40px;
    }

    .pwa-banner-text p {
        font-size: 0.75rem;
        white-space: normal;
        margin-top: 2px;
    }

    .pwa-banner-text strong {
        font-size: 0.875rem;
    }

    .pwa-btn-install {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .pwa-btn-install i {
        display: none;
        /* Ocultar icono en móviles muy pequeños */
    }
}

/* Modo standalone (cuando la app está instalada) */
@media (display-mode: standalone) {
    .pwa-install-banner {
        display: none !important;
        /* No mostrar banner si ya está instalada */
    }
}