/* Banner de Referidos */
.referral-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInUp 0.5s ease-out;
    overflow: hidden;
}

.referral-banner-content {
    position: relative;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.referral-banner-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgb(28 27 27);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
}

.referral-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.referral-banner-icon {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.referral-banner-text {
    flex: 1;
    margin-right: 8px;
}

.referral-banner-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.referral-banner-description {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
}

.referral-banner-actions {
    flex-shrink: 0;
}

.referral-banner .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 12px;
    padding: 6px 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.referral-banner .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.referral-banner.closing {
    animation: slideOutDown 0.3s ease-in forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .referral-banner {
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }
    
    .referral-banner-content {
        padding: 12px;
        gap: 8px;
    }
    
    .referral-banner-icon {
        font-size: 20px;
    }
    
    .referral-banner-title {
        font-size: 13px;
    }
    
    .referral-banner-description {
        font-size: 11px;
    }
}

/* Ajustes para que no interfiera con otros elementos */
.app-container {
    position: relative;
}



/* Ocultar banner en pantallas muy pequeñas si es necesario */
@media (max-width: 320px) {
    .referral-banner {
        display: none !important;
    }
}