/* Ventana Flotante Móvil - Solo visible en dispositivos móviles */

.fn-notification {
    display: none;
}

.fn-notification.fn-hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

@media (max-width: 768px) {
    .fn-notification {
        display: block;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
        z-index: 99999;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        border-radius: 12px;
        transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    }
    
    .fn-notification.fn-visible {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    
    .fn-notification.fn-closing {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    
    /* Backdrop oscuro detrás de la ventana */
    .fn-notification::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.4s ease-out;
    }
    
    .fn-notification.fn-visible::before {
        opacity: 1;
    }
    
    .fn-notification.fn-closing::before {
        opacity: 0;
    }
    
    .fn-close {
        position: absolute;
        top: 12px;
        right: 12px;
        background: rgba(0, 0, 0, 0.1);
        border: none;
        cursor: pointer;
        padding: 8px;
        opacity: 0.7;
        transition: all 0.2s;
        color: inherit;
        line-height: 1;
        z-index: 10;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .fn-close:hover {
        opacity: 1;
        background: rgba(0, 0, 0, 0.2);
        transform: rotate(90deg);
    }
    
    .fn-close:focus {
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }
    
    .fn-content {
        font-size: 15px;
        line-height: 1.6;
        text-align: center;
    }
    
    .fn-content p {
        margin: 0 0 10px 0;
    }
    
    .fn-content p:last-child {
        margin-bottom: 0;
    }
    
    .fn-content h1,
    .fn-content h2,
    .fn-content h3 {
        margin: 0 0 10px 0;
        font-size: 16px;
        font-weight: 600;
    }
    
    .fn-content a {
        color: inherit;
        text-decoration: underline;
        opacity: 0.9;
    }
    
    .fn-content a:hover {
        opacity: 1;
    }
    
    .fn-button-wrap {
        margin-top: 20px;
        text-align: center;
    }
    
    .fn-button {
        display: inline-block;
        padding: 14px 32px;
        background: rgba(255, 255, 255, 0.2);
        color: inherit;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 15px;
        transition: all 0.3s;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .fn-button:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
    
    .fn-button:active {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .fn-notification {
        width: 95%;
        font-size: 14px;
    }
    
    .fn-content {
        font-size: 14px;
    }
    
    .fn-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}
